Skip to content

Commit

Permalink
Switch to gcr.io/kubebuilder/kube-rbac-proxy
Browse files Browse the repository at this point in the history
The old location does not seem to be the official one, so we switch over
to the new one as well as adapt the dependency verification.

Fixes #1423

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
  • Loading branch information
saschagrunert committed Jan 24, 2023
1 parent c60c931 commit b3e8b74
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ spec:
- manager
env:
- name: RELATED_IMAGE_RBAC_PROXY
value: quay.io/brancz/kube-rbac-proxy:v0.13.1
value: gcr.io/kubebuilder/kube-rbac-proxy:v0.13.1
- name: RELATED_IMAGE_SELINUXD
value: quay.io/security-profiles-operator/selinuxd
- name: OPERATOR_NAMESPACE
Expand Down Expand Up @@ -962,7 +962,7 @@ spec:
name: Kubernetes SIGs
url: https://github.com/kubernetes-sigs
relatedImages:
- image: quay.io/brancz/kube-rbac-proxy:v0.13.1
- image: gcr.io/kubebuilder/kube-rbac-proxy:v0.13.1
name: rbac-proxy
- image: quay.io/security-profiles-operator/selinuxd
name: selinuxd
Expand Down
6 changes: 5 additions & 1 deletion dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,11 @@ dependencies:
version: 0.13.1
refPaths:
- path: internal/pkg/manager/spod/bindata/spod.go
match: quay.io/brancz/kube-rbac-proxy
match: gcr.io/kubebuilder/kube-rbac-proxy
- path: deploy/kustomize-deployment/manager_deployment.yaml
match: gcr.io/kubebuilder/kube-rbac-proxy
- path: deploy/helm/templates/deployment.yaml
match: gcr.io/kubebuilder/kube-rbac-proxy

- name: gcb-docker-gcloud
version: v20220617-174ad91c3a
Expand Down
2 changes: 1 addition & 1 deletion deploy/helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
- manager
env:
- name: RELATED_IMAGE_RBAC_PROXY
value: quay.io/brancz/kube-rbac-proxy:v0.13.1
value: gcr.io/kubebuilder/kube-rbac-proxy:v0.13.1
- name: RELATED_IMAGE_SELINUXD
value: quay.io/security-profiles-operator/selinuxd
- name: OPERATOR_NAMESPACE
Expand Down
2 changes: 1 addition & 1 deletion deploy/kustomize-deployment/manager_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
memory: 128Mi
env:
- name: RELATED_IMAGE_RBAC_PROXY
value: quay.io/brancz/kube-rbac-proxy:v0.13.1
value: gcr.io/kubebuilder/kube-rbac-proxy:v0.13.1
- name: RELATED_IMAGE_SELINUXD
value: quay.io/security-profiles-operator/selinuxd
- name: OPERATOR_NAMESPACE
Expand Down
2 changes: 1 addition & 1 deletion deploy/namespace-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2963,7 +2963,7 @@ spec:
- name: RESTRICT_TO_NAMESPACE
value: NS_REPLACE
- name: RELATED_IMAGE_RBAC_PROXY
value: quay.io/brancz/kube-rbac-proxy:v0.13.1
value: gcr.io/kubebuilder/kube-rbac-proxy:v0.13.1
- name: RELATED_IMAGE_SELINUXD
value: quay.io/security-profiles-operator/selinuxd
- name: OPERATOR_NAMESPACE
Expand Down
2 changes: 1 addition & 1 deletion deploy/openshift-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2961,7 +2961,7 @@ spec:
- manager
env:
- name: RELATED_IMAGE_RBAC_PROXY
value: quay.io/brancz/kube-rbac-proxy:v0.13.1
value: gcr.io/kubebuilder/kube-rbac-proxy:v0.13.1
- name: RELATED_IMAGE_SELINUXD
value: quay.io/security-profiles-operator/selinuxd
- name: OPERATOR_NAMESPACE
Expand Down
2 changes: 1 addition & 1 deletion deploy/openshift-downstream.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2974,7 +2974,7 @@ spec:
- manager
env:
- name: RELATED_IMAGE_RBAC_PROXY
value: quay.io/brancz/kube-rbac-proxy:v0.13.1
value: gcr.io/kubebuilder/kube-rbac-proxy:v0.13.1
- name: RELATED_IMAGE_SELINUXD
value: quay.io/security-profiles-operator/selinuxd
- name: OPERATOR_NAMESPACE
Expand Down
2 changes: 1 addition & 1 deletion deploy/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2961,7 +2961,7 @@ spec:
- manager
env:
- name: RELATED_IMAGE_RBAC_PROXY
value: quay.io/brancz/kube-rbac-proxy:v0.13.1
value: gcr.io/kubebuilder/kube-rbac-proxy:v0.13.1
- name: RELATED_IMAGE_SELINUXD
value: quay.io/security-profiles-operator/selinuxd
- name: OPERATOR_NAMESPACE
Expand Down
2 changes: 1 addition & 1 deletion deploy/webhook-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2961,7 +2961,7 @@ spec:
- --webhook=false
env:
- name: RELATED_IMAGE_RBAC_PROXY
value: quay.io/brancz/kube-rbac-proxy:v0.13.1
value: gcr.io/kubebuilder/kube-rbac-proxy:v0.13.1
- name: RELATED_IMAGE_SELINUXD
value: quay.io/security-profiles-operator/selinuxd
- name: OPERATOR_NAMESPACE
Expand Down
2 changes: 1 addition & 1 deletion hack/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ sed -i 's;image: .*;image: registry.k8s.io/security-profiles-operator/security-p
# Update e2e tests
# shellcheck disable=SC2016
sed -i 's;gcr.io/k8s-staging-sp-operator.*;registry.k8s.io/security-profiles-operator/security-profiles-operator-catalog:v'"$VERSION"'#${CATALOG_IMG}#g" examples/olm/install-resources.yaml;g' hack/ci/e2e-olm.sh
sed -i 's;gcr.io/;registry.k8s.io/;g' test/e2e_test.go
sed -i 's;gcr.io/k8s-staging-sp-operator/;registry.k8s.io/;g' test/e2e_test.go

