-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathocm-k8s-toolkit-patch.yaml
More file actions
45 lines (44 loc) · 1.27 KB
/
ocm-k8s-toolkit-patch.yaml
File metadata and controls
45 lines (44 loc) · 1.27 KB
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
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: ocm-k8s-toolkit
namespace: default
spec:
interval: 1m
targetNamespace: ocm-system
sourceRef:
kind: GitRepository
name: ocm-k8s-toolkit
path: ./kubernetes/controller/config/default
prune: true
patches:
- patch: |
- op: add
path: /spec/template/spec/volumes/-
value:
name: custom-ca
configMap:
name: ocm-custom-ca
- op: add
path: /spec/template/spec/containers/0/volumeMounts/-
value:
name: custom-ca
mountPath: /etc/ocm/ca
readOnly: true
- op: add
path: /spec/template/spec/containers/0/env
value:
- name: SSL_CERT_FILE
value: /etc/ocm/ca/registry-ca.pem
- op: replace
path: /spec/template/spec/containers/0/args
value:
- --health-probe-bind-address=:8081
- --resource-controller-concurrency=21
- --zap-log-level=4
- op: replace
path: /spec/template/spec/containers/0/image
value: ghcr.io/open-component-model/kubernetes/controller:0.0.0-7e5db44
target:
kind: Deployment
name: controller-manager