forked from openshift/operator-framework-olm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackageserver-deployment.patch.yaml
47 lines (47 loc) · 1.56 KB
/
packageserver-deployment.patch.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
- command: update
path: spec.install.spec.deployments[0].spec.template.metadata.annotations."target.workload.openshift.io/management"
value: '{"effect": "PreferredDuringScheduling"}'
- command: update
path: spec.install.spec.deployments[0].spec.template.spec.priorityClassName
value: system-cluster-critical
- command: update
path: spec.cleanup.enabled
value: false
- command: update
path: spec.customresourcedefinitions
value: {}
- command: update
path: spec.install.spec.deployments[0].spec.template.spec.containers[0].ports[0].protocol
value: TCP
- command: update
path: spec.install.spec.deployments[0].spec.template.metadata.creationTimestamp
value: null
- command: update
path: metadata.annotations
value:
include.release.openshift.io/self-managed-high-availability: "true"
include.release.openshift.io/ibm-cloud-managed: "true"
- command: update
path: spec.install.spec.deployments[0].spec.template.spec.affinity
value:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- packageserver
topologyKey: "kubernetes.io/hostname"
- command: update
path: spec.install.spec.deployments[0].spec.template.spec.containers[*].securityContext
value:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
- command: update
path: spec.install.spec.deployments[0].spec.template.spec.securityContext
value:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault