Skip to content

Commit

Permalink
Add default kube-api-qps, burst, and worker-threads values in CSI driver
Browse files Browse the repository at this point in the history
Signed-off-by: hanenMizouni <[email protected]>
  • Loading branch information
outscale-hmi committed Oct 17, 2024
1 parent 016cd4e commit e2e08a7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions osc-bsu-csi-driver/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ spec:
{{- end }}
- --csi-address=$(ADDRESS)
- --v={{ .Values.verbosity }}
{{- if not (regexMatch "(-kube-api-qps)|(-kube-api-burst)|(-worker-threads)" (join " " .Values.sidecars.provisionerImage.additionalArgs)) }}
- --kube-api-qps=20
- --kube-api-burst=100
- --worker-threads=100
{{- end }}
{{- if .Values.enableVolumeScheduling }}
- --feature-gates=Topology=true
{{- end}}
Expand Down Expand Up @@ -209,6 +214,11 @@ spec:
{{- end }}
- --csi-address=$(ADDRESS)
- --v={{ .Values.verbosity }}
{{- if not (regexMatch "(-kube-api-qps)|(-kube-api-burst)|(-worker-threads)" (join " " .Values.sidecars.attacherImage.additionalArgs)) }}
- --kube-api-qps=20
- --kube-api-burst=100
- --worker-threads=100
{{- end }}
# Dynamically adding additionalArgs from values.yaml
{{- range .Values.sidecars.attacherImage.additionalArgs }}
- {{ . }}
Expand Down Expand Up @@ -316,6 +326,11 @@ spec:
- --csi-address=$(ADDRESS)
- --v={{ .Values.verbosity }}
- --timeout={{ .Values.timeout }}
{{- if not (regexMatch "(-kube-api-qps)|(-kube-api-burst)|(-workers)" (join " " .Values.sidecars.resizerImage.additionalArgs)) }}
- --kube-api-qps=20
- --kube-api-burst=100
- --workers=100
{{- end }}
# Dynamically adding additionalArgs from values.yaml
{{- range .Values.sidecars.resizerImage.additionalArgs }}
- {{ . }}
Expand Down

0 comments on commit e2e08a7

Please sign in to comment.