Add --show-history flag to debug kustomization
Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
# History documentation: https://fluxcd.io/flux/components/helm/helmreleases/#helmrelease-status
|
||||
# History documentation: https://fluxcd.io/flux/components/helm/helmreleases/#history
|
||||
[]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# History documentation: https://fluxcd.io/flux/components/helm/helmreleases/#helmrelease-status
|
||||
# History documentation: https://fluxcd.io/flux/components/helm/helmreleases/#history
|
||||
- appVersion: 6.0.0
|
||||
chartName: podinfo
|
||||
chartVersion: 6.0.0
|
||||
|
||||
2
cmd/flux/testdata/debug_kustomization/history-empty.golden.yaml
vendored
Normal file
2
cmd/flux/testdata/debug_kustomization/history-empty.golden.yaml
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# History documentation: https://fluxcd.io/flux/components/kustomize/kustomizations/#history
|
||||
[]
|
||||
17
cmd/flux/testdata/debug_kustomization/history.golden.yaml
vendored
Normal file
17
cmd/flux/testdata/debug_kustomization/history.golden.yaml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
# History documentation: https://fluxcd.io/flux/components/kustomize/kustomizations/#history
|
||||
- digest: sha256:def456
|
||||
firstReconciled: "2024-01-01T09:00:00Z"
|
||||
lastReconciled: "2024-01-01T10:00:00Z"
|
||||
lastReconciledDuration: 300ms
|
||||
lastReconciledStatus: success
|
||||
metadata:
|
||||
originRevision: abc123
|
||||
totalReconciliations: 1
|
||||
- digest: sha256:ghi012
|
||||
firstReconciled: "2024-02-01T09:00:00Z"
|
||||
lastReconciled: "2024-02-01T10:00:00Z"
|
||||
lastReconciledDuration: 500ms
|
||||
lastReconciledStatus: failure
|
||||
metadata:
|
||||
originRevision: xyz789
|
||||
totalReconciliations: 10
|
||||
@@ -44,6 +44,47 @@ spec:
|
||||
- kind: Secret
|
||||
name: test
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: test-with-history
|
||||
namespace: {{ .fluxns }}
|
||||
spec:
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: test
|
||||
interval: 1m
|
||||
path: "./"
|
||||
prune: true
|
||||
postBuild:
|
||||
substitute:
|
||||
TEST_OVERRIDE: "in-line"
|
||||
TEST_INLINE: "in-line"
|
||||
substituteFrom:
|
||||
- kind: ConfigMap
|
||||
name: test
|
||||
- kind: Secret
|
||||
name: test
|
||||
status:
|
||||
observedGeneration: 1
|
||||
history:
|
||||
- digest: sha256:def456
|
||||
firstReconciled: "2024-01-01T09:00:00Z"
|
||||
lastReconciled: "2024-01-01T10:00:00Z"
|
||||
lastReconciledDuration: 300ms
|
||||
lastReconciledStatus: success
|
||||
metadata:
|
||||
originRevision: abc123
|
||||
totalReconciliations: 1
|
||||
- digest: sha256:ghi012
|
||||
firstReconciled: "2024-02-01T09:00:00Z"
|
||||
lastReconciled: "2024-02-01T10:00:00Z"
|
||||
lastReconciledDuration: 500ms
|
||||
lastReconciledStatus: failure
|
||||
metadata:
|
||||
originRevision: xyz789
|
||||
totalReconciliations: 10
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
|
||||
Reference in New Issue
Block a user