1
0
mirror of synced 2026-02-06 19:05:55 +00:00

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:
Soule BA
2023-04-04 18:04:55 +02:00
parent f00fee5328
commit b74638c25c
11 changed files with 107 additions and 9 deletions

View File

@@ -0,0 +1,2 @@
# exclude all
/*

View File

@@ -0,0 +1,6 @@
apiVersion: v1
data:
var: test
kind: ConfigMap
metadata:
name: configmap_ignore

View 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

View File

@@ -0,0 +1,7 @@
apiVersion: v1
data:
token: KipTT1BTKio=
kind: Secret
metadata:
name: secret_ignore
type: Opaque

View 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
---