From 923a8ae394941ee1b8ac74cd96afceff2d086b29 Mon Sep 17 00:00:00 2001 From: Hidde Beydals Date: Fri, 29 May 2026 22:11:49 +0200 Subject: [PATCH] Cover signingKey round-trip in export tests Extends the existing TestExport 'image update' case with a signingKey block on the seeded ImageUpdateAutomation, asserting the new field survives the kubeClient.Get + serialize path. Parallels how the existing fixture exercises every other field on the resource. Signed-off-by: Hidde Beydals --- cmd/flux/testdata/export/image-update.yaml | 4 ++++ cmd/flux/testdata/export/objects.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/cmd/flux/testdata/export/image-update.yaml b/cmd/flux/testdata/export/image-update.yaml index 0d534482..0a3462c3 100644 --- a/cmd/flux/testdata/export/image-update.yaml +++ b/cmd/flux/testdata/export/image-update.yaml @@ -10,6 +10,10 @@ spec: author: email: fluxcdbot@users.noreply.github.com name: fluxcdbot + signingKey: + secretRef: + name: my-signing-key + type: ssh interval: 1m0s sourceRef: kind: GitRepository diff --git a/cmd/flux/testdata/export/objects.yaml b/cmd/flux/testdata/export/objects.yaml index 057470e5..7a905634 100644 --- a/cmd/flux/testdata/export/objects.yaml +++ b/cmd/flux/testdata/export/objects.yaml @@ -67,6 +67,10 @@ spec: email: fluxcdbot@users.noreply.github.com name: fluxcdbot messageTemplate: '{{range .Updated.Images}}{{println .}}{{end}}' + signingKey: + secretRef: + name: my-signing-key + type: ssh update: path: ./clusters/my-cluster strategy: Setters