Document how to use feature_gate_name param with feature-state shortcode

pull/45032/head
Dipesh Rawat 2024-02-06 00:29:46 +00:00
parent fdc49a6ba8
commit 65e31b4fbe
No known key found for this signature in database
1 changed files with 15 additions and 0 deletions

View File

@ -49,6 +49,21 @@ Renders to:
{{< feature-state for_k8s_version="v1.10" state="beta" >}}
### Feature state retrieval from description file
To dynamically determine the state of the feature, make use of the `feature_gate_name`
shortcode parameter. The feature state details will be extracted from the corresponding feature gate
description file located in `content/en/docs/reference/command-line-tools-reference/feature-gates/`.
For example:
```
{{</* feature-state feature_gate_name="NodeSwap" */>}}
```
Renders to:
{{< feature-state feature_gate_name="NodeSwap" >}}
## Feature gate description
In a Markdown page (`.md` file) on this site, you can add a shortcode to