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(snc): add --profile flag with virtualization addon support
Add a profile system to the OpenShift SNC command that allows
installing addons on the cluster after deployment. The first
supported profile is 'virtualization' which installs the OCP
Virtualization (CNV) operator and enables nested virtualization
on the compute instance.
Multiple profiles can be specified as a comma-separated list (e.g., `--profile virtualization,serverless`).
66
+
67
+
### Available profiles
68
+
69
+
| Profile | Description |
70
+
|---------|-------------|
71
+
|`virtualization`| Installs [OpenShift Virtualization](https://docs.openshift.com/container-platform/latest/virt/about_virt/about-virt.html) (CNV) on the cluster. This enables running virtual machines on the single node cluster. It also enables nested virtualization on the cloud instance. |
72
+
73
+
### Adding new profiles
74
+
75
+
To add a new profile, create the following files under `pkg/target/service/snc/`:
76
+
77
+
1.`profile_<name>.go` — Go file that embeds the YAML manifests and returns the list of shell commands to execute on the SNC instance
78
+
2.`profile_<name>_*.yaml` — YAML manifests for the profile (Namespace, Operator, CRs, etc.)
79
+
3. Register the profile name in `profiles.go` by adding it to `validProfiles` and the `ProfileCommands()` switch
0 commit comments