Skip to content

Helm: set linux nodeSelector by default #258

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions deploy/charts/csi-driver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,15 +231,11 @@ resources:
#### **nodeSelector** ~ `object`
> Default value:
> ```yaml
> {}
> kubernetes.io/os: linux
> ```

Kubernetes node selector: node labels for pod assignment. For example, use this to allow scheduling of DaemonSet on linux nodes only:
Kubernetes node selector: node labels for pod assignment.

```yaml
nodeSelector:
kubernetes.io/os: linux
```
#### **affinity** ~ `object`
> Default value:
> ```yaml
Expand Down
6 changes: 4 additions & 2 deletions deploy/charts/csi-driver/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,10 @@
"type": "string"
},
"helm-values.nodeSelector": {
"default": {},
"description": "Kubernetes node selector: node labels for pod assignment. For example, use this to allow scheduling of DaemonSet on linux nodes only:\nnodeSelector:\n kubernetes.io/os: linux",
"default": {
"kubernetes.io/os": "linux"
},
"description": "Kubernetes node selector: node labels for pod assignment.",
"type": "object"
},
"helm-values.podAnnotations": {
Expand Down
7 changes: 3 additions & 4 deletions deploy/charts/csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,9 @@ podLabels: {}
resources: {}

# Kubernetes node selector: node labels for pod assignment.
# For example, use this to allow scheduling of DaemonSet on linux nodes only:
# nodeSelector:
# kubernetes.io/os: linux
nodeSelector: {}
# +docs:property=nodeSelector
nodeSelector:
kubernetes.io/os: linux

# Kubernetes affinity: constraints for pod assignment.
#
Expand Down