Skip to content

Commit 47397f8

Browse files
authored
Document changing featureGates with configMap (#7652)
This commit increments the documentation on how to modify the feature gates by adding an additional option, which is to modify the configMap.
1 parent 36e330e commit 47397f8

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

site/content/en/docs/installation/_index.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,25 @@ To install and configure Kueue with [Helm](https://helm.sh/), follow the [instru
237237

238238
Kueue uses a similar mechanism to configure features as described in [Kubernetes Feature Gates](https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates).
239239

240-
In order to change the default of a feature, you need to edit the `kueue-controller-manager` deployment within the kueue installation namespace and change the `manager` container arguments to include
240+
You can edit the `kueue-manager-config` `ConfigMap` and add the feature gate you would like to manage, for example:
241+
242+
```yaml
243+
apiVersion: v1
244+
kind: ConfigMap
245+
name: kueue-manager-config
246+
namespace: kueue-system
247+
data:
248+
controller_manager_config.yaml: |
249+
apiVersion: config.kueue.x-k8s.io/v1beta1
250+
kind: Configuration
251+
featureGates:
252+
ManagedJobsNamespaceSelectorAlwaysRespected: true
253+
...
254+
```
255+
256+
After changing the `ConfigMap`, you need to restart the `kueue-controller-manager` deployment to have the change enforced, for example using: `kubectl rollout restart deploy kueue-controller-manager -n kueue-system`.
257+
258+
Alternatively, you can edit the `kueue-controller-manager` deployment within the kueue installation namespace and change the `manager` container arguments to include
241259

242260
```
243261
--feature-gates=...,<FeatureName>=<true|false>

0 commit comments

Comments
 (0)