-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy path07_deployment.yaml-patch
45 lines (38 loc) · 1.22 KB
/
07_deployment.yaml-patch
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
# Remove any included.* annotation, we don't want the manifest instantiated by any CVO!
# The manifest should be copied to HyperShift
- op: remove
path: /metadata/annotations
# control-plane-operator will set the right selector + Node + PodAffinity
- op: remove
path: /spec/template/spec/nodeSelector
# control-plane-operator will set the right affinity
- op: remove
path: /spec/template/spec/tolerations
# control-plane-operator will set the right namespace
- op: remove
path: /metadata/namespace
# control-plane-operator will set the right priority
- op: remove
path: /spec/template/spec/priorityClassName
# Remove changes for readOnlyRootFilesystem
- op: replace
path: /spec/template/spec/containers/0/securityContext/readOnlyRootFilesystem
value:
false
# Add guest-kubeconfig volume
- op: add
path: /spec/template/spec/volumes
value:
- name: guest-kubeconfig
secret:
secretName: service-network-admin-kubeconfig
- op: add
path: /spec/template/spec/containers/0/volumeMounts
value:
- name: guest-kubeconfig
mountPath: /etc/guest-kubeconfig
# Add cmdline args
- op: add
path: /spec/template/spec/containers/0/args/-
value:
"--guest-kubeconfig=/etc/guest-kubeconfig/kubeconfig"