diff --git a/cmd/flux/create_image_policy.go b/cmd/flux/create_image_policy.go index 77b47321..0cebd321 100644 --- a/cmd/flux/create_image_policy.go +++ b/cmd/flux/create_image_policy.go @@ -105,7 +105,7 @@ func createImagePolicyRun(cmd *cobra.Command, args []string) error { Labels: labels, }, Spec: imagev1.ImagePolicySpec{ - ImageRepositoryRef: meta.LocalObjectReference{ + ImageRepositoryRef: meta.NamespacedObjectReference{ Name: imagePolicyArgs.imageRef, }, }, diff --git a/go.mod b/go.mod index 2c03bc94..57380131 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/fluxcd/go-git-providers v0.1.1 github.com/fluxcd/helm-controller/api v0.11.2 github.com/fluxcd/image-automation-controller/api v0.14.1 - github.com/fluxcd/image-reflector-controller/api v0.11.1 + github.com/fluxcd/image-reflector-controller/api v0.12.0 github.com/fluxcd/kustomize-controller/api v0.14.1 github.com/fluxcd/notification-controller/api v0.16.0 github.com/fluxcd/pkg/apis/meta v0.10.0 diff --git a/go.sum b/go.sum index 88a7dfd5..ec4b400a 100644 --- a/go.sum +++ b/go.sum @@ -209,8 +209,8 @@ github.com/fluxcd/helm-controller/api v0.11.2 h1:IpzGEexjEa9DttikHF40kHFORhsxAeD github.com/fluxcd/helm-controller/api v0.11.2/go.mod h1:gLPpLa8NMQJ+b4pwP/sExAPkGdFWO1CKIh1Uu82O2gM= github.com/fluxcd/image-automation-controller/api v0.14.1 h1:8EDUs61Gi5HgSA9ou0rgFuDgvag+wpTrndizFhCGYwY= github.com/fluxcd/image-automation-controller/api v0.14.1/go.mod h1:22GZblh0CmaZItQpvCBe40i5ql/oCZllpLqkGmoglEQ= -github.com/fluxcd/image-reflector-controller/api v0.11.1 h1:8pmUKL7Pise0JOBFgqw7eWtOK/rs3HNibXqCK9aJ8LE= -github.com/fluxcd/image-reflector-controller/api v0.11.1/go.mod h1:lgQHGFz29OHmDU5Jwg689C/M+P/f9ujt6NS0zCLT0BQ= +github.com/fluxcd/image-reflector-controller/api v0.12.0 h1:ghdbOUmbNaPi/jVfNnI3xzvhudXBZx6xUld/OLNSVXM= +github.com/fluxcd/image-reflector-controller/api v0.12.0/go.mod h1:lgQHGFz29OHmDU5Jwg689C/M+P/f9ujt6NS0zCLT0BQ= github.com/fluxcd/kustomize-controller/api v0.14.1 h1:OsErJQ3U3ReYTAtkeFo1t8UW4sjISF0a+6wsz942MT0= github.com/fluxcd/kustomize-controller/api v0.14.1/go.mod h1:3RNiEd/XnYjSTGzMqDzDbQkOYpdPFrKuS+XdgWt9pds= github.com/fluxcd/notification-controller/api v0.16.0 h1:3vaIj3AJRUA4dsfISuok8URV1RUmoe9NFpCAZ+tjOeU= diff --git a/manifests/bases/image-reflector-controller/kustomization.yaml b/manifests/bases/image-reflector-controller/kustomization.yaml index f7349004..e73340c5 100644 --- a/manifests/bases/image-reflector-controller/kustomization.yaml +++ b/manifests/bases/image-reflector-controller/kustomization.yaml @@ -1,8 +1,8 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: -- https://github.com/fluxcd/image-reflector-controller/releases/download/v0.11.1/image-reflector-controller.crds.yaml -- https://github.com/fluxcd/image-reflector-controller/releases/download/v0.11.1/image-reflector-controller.deployment.yaml +- https://github.com/fluxcd/image-reflector-controller/releases/download/v0.12.0/image-reflector-controller.crds.yaml +- https://github.com/fluxcd/image-reflector-controller/releases/download/v0.12.0/image-reflector-controller.deployment.yaml - account.yaml patchesJson6902: - target: diff --git a/manifests/crds/kustomization.yaml b/manifests/crds/kustomization.yaml index 3db77ad3..a7c9b300 100644 --- a/manifests/crds/kustomization.yaml +++ b/manifests/crds/kustomization.yaml @@ -5,5 +5,5 @@ resources: - https://github.com/fluxcd/kustomize-controller/releases/download/v0.14.1/kustomize-controller.crds.yaml - https://github.com/fluxcd/helm-controller/releases/download/v0.11.2/helm-controller.crds.yaml - https://github.com/fluxcd/notification-controller/releases/download/v0.16.0/notification-controller.crds.yaml -- https://github.com/fluxcd/image-reflector-controller/releases/download/v0.11.1/image-reflector-controller.crds.yaml +- https://github.com/fluxcd/image-reflector-controller/releases/download/v0.12.0/image-reflector-controller.crds.yaml - https://github.com/fluxcd/image-automation-controller/releases/download/v0.14.1/image-automation-controller.crds.yaml diff --git a/tests/azure/azure_test.go b/tests/azure/azure_test.go index d8cb3c06..1b304faa 100644 --- a/tests/azure/azure_test.go +++ b/tests/azure/azure_test.go @@ -409,7 +409,7 @@ func TestImageRepositoryACR(t *testing.T) { } _, err = controllerutil.CreateOrUpdate(ctx, cfg.kubeClient, &imagePolicy, func() error { imagePolicy.Spec = reflectorv1beta1.ImagePolicySpec{ - ImageRepositoryRef: meta.LocalObjectReference{ + ImageRepositoryRef: meta.NamespacedObjectReference{ Name: imageRepository.Name, }, Policy: reflectorv1beta1.ImagePolicyChoice{ diff --git a/tests/azure/go.mod b/tests/azure/go.mod index afdf289b..9f3f937f 100644 --- a/tests/azure/go.mod +++ b/tests/azure/go.mod @@ -6,7 +6,7 @@ require ( github.com/Azure/azure-event-hubs-go/v3 v3.3.13 github.com/fluxcd/helm-controller/api v0.11.2 github.com/fluxcd/image-automation-controller/api v0.14.1 - github.com/fluxcd/image-reflector-controller/api v0.11.1 + github.com/fluxcd/image-reflector-controller/api v0.12.0 github.com/fluxcd/kustomize-controller/api v0.14.1 github.com/fluxcd/notification-controller/api v0.16.0 github.com/fluxcd/pkg/apis/meta v0.10.1 diff --git a/tests/azure/go.sum b/tests/azure/go.sum index eb6ace7d..7c62849a 100644 --- a/tests/azure/go.sum +++ b/tests/azure/go.sum @@ -195,8 +195,8 @@ github.com/fluxcd/helm-controller/api v0.11.2 h1:IpzGEexjEa9DttikHF40kHFORhsxAeD github.com/fluxcd/helm-controller/api v0.11.2/go.mod h1:gLPpLa8NMQJ+b4pwP/sExAPkGdFWO1CKIh1Uu82O2gM= github.com/fluxcd/image-automation-controller/api v0.14.1 h1:8EDUs61Gi5HgSA9ou0rgFuDgvag+wpTrndizFhCGYwY= github.com/fluxcd/image-automation-controller/api v0.14.1/go.mod h1:22GZblh0CmaZItQpvCBe40i5ql/oCZllpLqkGmoglEQ= -github.com/fluxcd/image-reflector-controller/api v0.11.1 h1:8pmUKL7Pise0JOBFgqw7eWtOK/rs3HNibXqCK9aJ8LE= -github.com/fluxcd/image-reflector-controller/api v0.11.1/go.mod h1:lgQHGFz29OHmDU5Jwg689C/M+P/f9ujt6NS0zCLT0BQ= +github.com/fluxcd/image-reflector-controller/api v0.12.0 h1:ghdbOUmbNaPi/jVfNnI3xzvhudXBZx6xUld/OLNSVXM= +github.com/fluxcd/image-reflector-controller/api v0.12.0/go.mod h1:lgQHGFz29OHmDU5Jwg689C/M+P/f9ujt6NS0zCLT0BQ= github.com/fluxcd/kustomize-controller/api v0.14.1 h1:OsErJQ3U3ReYTAtkeFo1t8UW4sjISF0a+6wsz942MT0= github.com/fluxcd/kustomize-controller/api v0.14.1/go.mod h1:3RNiEd/XnYjSTGzMqDzDbQkOYpdPFrKuS+XdgWt9pds= github.com/fluxcd/notification-controller/api v0.16.0 h1:3vaIj3AJRUA4dsfISuok8URV1RUmoe9NFpCAZ+tjOeU=