$ oc edit <hosted_cluster_name> -n <hosted_cluster_namespace>
You can use feature gates in a hosted cluster to enable features that are not part of the default set of features. You can enable the TechPreviewNoUpgrade
feature set by using feature gates in your hosted cluster.
You can enable the TechPreviewNoUpgrade
feature set in a hosted cluster by editing the HostedCluster
custom resource (CR) with the OpenShift cli.
You installed the OpenShift cli (oc
).
Open the HostedCluster
CR for editing on the hosting cluster by running the following command:
$ oc edit <hosted_cluster_name> -n <hosted_cluster_namespace>
Define the feature set by entering a value in the featureSet
field. For example:
apiVersion: hypershift.openshift.io/v1beta1
kind: HostedCluster
metadata:
name: <hosted_cluster_name> (1)
namespace: <hosted_cluster_namespace> (2)
spec:
configuration:
featureGate:
featureSet: TechPreviewNoUpgrade (3)
1 | Specifies your hosted cluster name. |
2 | Specifies your hosted cluster namespace. |
3 | This feature set is a subset of the current Technology Preview features. |
Enabling the |
Save the file to apply the changes.
Verify that the TechPreviewNoUpgrade
feature gate is enabled in your hosted cluster by running the following command:
$ oc get featuregate cluster -o yaml