Skip to content

Commit

Permalink
Switch more feature-state shortcodes to be data driven
Browse files Browse the repository at this point in the history
When the feature gates graduate (or get deprecated), the associated
shortcode will update automatically.
  • Loading branch information
sftim committed Apr 22, 2024
1 parent 53ecc94 commit 7b68660
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions content/en/docs/reference/using-api/api-concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ the API server will send any `BOOKMARK` event even when requested.

## Streaming lists

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

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

## Response compression

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

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

## Retrieving large results sets in chunks

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

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

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

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

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

## Dry-run

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

When you use HTTP verbs that can modify resources (`POST`, `PUT`, `PATCH`, and
`DELETE`), you can submit your request in a _dry run_ mode. Dry run mode helps to
Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/reference/using-api/server-side-apply.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ weight: 25

<!-- overview -->

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

Kubernetes supports multiple appliers collaborating to manage the fields
of a single [object](/docs/concepts/overview/working-with-objects/).
Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/tasks/administer-cluster/memory-manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ weight: 410

<!-- overview -->

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

The Kubernetes *Memory Manager* enables the feature of guaranteed memory (and hugepages)
allocation for pods in the `Guaranteed` {{< glossary_tooltip text="QoS class" term_id="qos-class" >}}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ content_type: task
weight: 90
---

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

<!-- overview -->

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ min-kubernetes-server-version: 1.27

<!-- overview -->

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

This page assumes that you are familiar with [Quality of Service](/docs/tasks/configure-pod-container/quality-service-pod/)
for Kubernetes Pods.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ min-kubernetes-server-version: v1.25
---

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

This page shows how to configure a user namespace for pods. This allows you to
isolate the user running inside the container from the one in the host.
Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/tasks/job/pod-failure-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ min-kubernetes-server-version: v1.25
weight: 60
---

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

<!-- overview -->

Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/tasks/network/extend-service-ip-ranges.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ content_type: task
---

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

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

Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/tasks/run-application/configure-pdb.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ These pods are tracked via `.status.currentHealthy` field in the PDB status.

## Unhealthy Pod Eviction Policy

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

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

0 comments on commit 7b68660

Please sign in to comment.