Skip to content

Commit

Permalink
Merge pull request kubernetes#48422 from vinayakankugoyal/shortcode
Browse files Browse the repository at this point in the history
Update the feature-state shortcode to display the default value.
  • Loading branch information
k8s-ci-robot authored Oct 23, 2024
2 parents 404cf3e + b41120b commit cc33a61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions data/i18n/en/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ other = "Were you looking for:"
[examples_heading]
other = "Examples"

[feature_gate_enabled]
other = "(enabled by default: {{ .enabled }})"

[feature_gate_stage_alpha]
other = "Alpha"

Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/feature-state.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

<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>
<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>

{{- $featureGateFound = true -}}
Expand Down

0 comments on commit cc33a61

Please sign in to comment.