Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _topic_maps/_topic_map.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2795,7 +2795,7 @@ Topics:
File: hcp-authentication-authorization
- Name: Handling machine configuration for hosted control planes
File: hcp-machine-config
- Name: Using feature gates in a hosted cluster
- Name: Feature gates in a hosted cluster
File: hcp-using-feature-gates
- Name: Observability for hosted control planes
File: hcp-observability
Expand Down
5 changes: 3 additions & 2 deletions hosted_control_planes/hcp-using-feature-gates.adoc
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
:_mod-docs-content-type: ASSEMBLY
[id="hcp-using-feature-gates"]
= Using feature gates in a hosted cluster
include::_attributes/common-attributes.adoc[]
[id="hcp-using-feature-gates"]
= Feature gates in a hosted cluster
:context: hcp-using-feature-gates

toc::[]

[role="_abstract"]
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.

include::modules/hcp-enable-feature-sets.adoc[leveloffset=+1]
Expand Down
16 changes: 9 additions & 7 deletions modules/hcp-enable-feature-sets.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
[id="hcp-enable-feature-sets_{context}"]
= Enabling feature sets by using feature gates

[role="_abstract"]
You can enable the `TechPreviewNoUpgrade` feature set in a hosted cluster by editing the `HostedCluster` custom resource (CR) with the OpenShift CLI.

.Prerequisites
Expand All @@ -28,20 +29,21 @@ $ oc edit hostedcluster <hosted_cluster_name> -n <hosted_cluster_namespace>
apiVersion: hypershift.openshift.io/v1beta1
kind: HostedCluster
metadata:
name: <hosted_cluster_name> <1>
namespace: <hosted_cluster_namespace> <2>
name: <hosted_cluster_name>
namespace: <hosted_cluster_namespace>
spec:
configuration:
featureGate:
featureSet: TechPreviewNoUpgrade <3>
featureSet: TechPreviewNoUpgrade
----
<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.
+
* `metadata.name` specifies your hosted cluster name.
* `metadata.namespace` specifies your hosted cluster namespace.
* `spec.configuration.featureGate.featureSet` is a subset of the current Technology Preview features.
+
[WARNING]
====
Enabling the `TechPreviewNoUpgrade` feature set on your cluster cannot be undone and prevents minor version updates. This feature set allows you to enable these Technology Preview features on test clusters, where you can fully test them. Do not enable this feature set on production clusters.
Enabling the `TechPreviewNoUpgrade` feature set on your cluster cannot be undone and prevents minor version updates. With this feature set, you can enable these Technology Preview features on test clusters, where you can fully test them. Do not enable this feature set on production clusters.
====

. Save the file to apply the changes.
Expand Down