diff --git a/apps/hello-app/setter-test.yaml b/apps/hello-app/setter-test.yaml index f634d19..aa44141 100644 --- a/apps/hello-app/setter-test.yaml +++ b/apps/hello-app/setter-test.yaml @@ -1,4 +1,22 @@ # Throwaway diagnostic file - delete once the Setters investigation is done. +# Testing whether a same-namespace-as-ImageUpdateAutomation ImagePolicy +# resolves differently than the existing cross-namespace one. +apiVersion: image.toolkit.fluxcd.io/v1 +kind: ImagePolicy +metadata: + name: hello-app-samens-test + namespace: flux-system +spec: + imageRepositoryRef: + name: hello-app + namespace: hello-app + policy: + numerical: + order: asc + filterTags: + pattern: '^main-[a-f0-9]+-(?P\d+)$' + extract: '$ts' +--- apiVersion: v1 kind: ConfigMap metadata: @@ -6,3 +24,4 @@ metadata: namespace: hello-app data: image: git.boglabob.com/codegit/hello-app:latest # {"$imagepolicy": "hello-app:hello-app"} + image_samens: git.boglabob.com/codegit/hello-app:latest # {"$imagepolicy": "flux-system:hello-app-samens-test"}