Merge pull request #48422 from vinayakankugoyal/shortcode
Update the feature-state shortcode to display the default value.pull/48572/head
commit
cc33a61fdb
|
@ -161,6 +161,9 @@ other = "Were you looking for:"
|
||||||
[examples_heading]
|
[examples_heading]
|
||||||
other = "Examples"
|
other = "Examples"
|
||||||
|
|
||||||
|
[feature_gate_enabled]
|
||||||
|
other = "(enabled by default: {{ .enabled }})"
|
||||||
|
|
||||||
[feature_gate_stage_alpha]
|
[feature_gate_stage_alpha]
|
||||||
other = "Alpha"
|
other = "Alpha"
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
<div class="feature-state-notice feature-{{ .stage }}" title="{{ printf "%s %s" (T "feature_state_feature_gate_tooltip") $feature_gate_name }}">
|
<div class="feature-state-notice feature-{{ .stage }}" title="{{ printf "%s %s" (T "feature_state_feature_gate_tooltip") $feature_gate_name }}">
|
||||||
<span class="feature-state-name">{{ T "feature_state" }}</span>
|
<span class="feature-state-name">{{ T "feature_state" }}</span>
|
||||||
<code>{{ T "feature_state_kubernetes_label" }} v{{ .fromVersion }} [{{ .stage }}]</code>
|
<code>{{ T "feature_state_kubernetes_label" }} v{{ .fromVersion }} [{{ .stage }}]</code> {{ T "feature_gate_enabled" (dict "enabled" .defaultValue) }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{- $featureGateFound = true -}}
|
{{- $featureGateFound = true -}}
|
||||||
|
|
Loading…
Reference in New Issue