Skip to content
Open
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: 8 additions & 0 deletions deploy/charts/csi-driver-spiffe/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,14 @@ resources:
> ```

Optional priority class to be used for the csi-driver pods.
#### **automountServiceAccountToken** ~ `bool`
> Default value:
> ```yaml
> true
> ```

Automounting API credentials for the csi-driver-spiffe pods.

#### **commonLabels** ~ `object`
> Default value:
> ```yaml
Expand Down
3 changes: 3 additions & 0 deletions deploy/charts/csi-driver-spiffe/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "cert-manager-csi-driver-spiffe.name" . }}
{{- if hasKey .Values "automountServiceAccountToken" }}
automountServiceAccountToken: {{ .Values.automountServiceAccountToken }}
{{- end }}
containers:

- name: node-driver-registrar
Expand Down
3 changes: 3 additions & 0 deletions deploy/charts/csi-driver-spiffe/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ spec:
seccompProfile: { type: RuntimeDefault }

serviceAccountName: {{ include "cert-manager-csi-driver-spiffe.name" . }}-approver
{{- if hasKey .Values "automountServiceAccountToken" }}
automountServiceAccountToken: {{ .Values.automountServiceAccountToken }}
{{- end }}
containers:
- name: {{ include "cert-manager-csi-driver-spiffe.name" . }}-approver
{{- $approverImageConfig := include "approver-image-config" . | fromJson }}
Expand Down
8 changes: 8 additions & 0 deletions deploy/charts/csi-driver-spiffe/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"approverImage": {
"$ref": "#/$defs/helm-values.approverImage"
},
"automountServiceAccountToken": {
"$ref": "#/$defs/helm-values.automountServiceAccountToken"
},
"commonLabels": {
"$ref": "#/$defs/helm-values.commonLabels"
},
Expand Down Expand Up @@ -572,6 +575,11 @@
"description": "Override the image tag to deploy by setting this variable. If no value is set, the chart's appVersion is used.",
"type": "string"
},
"helm-values.automountServiceAccountToken": {
"default": true,
"description": "Automounting API credentials for the csi-driver-spiffe pods.",
"type": "boolean"
},
"helm-values.commonLabels": {
"default": {},
"description": "Labels to apply to all resources",
Expand Down
4 changes: 4 additions & 0 deletions deploy/charts/csi-driver-spiffe/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,10 @@ app:
# Optional priority class to be used for the csi-driver pods.
priorityClassName: ""

# Automounting API credentials for the csi-driver-spiffe pods.
# +docs:property
automountServiceAccountToken: true

# Labels to apply to all resources
commonLabels: {}

Expand Down