mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-18 13:41:49 +00:00
Update tests to HelmRelease v2beta2
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
afcf12194d
commit
b4f5d121c8
8 changed files with 9 additions and 9 deletions
|
|
@ -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{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue