You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(profile): add --operator-channel and --catalog-source flags
Allow overriding the OLM subscription channel and catalog source per
operator when creating SNC clusters. This lets QE teams test specific
operator versions or custom index images without modifying profile code.
Validation runs before any infrastructure is provisioned to fail fast
on invalid inputs.
Copy file name to clipboardExpand all lines: cmd/mapt/cmd/aws/services/snc.go
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,11 @@ const (
27
27
28
28
sncProfile="profile"
29
29
sncProfileDesc="comma separated list of profiles to apply on the SNC cluster. Profiles available: virtualization, serverless-serving, serverless-eventing, serverless, servicemesh, ai, nvidia. The ai profile automatically includes servicemesh and serverless-serving as prerequisites and raises the minimum instance size to 16 vCPUs. The nvidia profile installs NFD and the NVIDIA GPU Operator"
30
+
31
+
operatorChannel="operator-channel"
32
+
operatorChannelDesc="override the OLM subscription channel for an operator (--operator-channel serverless-operator=preview,nfd=4.17)"
33
+
catalogSource="catalog-source"
34
+
catalogSourceDesc="override the OLM catalog source with a custom index image (--catalog-source serverless-operator=quay.io/my-org/my-index:latest)"
Copy file name to clipboardExpand all lines: docs/aws/openshift-snc.md
+50Lines changed: 50 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,56 @@ Multiple profiles can be specified as a comma-separated list (e.g., `--profile v
77
77
|`nvidia`| Installs the [NVIDIA GPU Operator](https://docs.nvidia.com/datacenter/cloud-native/openshift/latest/install-gpu-ocp.html) on the cluster. Automatically installs [Node Feature Discovery](https://docs.redhat.com/en/documentation/openshift_container_platform/latest/html/specialized_hardware_and_driver_enablement/psap-node-feature-discovery-operator) (NFD) as a prerequisite and creates a ClusterPolicy with the recommended OpenShift defaults (CRI-O runtime, OCP driver toolkit). The cluster must run on a GPU-capable instance type (e.g. `g4dn`, `g5`, `p4d`).|
78
78
79
79
80
+
### Operator overrides
81
+
82
+
Profiles install operators using the default OLM channel (`stable`) and catalog (`redhat-operators`). Two flags allow overriding these per operator, which is useful for testing pre-release operator builds:
83
+
84
+
#### `--operator-channel`
85
+
86
+
Override the OLM subscription channel for a specific operator:
Use a custom index image instead of the default catalog. This creates a `CatalogSource` CR in `openshift-marketplace` and points the operator's subscription to it:
When neither flag is provided, operators use the defaults: channel `stable` and catalog `redhat-operators` (unless overridden in the profile definition, e.g. `gpu-operator-certified` and `nfd` use `certified-operators`).
120
+
121
+
The keys are operator package names as they appear in OLM. The operators installed by each profile are:
0 commit comments