From 13ec11da581df077aac23a35e0b625aba3d9cbc7 Mon Sep 17 00:00:00 2001 From: Matheus Pimenta Date: Tue, 27 May 2025 15:50:40 +0100 Subject: [PATCH] Fix image-reflector-controller tests after output change Signed-off-by: Matheus Pimenta --- cmd/flux/testdata/export/image-policy.yaml | 1 + cmd/flux/testdata/image/get_image_policy_regex.golden | 4 ++-- cmd/flux/testdata/image/get_image_policy_semver.golden | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cmd/flux/testdata/export/image-policy.yaml b/cmd/flux/testdata/export/image-policy.yaml index 8feff350..317fcba3 100644 --- a/cmd/flux/testdata/export/image-policy.yaml +++ b/cmd/flux/testdata/export/image-policy.yaml @@ -5,6 +5,7 @@ metadata: name: flux-system namespace: {{ .fluxns }} spec: + digestReflectionPolicy: Never imageRepositoryRef: name: flux-system policy: diff --git a/cmd/flux/testdata/image/get_image_policy_regex.golden b/cmd/flux/testdata/image/get_image_policy_regex.golden index 9f654d4e..94d5dbcf 100644 --- a/cmd/flux/testdata/image/get_image_policy_regex.golden +++ b/cmd/flux/testdata/image/get_image_policy_regex.golden @@ -1,2 +1,2 @@ -NAME LATEST IMAGE READY MESSAGE -podinfo-regex ghcr.io/stefanprodan/podinfo:5.0.0 True Latest image tag for 'ghcr.io/stefanprodan/podinfo' resolved to 5.0.0 +NAME LATEST IMAGE READY MESSAGE +podinfo-regex ghcr.io/stefanprodan/podinfo:5.0.0 True Latest image tag for ghcr.io/stefanprodan/podinfo resolved to 5.0.0 diff --git a/cmd/flux/testdata/image/get_image_policy_semver.golden b/cmd/flux/testdata/image/get_image_policy_semver.golden index 7100445e..90ef4092 100644 --- a/cmd/flux/testdata/image/get_image_policy_semver.golden +++ b/cmd/flux/testdata/image/get_image_policy_semver.golden @@ -1,2 +1,2 @@ -NAME LATEST IMAGE READY MESSAGE -podinfo-semver ghcr.io/stefanprodan/podinfo:5.0.3 True Latest image tag for 'ghcr.io/stefanprodan/podinfo' resolved to 5.0.3 +NAME LATEST IMAGE READY MESSAGE +podinfo-semver ghcr.io/stefanprodan/podinfo:5.0.3 True Latest image tag for ghcr.io/stefanprodan/podinfo resolved to 5.0.3