Update tests to HelmRelease v2beta2
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
@@ -78,7 +78,7 @@ spec:
|
|||||||
timeout: 1m0s
|
timeout: 1m0s
|
||||||
url: ssh://git@github.com/example/repo
|
url: ssh://git@github.com/example/repo
|
||||||
---
|
---
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
name: podinfo
|
name: podinfo
|
||||||
|
|||||||
2
cmd/flux/testdata/export/helm-release.yaml
vendored
2
cmd/flux/testdata/export/helm-release.yaml
vendored
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
name: flux-system
|
name: flux-system
|
||||||
|
|||||||
2
cmd/flux/testdata/export/objects.yaml
vendored
2
cmd/flux/testdata/export/objects.yaml
vendored
@@ -124,7 +124,7 @@ spec:
|
|||||||
timeout: 1m0s
|
timeout: 1m0s
|
||||||
url: https://stefanprodan.github.io/podinfo
|
url: https://stefanprodan.github.io/podinfo
|
||||||
---
|
---
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
name: flux-system
|
name: flux-system
|
||||||
|
|||||||
2
cmd/flux/testdata/trace/deployment.yaml
vendored
2
cmd/flux/testdata/trace/deployment.yaml
vendored
@@ -34,7 +34,7 @@ spec:
|
|||||||
command: [ "echo hello world" ]
|
command: [ "echo hello world" ]
|
||||||
image: busybox
|
image: busybox
|
||||||
---
|
---
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
|||||||
2
cmd/flux/testdata/trace/helmrelease-oci.yaml
vendored
2
cmd/flux/testdata/trace/helmrelease-oci.yaml
vendored
@@ -9,7 +9,7 @@ kind: Namespace
|
|||||||
metadata:
|
metadata:
|
||||||
name: {{ .ns }}
|
name: {{ .ns }}
|
||||||
---
|
---
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
|||||||
2
cmd/flux/testdata/trace/helmrelease.yaml
vendored
2
cmd/flux/testdata/trace/helmrelease.yaml
vendored
@@ -9,7 +9,7 @@ kind: Namespace
|
|||||||
metadata:
|
metadata:
|
||||||
name: {{ .ns }}
|
name: {{ .ns }}
|
||||||
---
|
---
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ You can also trace multiple objects with different resource kinds using <resourc
|
|||||||
|
|
||||||
# API Version and Kind can also be specified explicitly
|
# API Version and Kind can also be specified explicitly
|
||||||
# Note that either both, kind and api-version, or neither have to be specified.
|
# Note that either both, kind and api-version, or neither have to be specified.
|
||||||
flux trace redis --kind=helmrelease --api-version=helm.toolkit.fluxcd.io/v2beta1 -n redis`,
|
flux trace redis --kind=helmrelease --api-version=helm.toolkit.fluxcd.io/v2beta2 -n redis`,
|
||||||
RunE: traceCmdRun,
|
RunE: traceCmdRun,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ func TestTrace(t *testing.T) {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"HelmRelease",
|
"HelmRelease",
|
||||||
"trace podinfo --kind HelmRelease --api-version=helm.toolkit.fluxcd.io/v2beta1",
|
"trace podinfo --kind HelmRelease --api-version=helm.toolkit.fluxcd.io/v2beta2",
|
||||||
"testdata/trace/helmrelease.yaml",
|
"testdata/trace/helmrelease.yaml",
|
||||||
"testdata/trace/helmrelease.golden",
|
"testdata/trace/helmrelease.golden",
|
||||||
map[string]string{
|
map[string]string{
|
||||||
@@ -59,7 +59,7 @@ func TestTrace(t *testing.T) {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"HelmRelease from OCI registry",
|
"HelmRelease from OCI registry",
|
||||||
"trace podinfo --kind HelmRelease --api-version=helm.toolkit.fluxcd.io/v2beta1",
|
"trace podinfo --kind HelmRelease --api-version=helm.toolkit.fluxcd.io/v2beta2",
|
||||||
"testdata/trace/helmrelease-oci.yaml",
|
"testdata/trace/helmrelease-oci.yaml",
|
||||||
"testdata/trace/helmrelease-oci.golden",
|
"testdata/trace/helmrelease-oci.golden",
|
||||||
map[string]string{
|
map[string]string{
|
||||||
|
|||||||
Reference in New Issue
Block a user