Skip to content

Commit

Permalink
Merge pull request #47 from tarik02/master
Browse files Browse the repository at this point in the history
Support annotations on controllers
  • Loading branch information
travisghansen authored Oct 29, 2023
2 parents 6c8e863 + c1ed0c8 commit 2cd1299
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 1 deletion.
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.14.1
version: 0.14.2
7 changes: 7 additions & 0 deletions stable/democratic-csi/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,20 @@ apiVersion: apps/v1
metadata:
name: {{ include "democratic-csi.fullname" . }}-controller
namespace: {{ .Release.Namespace }}
{{- with .Values.controller.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
app.kubernetes.io/name: {{ include "democratic-csi.name" . }}
helm.sh/chart: {{ include "democratic-csi.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/csi-role: "controller"
app.kubernetes.io/component: "controller-linux"
{{- with .Values.controller.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.controller.replicaCount }}
selector:
Expand Down
7 changes: 7 additions & 0 deletions stable/democratic-csi/templates/node-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,20 @@ apiVersion: apps/v1
metadata:
name: {{ include "democratic-csi.fullname" . }}-node-windows
namespace: {{ .Release.Namespace }}
{{- with .Values.node.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
app.kubernetes.io/name: {{ include "democratic-csi.name" . }}
helm.sh/chart: {{ include "democratic-csi.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/csi-role: "node"
app.kubernetes.io/component: "node-windows"
{{- with .Values.node.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
selector:
matchLabels:
Expand Down
7 changes: 7 additions & 0 deletions stable/democratic-csi/templates/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,20 @@ apiVersion: apps/v1
metadata:
name: {{ include "democratic-csi.fullname" . }}-node
namespace: {{ .Release.Namespace }}
{{- with .Values.node.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
app.kubernetes.io/name: {{ include "democratic-csi.name" . }}
helm.sh/chart: {{ include "democratic-csi.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/csi-role: "node"
app.kubernetes.io/component: "node-linux"
{{- with .Values.node.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
selector:
matchLabels:
Expand Down
4 changes: 4 additions & 0 deletions stable/democratic-csi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ controller:
hostNetwork: false
hostAliases: []
hostIPC: false
annotations: {}
labels: {}
podAnnotations: {}
podLabels: {}
priorityClassName: ""
Expand Down Expand Up @@ -213,6 +215,8 @@ node:
hostIPC: true
hostPID: false
kubeletHostPath: /var/lib/kubelet
annotations: {}
labels: {}
podAnnotations: {}
podLabels: {}
priorityClassName: ""
Expand Down

0 comments on commit 2cd1299

Please sign in to comment.