Make flux trace work with OCIRepository
* Added support for OCIRepositories to `flux trace` * Changed indentation to compensate new, longer field name "Source Revision" * Added unit tests for the new output closes #2970 Signed-off-by: Max Jonas Werner <max@e13.dev>
This commit is contained in:
@@ -57,6 +57,18 @@ func TestTrace(t *testing.T) {
|
||||
"gitRepositoryLastReconcile": toLocalTime(t, "2021-07-20T00:48:16Z"),
|
||||
},
|
||||
},
|
||||
{
|
||||
"HelmRelease from OCI registry",
|
||||
"trace podinfo --kind HelmRelease --api-version=helm.toolkit.fluxcd.io/v2beta1",
|
||||
"testdata/trace/helmrelease-oci.yaml",
|
||||
"testdata/trace/helmrelease-oci.golden",
|
||||
map[string]string{
|
||||
"ns": allocateNamespace("podinfo"),
|
||||
"fluxns": allocateNamespace("flux-system"),
|
||||
"kustomizationLastReconcile": toLocalTime(t, "2021-08-01T04:52:56Z"),
|
||||
"ociRepositoryLastReconcile": toLocalTime(t, "2021-07-20T00:48:16Z"),
|
||||
},
|
||||
},
|
||||
}
|
||||
for _, tc := range cases {
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user