Skip to content

Commit 7b68660

Browse files
author
Tim Bannister
committed
Switch more feature-state shortcodes to be data driven
When the feature gates graduate (or get deprecated), the associated shortcode will update automatically.
1 parent 53ecc94 commit 7b68660

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

content/en/docs/reference/using-api/api-concepts.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ the API server will send any `BOOKMARK` event even when requested.
229229

230230
## Streaming lists
231231

232-
{{< feature-state for_k8s_version="v1.27" state="alpha" >}}
232+
{{< feature-state feature_gate_name="WatchList" >}}
233233

234234
On large clusters, retrieving the collection of some resource types may result in
235235
a significant increase of resource usage (primarily RAM) on the control plane.
@@ -287,7 +287,7 @@ Content-Type: application/json
287287

288288
## Response compression
289289

290-
{{< feature-state for_k8s_version="v1.16" state="beta" >}}
290+
{{< feature-state feature_gate_name="APIResponseCompression" >}}
291291

292292
`APIResponseCompression` is an option that allows the API server to compress the responses for **get**
293293
and **list** requests, reducing the network bandwidth and improving the performance of large-scale clusters.
@@ -317,7 +317,7 @@ The `content-encoding` header indicates that the response is compressed with `gz
317317

318318
## Retrieving large results sets in chunks
319319

320-
{{< feature-state for_k8s_version="v1.29" state="stable" >}}
320+
{{< feature-state feature_gate_name="APIListChunking" >}}
321321

322322
On large clusters, retrieving the collection of some resource types may result in
323323
very large responses that can impact the server and client. For instance, a cluster
@@ -787,7 +787,7 @@ These situations are:
787787

788788
### Validation for unrecognized or duplicate fields {#setting-the-field-validation-level}
789789

790-
{{< feature-state for_k8s_version="v1.27" state="stable" >}}
790+
{{< feature-state feature_gate_name="ServerSideFieldValidation" >}}
791791

792792
From 1.25 onward, unrecognized or duplicate fields in an object are detected via
793793
validation on the server when you use HTTP verbs that can submit data (`POST`, `PUT`, and `PATCH`). Possible levels of
@@ -846,7 +846,7 @@ a boolean flag.
846846

847847
## Dry-run
848848

849-
{{< feature-state for_k8s_version="v1.18" state="stable" >}}
849+
{{< feature-state feature_gate_name="DryRun" >}}
850850

851851
When you use HTTP verbs that can modify resources (`POST`, `PUT`, `PATCH`, and
852852
`DELETE`), you can submit your request in a _dry run_ mode. Dry run mode helps to

content/en/docs/reference/using-api/server-side-apply.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ weight: 25
1111

1212
<!-- overview -->
1313

14-
{{< feature-state for_k8s_version="v1.22" state="stable" >}}
14+
{{< feature-state feature_gate_name="ServerSideApply" >}}
1515

1616
Kubernetes supports multiple appliers collaborating to manage the fields
1717
of a single [object](/docs/concepts/overview/working-with-objects/).

content/en/docs/tasks/administer-cluster/memory-manager.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ weight: 410
1212

1313
<!-- overview -->
1414

15-
{{< feature-state state="beta" for_k8s_version="v1.22" >}}
15+
{{< feature-state feature_gate_name="MemoryManager" >}}
1616

1717
The Kubernetes *Memory Manager* enables the feature of guaranteed memory (and hugepages)
1818
allocation for pods in the `Guaranteed` {{< glossary_tooltip text="QoS class" term_id="qos-class" >}}.

content/en/docs/tasks/administer-cluster/switch-to-evented-pleg.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ content_type: task
55
weight: 90
66
---
77

8-
{{< feature-state for_k8s_version="v1.27" state="beta" >}}
8+
{{< feature-state feature_gate_name="EventedPLEG" >}}
99

1010
<!-- overview -->
1111

content/en/docs/tasks/configure-pod-container/resize-container-resources.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ min-kubernetes-server-version: 1.27
88

99
<!-- overview -->
1010

11-
{{< feature-state state="alpha" for_k8s_version="v1.27" >}}
11+
{{< feature-state feature_gate_name="InPlacePodVerticalScaling" >}}
1212

1313
This page assumes that you are familiar with [Quality of Service](/docs/tasks/configure-pod-container/quality-service-pod/)
1414
for Kubernetes Pods.

content/en/docs/tasks/configure-pod-container/user-namespaces.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ min-kubernetes-server-version: v1.25
77
---
88

99
<!-- overview -->
10-
{{< feature-state for_k8s_version="v1.30" state="beta" >}}
10+
{{< feature-state feature_gate_name="UserNamespacesSupport" >}}
1111

1212
This page shows how to configure a user namespace for pods. This allows you to
1313
isolate the user running inside the container from the one in the host.

content/en/docs/tasks/job/pod-failure-policy.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ min-kubernetes-server-version: v1.25
55
weight: 60
66
---
77

8-
{{< feature-state for_k8s_version="v1.26" state="beta" >}}
8+
{{< feature-state feature_gate_name="JobPodFailurePolicy" >}}
99

1010
<!-- overview -->
1111

content/en/docs/tasks/network/extend-service-ip-ranges.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ content_type: task
88
---
99

1010
<!-- overview -->
11-
{{< feature-state state="alpha" for_k8s_version="v1.29" >}}
11+
{{< feature-state feature_gate_name="MultiCIDRServiceAllocator" >}}
1212

1313
This document shares how to extend the existing Service IP range assigned to a cluster.
1414

content/en/docs/tasks/run-application/configure-pdb.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ These pods are tracked via `.status.currentHealthy` field in the PDB status.
241241

242242
## Unhealthy Pod Eviction Policy
243243

244-
{{< feature-state for_k8s_version="v1.27" state="beta" >}}
244+
{{< feature-state feature_gate_name="PDBUnhealthyPodEvictionPolicy" >}}
245245

246246
{{< note >}}
247247
This feature is enabled by default. You can disable it by disabling the `PDBUnhealthyPodEvictionPolicy`

0 commit comments

Comments
 (0)