Skip to content

Commit b4d2608

Browse files
committed
feat: add default toleration for all taints
ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration - An empty `key` with operator `Exists` matches all keys, values and effects which means this will tolerate everything. Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
1 parent 8a38583 commit b4d2608

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

manifest_staging/charts/secrets-store-csi-driver/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ The following table lists the configurable parameters of the csi-secrets-store-p
4747
| `linux.providersDir` | Configure the providers root dir | `/var/run/secrets-store-csi-providers` |
4848
| `linux.additionalProvidersDirs` | List of additional paths to communicate with providers. Refer to [issue](https://github.com/kubernetes-sigs/secrets-store-csi-driver/issues/823) for more details. | `[/etc/kubernetes/secrets-store-csi-providers]` |
4949
| `linux.nodeSelector` | Node Selector for the daemonset on linux nodes | `{}` |
50-
| `linux.tolerations` | Tolerations for the daemonset on linux nodes | `[]` |
50+
| `linux.tolerations` | Tolerations for the daemonset on linux nodes | `[{"operator": "Exists"}]` |
5151
| `linux.metricsAddr` | The address the metric endpoint binds to | `:8095` |
5252
| `linux.registrarImage.repository` | Linux node-driver-registrar image repository | `registry.k8s.io/sig-storage/csi-node-driver-registrar` |
5353
| `linux.registrarImage.pullPolicy` | Linux node-driver-registrar image pull policy | `IfNotPresent` |
@@ -77,7 +77,7 @@ The following table lists the configurable parameters of the csi-secrets-store-p
7777
| `windows.providersDir` | Configure the providers root dir | `C:\k\secrets-store-csi-providers` |
7878
| `windows.additionalProvidersDirs` | List of additional paths to communicate with providers. Refer to [issue](https://github.com/kubernetes-sigs/secrets-store-csi-driver/issues/823) for more details. | `[]` |
7979
| `windows.nodeSelector` | Node Selector for the daemonset on windows nodes | `{}` |
80-
| `windows.tolerations` | Tolerations for the daemonset on windows nodes | `[]` |
80+
| `windows.tolerations` | Tolerations for the daemonset on windows nodes | `[{"operator": "Exists"}]` |
8181
| `windows.metricsAddr` | The address the metric endpoint binds to | `:8095` |
8282
| `windows.registrarImage.repository` | Windows node-driver-registrar image repository | `registry.k8s.io/sig-storage/csi-node-driver-registrar` |
8383
| `windows.registrarImage.pullPolicy` | Windows node-driver-registrar image pull policy | `IfNotPresent` |

manifest_staging/charts/secrets-store-csi-driver/values.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ linux:
8181
additionalProvidersDirs:
8282
- /etc/kubernetes/secrets-store-csi-providers
8383
nodeSelector: {}
84-
tolerations: []
84+
# ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
85+
# An empty key with operator Exists matches all keys, values and effects which means this will tolerate everything.
86+
tolerations:
87+
- operator: "Exists"
8588
metricsAddr: ":8095"
8689
env: []
8790
priorityClassName: ""
@@ -165,7 +168,10 @@ windows:
165168
providersDir: C:\\k\\secrets-store-csi-providers
166169
additionalProvidersDirs:
167170
nodeSelector: {}
168-
tolerations: []
171+
# ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
172+
# An empty key with operator Exists matches all keys, values and effects which means this will tolerate everything.
173+
tolerations:
174+
- operator: "Exists"
169175
metricsAddr: ":8095"
170176
env: []
171177
priorityClassName: ""

manifest_staging/deploy/secrets-store-csi-driver-windows.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,5 +127,7 @@ spec:
127127
hostPath:
128128
path: C:\k\secrets-store-csi-providers\
129129
type: DirectoryOrCreate
130+
tolerations:
131+
- operator: Exists
130132
nodeSelector:
131133
kubernetes.io/os: windows

manifest_staging/deploy/secrets-store-csi-driver.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,5 +137,7 @@ spec:
137137
hostPath:
138138
path: /var/run/secrets-store-csi-providers
139139
type: DirectoryOrCreate
140+
tolerations:
141+
- operator: Exists
140142
nodeSelector:
141143
kubernetes.io/os: linux

0 commit comments

Comments
 (0)