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.
- Loading branch information
Showing
9 changed files
with
21 additions
and
24 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
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
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
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
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
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
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
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
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,15 +1,13 @@ | ||
|
||
{{ $valid_states := "alpha, beta, deprecated, stable" }} | ||
{{ $project := .Get "project" | default "Kueue" }} | ||
{{ $state := .Get "state" }} | ||
{{ $for_kueue_version := .Get "for_kueue_version" | default (.Page.Param "version")}} | ||
{{ $for_version := .Get "for_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 }} | ||
{{ 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>{{ $project }} {{ $for_kueue_version }} [{{ $state }}]</code> | ||
</div> | ||
<div class="feature-state-notice feature-{{ $state }}"> | ||
<span class="feature-state-name">FEATURE STATE</span> <code>{{ $project }} {{ $for_version }} [{{ $state }}]</code> | ||
</div> | ||
{{ end }} | ||
|