move spiffe-csi-driver and node-driver-registrar to values

Signed-off-by: Batuhan Apaydın <[email protected]>
Signed-off-by: Marco Franssen <[email protected]>
This commit is contained in:
Batuhan Apaydın
2023-02-18 13:04:03 +01:00
committed by Marco Franssen
parent 569412b5d4
commit 4e5dd65aad
3 changed files with 26 additions and 5 deletions
+4
View File
@@ -65,6 +65,10 @@ Kubernetes: `>=1.21.0-0`
| fullnameOverride | string | `""` | |
| imagePullSecrets | list | `[]` | |
| nameOverride | string | `""` | |
| nodeDriverRegistrar.image.pullPolicy | string | `"IfNotPresent"` | |
| nodeDriverRegistrar.image.repository | string | `"quay.io/k8scsi/csi-node-driver-registrar"` | |
| nodeDriverRegistrar.image.tag | string | `"v2.0.1"` | |
| nodeDriverRegistrar.resources | object | `{}` | |
| oidc.acme.cacheDir | string | `"/run/spire"` | |
| oidc.acme.directoryUrl | string | `"https://acme-v02.api.letsencrypt.org/directory"` | |
| oidc.acme.emailAddress | string | `"[email protected]"` | |
+5 -5
View File
@@ -63,8 +63,8 @@ spec:
{{- toYaml .Values.agent.resources | nindent 12 }}
# This is the container which runs the SPIFFE CSI driver.
- name: spiffe-csi-driver
image: ghcr.io/spiffe/spiffe-csi-driver:nightly
imagePullPolicy: IfNotPresent
image: {{ .Values.csiDriver.image.repository}}:{{ .Values.csiDriver.image.tag}}
imagePullPolicy: {{ .Values.csiDriver.image.pullPolicy}}
args: [
"-workload-api-socket-dir", "/spire-agent-socket",
"-csi-socket-path", "/spiffe-csi/csi.sock",
@@ -98,8 +98,8 @@ spec:
# of all the little details required to register a CSI driver with
# the kubelet.
- name: node-driver-registrar
image: quay.io/k8scsi/csi-node-driver-registrar:v2.0.1
imagePullPolicy: IfNotPresent
image: {{ .Values.nodeDriverRegistrar.image.repository }}:{{ .Values.nodeDriverRegistrar.image.tag }}
imagePullPolicy: {{ .Values.nodeDriverRegistrar.image.pullPolicy }}
args: [
"-csi-address", "/spiffe-csi/csi.sock",
"-kubelet-registration-path", "/var/lib/kubelet/plugins/csi.spiffe.io/csi.sock",
@@ -113,7 +113,7 @@ spec:
- name: kubelet-plugin-registration-dir
mountPath: /registration
resources:
{{- toYaml .Values.csiDriver.resources | nindent 12 }}
{{- toYaml .Values.nodeDriverRegistrar.resources | nindent 12 }}
volumes:
- name: spire-config
configMap:
+17
View File
@@ -72,6 +72,23 @@ csiDriver:
# cpu: 100m
# memory: 64Mi
nodeDriverRegistrar:
image:
repository: quay.io/k8scsi/csi-node-driver-registrar
pullPolicy: IfNotPresent
tag: v2.0.1
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# requests:
# cpu: 50m
# memory: 32Mi
# limits:
# cpu: 100m
# memory: 64Mi
oidc:
enabled: false