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.
Add reusable feature-state component (#2342)
* Add reusable feature-state component * Replace for_k8s_version with for_kueue_version * Use new feature-state component * Use feature-state states * Reword feature state component to more closely match kubernetes style * Remove unnecessary feature-state note * Only use minor versions * Fix rebase error
- Loading branch information
Showing
10 changed files
with
55 additions
and
20 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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{ $valid_states := "alpha, beta, deprecated, stable" }} | ||
{{ $project := .Get "project" | default "Kueue" }} | ||
{{ $state := .Get "state" }} | ||
{{ $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 }} | ||
{{ else }} | ||
<div class="feature-state-notice feature-{{ $state }}"> | ||
<span class="feature-state-name">Feature state</span> {{ $state }} since {{ $project }} {{ $for_version }} | ||
</div> | ||
{{ end }} |