Skip to content

Commit 82d3b7f

Browse files
authored
Merge pull request #41607 from xenolinux/fields
[BZ2050107]: Add fields to subscription config when installing Operators using CLI
2 parents ba6db52 + c52ff8d commit 82d3b7f

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

modules/olm-installing-from-operatorhub-using-cli.adoc

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,44 @@ spec:
116116
name: <operator_name> <3>
117117
source: redhat-operators <4>
118118
sourceNamespace: openshift-marketplace <5>
119+
config:
120+
env: <6>
121+
- name: ARGS
122+
value: "-v=10"
123+
envFrom: <7>
124+
- secretRef:
125+
name: license-secret
126+
volumes: <8>
127+
- name: <volume_name>
128+
configMap:
129+
name: <configmap_name>
130+
volumeMounts: <9>
131+
- mountPath: <directory_name>
132+
name: <volume_name>
133+
tolerations: <10>
134+
- operator: "Exists"
135+
resources: <11>
136+
requests:
137+
memory: "64Mi"
138+
cpu: "250m"
139+
limits:
140+
memory: "128Mi"
141+
cpu: "500m"
142+
nodeSelector: <12>
143+
foo: bar
119144
----
120145
<1> For `AllNamespaces` install mode usage, specify the `openshift-operators` namespace. Otherwise, specify the relevant single namespace for `SingleNamespace` install mode usage.
121146
<2> Name of the channel to subscribe to.
122147
<3> Name of the Operator to subscribe to.
123148
<4> Name of the catalog source that provides the Operator.
124149
<5> Namespace of the catalog source. Use `openshift-marketplace` for the default OperatorHub catalog sources.
150+
<6> The `env` parameter defines a list of Environment Variables that must exist in all containers in the pod created by OLM.
151+
<7> The `envFrom` parameter defines a list of sources to populate Environment Variables in the container.
152+
<8> The `volumes` parameter defines a list of Volumes that must exist on the pod created by OLM.
153+
<9> The `volumeMounts` parameter defines a list of VolumeMounts that must exist in all containers in the pod created by OLM. If a `volumeMount` references a `volume` that does not exist, OLM fails to deploy the Operator.
154+
<10> The `tolerations` parameter defines a list of Tolerations for the pod created by OLM.
155+
<11> The `resources` parameter defines resource constraints for all the containers in the pod created by OLM.
156+
<12> The `nodeSelector` parameter defines a `NodeSelector` for the pod created by OLM.
125157

126158
. Create the `Subscription` object:
127159
+

0 commit comments

Comments
 (0)