generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace for_k8s_version with for_kueue_version
- Loading branch information
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
|
||
{{ $valid_states := "alpha, beta, deprecated, stable" }} | ||
{{ $project := .Get "project" | default "Kueue" }} | ||
{{ $state := .Get "state" }} | ||
{{ $for_k8s_version := .Get "for_k8s_version" | default (.Page.Param "version")}} | ||
{{ $for_kueue_version := .Get "for_kueue_version" | default (.Page.Param "version")}} | ||
{{ $is_valid := strings.Contains $valid_states $state }} | ||
|
||
{{ if not $is_valid }} | ||
{{ errorf "%q is not a valid feature-state, use one of %q" $state $valid_states }} | ||
{{ else }} | ||
<div class="feature-state-notice feature-{{ $state }}"> | ||
<span class="feature-state-name">FEATURE STATE</span> <code>Kubernetes {{ $for_k8s_version }} [{{ $state }}]</code> | ||
<span class="feature-state-name">FEATURE STATE</span> <code>{{ $project }} {{ $for_kueue_version }} [{{ $state }}]</code> | ||
</div> | ||
{{ end }} | ||
|