mirror of
https://github.com/fluxcd/flux2.git
synced 2026-06-28 18:05:08 +00:00
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 <hidde@hhh.computer>
This commit is contained in:
parent
4e8c13ba59
commit
923a8ae394
2 changed files with 8 additions and 0 deletions
4
cmd/flux/testdata/export/image-update.yaml
vendored
4
cmd/flux/testdata/export/image-update.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
4
cmd/flux/testdata/export/objects.yaml
vendored
4
cmd/flux/testdata/export/objects.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue