Skip to content

Commit

Permalink
Use new feature-state component
Browse files Browse the repository at this point in the history
  • Loading branch information
ivange94 committed Jun 30, 2024
1 parent 429833d commit 01ecae6
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 24 deletions.
2 changes: 1 addition & 1 deletion site/content/en/docs/concepts/cluster_queue.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ To limit the amount of resources that a ClusterQueue can lend in the cohort,
you can set the `.spec.resourcesGroup[*].flavors[*].resource[*].lendingLimit`
[quantity](https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/) field.

{{< feature-state state="stable" for_version="v0.6.0+" >}}
{{% alert title="Warning" color="warning" %}}
_Available in Kueue v0.6.0 and later_

`LendingLimit` is an Alpha feature disabled by default.

Expand Down
5 changes: 2 additions & 3 deletions site/content/en/docs/concepts/multikueue.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ description: >
Kueue multi cluster job dispatching.
---

{{% alert title="Warning" color="warning" %}}
_Available in Kueue v0.6.0 and later_
{{% /alert %}}
{{< feature-state state="stable" for_version="v0.6.0+" >}}


{{% alert title="Warning" color="warning" %}}
MultiKueue is currently an alpha feature and disabled by default. Check the [Installation](/docs/installation/#change-the-feature-gates-configuration) guide for details on feature gate configuration.
Expand Down
4 changes: 1 addition & 3 deletions site/content/en/docs/concepts/preemption.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ admitted when accounting back the quota usage of the target Workload.

## Fair Sharing

{{% alert title="Note" color="primary" %}}
Available in Kueue v0.7.0 and newer
{{% /alert %}}
{{< feature-state state="stable" for_version="v0.7.0+" >}}

To enable fair sharing, [use a Kueue Configuration](/docs/installation#install-a-custom-configured-release-version) similar to the following:

Expand Down
9 changes: 6 additions & 3 deletions site/content/en/docs/installation/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ kubectl apply --server-side -f https://github.com/kubernetes-sigs/kueue/releases

### Add metrics scraping for prometheus-operator

> _Available in Kueue v0.2.1 and later_
{{< feature-state state="stable" for_version="v0.2.1+" >}}


To allow [prometheus-operator](https://github.com/prometheus-operator/prometheus-operator)
to scrape metrics from kueue components, run the following command:
Expand All @@ -74,7 +75,8 @@ kubectl apply --server-side -f https://github.com/kubernetes-sigs/kueue/releases

### Add visibility API to monitor pending workloads

> _Available in Kueue v0.6.0 and later_
{{< feature-state state="stable" for_version="v0.6.0+" >}}


To add the visibility API that enables monitoring pending workloads, change [the feature gates configuration](/docs/installation/#change-the-feature-gates-configuration) and set `VisibilityOnDemand=true`, and run the following command

Expand Down Expand Up @@ -186,7 +188,8 @@ IMAGE_REGISTRY=registry.example.com/my-user make image-local-push deploy

### Add metrics scraping for prometheus-operator

> _Available in Kueue v0.2.0 and later_
{{< feature-state state="stable" for_version="v0.2.0+" >}}


To allow [prometheus-operator](https://github.com/prometheus-operator/prometheus-operator)
to scrape metrics from kueue components, run the following command:
Expand Down
2 changes: 1 addition & 1 deletion site/content/en/docs/tasks/dev/enabling_pprof_endpoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Make sure the following conditions are met:

## Enabling pprof endpoints

> _Available in Kueue v0.5.0 and later_
{{< feature-state state="stable" for_version="v0.5.0+" >}}

To enable pprof endpoints, you need to set a `pprofBindAddress` is set in the [manager's configuration](/docs/installation/#install-a-custom-configured-released-version).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ QueueVisibility is an `Alpha` feature disabled by default, check the [Change the

## Monitor pending workloads

> _Available in Kueue v0.5.0 and later_
{{< feature-state state="alpha" for_version="v0.5.0+" >}}

To install a simple setup of cluster queue, run the following command:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ kubectl apply --server-side -f https://github.com/kubernetes-sigs/kueue/releases

## Monitor pending workloads on demand

> _Available in Kueue v0.6.0 and later_
{{< feature-state state="stable" for_version="v0.6.0+" >}}

To install a simple setup of ClusterQueue

Expand Down Expand Up @@ -302,4 +302,4 @@ You should get results similar to
}
]
}
```
```
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,8 @@ the `enable` is overridden to `true`.
When the `blockAdmission` is set to `true`, admitted Workload with not ready pods block admission for other Workloads.

### Requeuing Strategy
{{% alert title="Warning" color="warning" %}}
Available in Kueue v0.6.0 and later
{{% /alert %}}
{{< feature-state state="stable" for_version="v0.6.0+" >}}

{{% alert title="Note" color="primary" %}}
The `backoffBaseSeconds` and `backodMaxSeconds` are available in Kueue v0.7.0 and later
{{% /alert %}}
Expand Down
12 changes: 5 additions & 7 deletions site/layouts/shortcodes/feature-state.html
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 }}

0 comments on commit 01ecae6

Please sign in to comment.