Add the possibility to ignore files with build and diff ks
If implemented, user will be able to ignore files when using `build kustomization` and `diff kustomization` both with .sourceignore and `ignore-paths` flag. Signed-off-by: Soule BA <bah.soule@gmail.com>
This commit is contained in:
2
cmd/flux/testdata/build-kustomization/ignore/.sourceignore
vendored
Normal file
2
cmd/flux/testdata/build-kustomization/ignore/.sourceignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# exclude all
|
||||
/*
|
||||
6
cmd/flux/testdata/build-kustomization/ignore/configmap.yaml
vendored
Normal file
6
cmd/flux/testdata/build-kustomization/ignore/configmap.yaml
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
apiVersion: v1
|
||||
data:
|
||||
var: test
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: configmap_ignore
|
||||
17
cmd/flux/testdata/build-kustomization/ignore/not_deployable/ignore_svc.yaml
vendored
Normal file
17
cmd/flux/testdata/build-kustomization/ignore/not_deployable/ignore_svc.yaml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: do_not_deploy
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: podinfo
|
||||
ports:
|
||||
- name: http
|
||||
port: 9898
|
||||
protocol: TCP
|
||||
targetPort: http
|
||||
- port: 9999
|
||||
targetPort: grpc
|
||||
protocol: TCP
|
||||
name: grpc
|
||||
7
cmd/flux/testdata/build-kustomization/ignore/secret.yaml
vendored
Normal file
7
cmd/flux/testdata/build-kustomization/ignore/secret.yaml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
apiVersion: v1
|
||||
data:
|
||||
token: KipTT1BTKio=
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: secret_ignore
|
||||
type: Opaque
|
||||
23
cmd/flux/testdata/build-kustomization/podinfo-with-ignore-result.yaml
vendored
Normal file
23
cmd/flux/testdata/build-kustomization/podinfo-with-ignore-result.yaml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
apiVersion: v1
|
||||
data:
|
||||
var: test
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
labels:
|
||||
kustomize.toolkit.fluxcd.io/name: podinfo
|
||||
kustomize.toolkit.fluxcd.io/namespace: {{ .fluxns }}
|
||||
name: configmap_ignore
|
||||
namespace: default
|
||||
---
|
||||
apiVersion: v1
|
||||
data:
|
||||
token: KipTT1BTKio=
|
||||
kind: Secret
|
||||
metadata:
|
||||
labels:
|
||||
kustomize.toolkit.fluxcd.io/name: podinfo
|
||||
kustomize.toolkit.fluxcd.io/namespace: {{ .fluxns }}
|
||||
name: secret_ignore
|
||||
namespace: default
|
||||
type: Opaque
|
||||
---
|
||||
Reference in New Issue
Block a user