-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathkustomization.yaml
67 lines (60 loc) · 1.97 KB
/
kustomization.yaml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
# Value of this field is prepended to the names of all resources
namePrefix: klm-
# Labels to add to all resources and selectors.
commonLabels:
app.kubernetes.io/component: lifecycle-manager.kyma-project.io
app.kubernetes.io/instance: kcp-lifecycle-manager-main
app.kubernetes.io/name: kcp-lifecycle-manager
app.kubernetes.io/created-by: kustomize
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/part-of: manual-deployment
patches:
- path: manager_webhook_patch.yaml
resources:
- ../manager
- ../certmanager
- namespace_create.yaml
components:
- ../crd
- ../rbac/cluster_bindings
# [ISTIO] To enable istio, uncomment all sections with 'ISTIO'.
#- ../istio
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
# crd/kustomization.yaml
- ../webhook
# [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'.
#- ../prometheus
# [GRAFANA] To generate configmap for provision grafana dashboard
#- ../grafana
transformers:
- |-
apiVersion: builtin
kind: NamespaceTransformer
metadata:
name: adds-resources-to-kcp-system
namespace: kcp-system
unsetOnly: true
setRoleBindingSubjects: allServiceAccounts
- |-
apiVersion: builtin
kind: AnnotationsTransformer
metadata:
name: add-ca-inject-annotation
annotations:
cert-manager.io/inject-ca-from: kcp-system/klm-controller-manager-webhook-serving
fieldSpecs:
- kind: CustomResourceDefinition
path: metadata/annotations
- |-
apiVersion: builtin
kind: PatchTransformer
metadata:
name: fix-cert-dns-names
patch: '[{"op": "replace", "path": "/spec/dnsNames/0", "value": "klm-webhook-service.kcp-system.svc"}, {"op": "replace", "path": "/spec/dnsNames/1", "value": "klm-webhook-service.kcp-system.svc.cluster.local"}]'
target:
kind: Certificate
name: klm-controller-manager-webhook-serving
version: v1
group: cert-manager.io