# Update dependencies.yaml
FILES=(
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/manager/spod/bindata/spod.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const (
SelinuxdPrivateDir = "/var/run/selinuxd"
SelinuxdSocketPath = SelinuxdPrivateDir + "/selinuxd.sock"
SelinuxdDBPath = SelinuxdPrivateDir + "/selinuxd.db"
MetricsImage = "quay.io/brancz/kube-rbac-proxy:v0.13.1"
MetricsImage = "gcr.io/kubebuilder/kube-rbac-proxy:v0.13.1"
sysKernelDebugPath = "/sys/kernel/debug"
InitContainerIDNonRootenabler = 0
InitContainerIDSelinuxSharedPoliciesCopier = 1
Expand Down
4 changes: 2 additions & 2 deletions test/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ func (e *e2e) deployOperator(manifest string) {
// ones from the nodes
e.logf("Setting imagePullPolicy to '%s' in manifest: %s", e.pullPolicy, manifest)
e.updateManifest(manifest, "imagePullPolicy: Always", fmt.Sprintf("imagePullPolicy: %s", e.pullPolicy))
e.updateManifest(manifest, "image: .*gcr.io/.*", fmt.Sprintf("image: %s", e.testImage))
e.updateManifest(manifest, "value: .*gcr.io/.*", fmt.Sprintf("value: %s", e.testImage))
e.updateManifest(manifest, "image: .*gcr.io/k8s-staging-sp-operator/.*", fmt.Sprintf("image: %s", e.testImage))
e.updateManifest(manifest, "value: .*gcr.io/k8s-staging-sp-operator/.*", fmt.Sprintf("value: %s", e.testImage))
e.updateManifest(manifest, "value: .*quay.io/.*/selinuxd.*", fmt.Sprintf("value: %s", e.selinuxdImage))
if e.selinuxEnabled {
e.updateManifest(manifest, "enableSelinux: false", "enableSelinux: true")
Expand Down

0 comments on commit b3e8b74

Please sign in to comment.