Skip to content

Commit

Permalink
support for setting pod annotations/labels and explicit docker.io reg…
Browse files Browse the repository at this point in the history
…istry

Signed-off-by: Travis Glenn Hansen <[email protected]>
  • Loading branch information
travisghansen committed Jun 14, 2021
1 parent c7f6b5f commit 35e757b
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 0.8.2

- support for pod annotations/labels
- explicit registry (docker.io) for relevant images

# 0.6.3

- api version support for csidriver
Expand Down
2 changes: 1 addition & 1 deletion stable/democratic-csi/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v1
appVersion: "1.0"
description: csi storage for container orchestration systems
name: democratic-csi
version: 0.8.1
version: 0.8.2
6 changes: 6 additions & 0 deletions stable/democratic-csi/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,16 @@ spec:
template:
metadata:
annotations:
{{- with .Values.controller.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if not .Values.driver.existingConfigSecret }}
checksum/secret: {{ include (print $.Template.BasePath "/driver-config-secret.yaml") . | sha256sum }}
{{- end }}
labels:
{{- with .Values.controller.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
app.kubernetes.io/name: {{ include "democratic-csi.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/csi-role: "controller"
Expand Down
6 changes: 6 additions & 0 deletions stable/democratic-csi/templates/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,16 @@ spec:
template:
metadata:
annotations:
{{- with .Values.node.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if not .Values.driver.existingConfigSecret }}
checksum/secret: {{ include (print $.Template.BasePath "/driver-config-secret.yaml") . | sha256sum }}
{{- end }}
labels:
{{- with .Values.node.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
app.kubernetes.io/name: {{ include "democratic-csi.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/csi-role: "node"
Expand Down
8 changes: 6 additions & 2 deletions stable/democratic-csi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ controller:
enabled: true
hostNetwork: false
hostIPC: false
podAnnotations: {}
podLabels: {}

# deployment = deploy controller parts in a distinct deployment
# node = deploy controller as sidecars with node daemonset
Expand Down Expand Up @@ -145,7 +147,7 @@ controller:
# democratic-csi controller
driver:
enabled: true
image: democraticcsi/democratic-csi:latest
image: docker.io/democraticcsi/democratic-csi:latest
# imagePullPolicy: Always
logLevel: info
lifecycle:
Expand Down Expand Up @@ -189,6 +191,8 @@ node:
hostNetwork: true
hostIPC: true
kubeletHostPath: /var/lib/kubelet
podAnnotations: {}
podLabels: {}

livenessProbe:
enabled: true
Expand All @@ -209,7 +213,7 @@ node:
# democratic-csi node
driver:
enabled: true
image: democraticcsi/democratic-csi:latest
image: docker.io/democraticcsi/democratic-csi:latest
# imagePullPolicy: Always
logLevel: info
# set path to null if your OS has no localtime file
Expand Down

0 comments on commit 35e757b

Please sign in to comment.