Skip to content

Commit 9cf6ee3

Browse files
committed
feat: update catalog source spec with config
Signed-off-by: Per G. da Silva <[email protected]>
1 parent 3e95d2c commit 9cf6ee3

File tree

4 files changed

+103
-19
lines changed

4 files changed

+103
-19
lines changed

crds/operators.coreos.com_catalogsources.yaml

+32
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,38 @@ spec:
5959
address:
6060
description: 'Address is a host that OLM can use to connect to a pre-existing registry. Format: <registry-host or ip>:<port> Only used when SourceType = SourceTypeGrpc. Ignored when the Image field is set.'
6161
type: string
62+
config:
63+
description: Config adds additional optional settings, e.g. catalog source pod node selectors and tolerations
64+
type: object
65+
properties:
66+
nodeSelector:
67+
description: 'NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node''s labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/'
68+
type: object
69+
additionalProperties:
70+
type: string
71+
tolerations:
72+
description: Tolerations are the catalog source's pod's tolerations.
73+
type: array
74+
items:
75+
description: The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.
76+
type: object
77+
properties:
78+
effect:
79+
description: Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
80+
type: string
81+
key:
82+
description: Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.
83+
type: string
84+
operator:
85+
description: Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.
86+
type: string
87+
tolerationSeconds:
88+
description: TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.
89+
type: integer
90+
format: int64
91+
value:
92+
description: Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.
93+
type: string
6294
configMap:
6395
description: ConfigMap is the name of the ConfigMap to be used to back a configmap-server registry. Only used when SourceType = SourceTypeConfigmap or SourceTypeInternal.
6496
type: string

0 commit comments

Comments
 (0)