-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkustomization.yaml.tpl
48 lines (48 loc) · 1.11 KB
/
kustomization.yaml.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- gotk-components.yaml
- gotk-sync.yaml
patches:
- patch: |
apiVersion: v1
kind: ServiceAccount
metadata:
name: kustomize-controller
annotations: ${service_account_annotations}
labels: ${service_account_labels}
target:
kind: ServiceAccount
name: kustomize-controller
labelSelector: app.kubernetes.io/part-of=flux
- patch: |
apiVersion: apps/v1
kind: Deployment
metadata:
name: kustomize-controller
spec:
template:
metadata:
labels: ${pod_labels}
target:
kind: Deployment
name: kustomize-controller
- patch: |
- op: add
path: /spec/template/spec/containers/0/args/-
value: --feature-gates=${kustomize_controller_feature_gates}
target:
kind: Deployment
name: kustomize-controller
- patch: |
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: flux-system
spec:
prune: ${flux_system_prune}
decryption:
provider: sops
target:
kind: Kustomization
name: flux-system