Skip to content

Commit 5707d06

Browse files
authored
Merge pull request #1 from brtknr/appVersion-1.19
Make cloud-config/cacert volume/volumeMounts configurable
2 parents 1b82117 + 9a378f3 commit 5707d06

File tree

9 files changed

+55
-27
lines changed

9 files changed

+55
-27
lines changed

charts/cinder-csi-plugin/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v1
2-
appVersion: "v1.19.0"
2+
appVersion: v1.19.0
33
description: Cinder CSI Chart for OpenStack
44
name: openstack-cinder-csi
5-
version: 1.2.1
5+
version: 1.2.2
66
home: https://github.com/kubernetes/cloud-provider-openstack
77
icon: https://github.com/kubernetes/kubernetes/blob/master/logo/logo.png
88
maintainers:

charts/cinder-csi-plugin/templates/controllerplugin-statefulset.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ spec:
7373
- name: socket-dir
7474
mountPath: /var/lib/csi/sockets/pluginproxy/
7575
- name: cinder-csi-plugin
76-
image: "{{ .Values.csi.plugin.image.repository }}:{{ .Values.csi.plugin.image.tag }}"
76+
image: "{{ .Values.csi.plugin.image.repository }}:{{ .Values.csi.plugin.image.tag | default .Chart.AppVersion }}"
7777
imagePullPolicy: {{ .Values.csi.plugin.image.pullPolicy }}
7878
args:
7979
- /bin/cinder-csi-plugin
@@ -95,13 +95,8 @@ spec:
9595
volumeMounts:
9696
- name: socket-dir
9797
mountPath: /csi
98-
- name: cacert
99-
mountPath: /etc/cacert
100-
readOnly: true
98+
{{- .Values.csi.plugin.volumeMounts | toYaml | trimSuffix "\n" | nindent 12 }}
10199
volumes:
102-
- name: cacert
103-
hostPath:
104-
path: /etc/cacert
105-
type: Directory
106100
- name: socket-dir
107101
emptyDir:
102+
{{ .Values.csi.plugin.volumes | toYaml | trimSuffix "\n" | nindent 8 }}

charts/cinder-csi-plugin/templates/nodeplugin-daemonset.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ spec:
4747
capabilities:
4848
add: ["SYS_ADMIN"]
4949
allowPrivilegeEscalation: true
50-
image: "{{ .Values.csi.plugin.image.repository }}:{{ .Values.csi.plugin.image.tag }}"
50+
image: "{{ .Values.csi.plugin.image.repository }}:{{ .Values.csi.plugin.image.tag | default .Chart.AppVersion }}"
5151
imagePullPolicy: {{ .Values.csi.plugin.image.pullPolicy }}
5252
args:
5353
- /bin/cinder-csi-plugin
@@ -73,14 +73,8 @@ spec:
7373
- name: pods-probe-dir
7474
mountPath: /dev
7575
mountPropagation: "HostToContainer"
76-
- name: cacert
77-
mountPath: /etc/cacert
78-
readOnly: true
76+
{{- .Values.csi.plugin.volumeMounts | toYaml | trimSuffix "\n" | nindent 12 }}
7977
volumes:
80-
- name: cacert
81-
hostPath:
82-
path: /etc/cacert
83-
type: Directory
8478
- name: socket-dir
8579
hostPath:
8680
path: /var/lib/kubelet/plugins/cinder.csi.openstack.org
@@ -101,3 +95,4 @@ spec:
10195
hostPath:
10296
path: /dev
10397
type: Directory
98+
{{ .Values.csi.plugin.volumes | toYaml | trimSuffix "\n" | nindent 8 }}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{{- if .Values.secret }}
2+
apiVersion: v1
3+
kind: Secret
4+
metadata:
5+
name: {{ .Values.secret.name }}
6+
namespace: {{ .Release.NameSpace }}
7+
type: Opaque
8+
stringData:
9+
{{ .Values.secret.data | toYaml | trimSuffix "\n" | nindent 2 }}
10+
{{- end }}

charts/cinder-csi-plugin/values.yaml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,36 @@ csi:
3030
plugin:
3131
image:
3232
repository: docker.io/k8scloudprovider/cinder-csi-plugin
33-
tag: v1.19.0
3433
pullPolicy: IfNotPresent
34+
tag: # defaults to .Chart.AppVersion
35+
volumes:
36+
- name: cacert
37+
hostPath:
38+
path: /etc/cacert
39+
- name: cloud-config
40+
hostPath:
41+
path: /etc/kubernetes
42+
# secret:
43+
# secretName: cinder-csi-cloud-config
44+
volumeMounts:
45+
- name: cacert
46+
mountPath: /etc/cacert
47+
readOnly: true
48+
- name: cloud-config
49+
mountPath: /etc/kubernetes
50+
readOnly: true
51+
52+
secret:
53+
# name: cinder-csi-cloud-config
54+
# data:
55+
# cloud-config: |-
56+
# [Global]
57+
# auth-url=http://openstack-control-plane
58+
# user-id=user-id
59+
# password=password
60+
# trust-id=trust-id
61+
# region=RegionOne
62+
# ca-file=/etc/cacert/ca-bundle.crt
3563

3664
storageClass:
3765
enabled: true

charts/manila-csi-plugin/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v1
2-
appVersion: latest
2+
appVersion: v1.19.0
33
description: Manila CSI Chart for OpenStack
44
name: openstack-manila-csi
5-
version: 0.2.0
5+
version: 0.2.1
66
home: http://github.com/kubernetes/cloud-provider-openstack
77
icon: https://github.com/kubernetes/kubernetes/blob/master/logo/logo.png
88
maintainers:

charts/manila-csi-plugin/templates/controllerplugin-statefulset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ spec:
6565
capabilities:
6666
add: ["SYS_ADMIN"]
6767
allowPrivilegeEscalation: true
68-
image: "{{ $.Values.csimanila.image.repository }}:{{ $.Values.csimanila.image.tag }}"
68+
image: "{{ $.Values.csimanila.image.repository }}:{{ $.Values.csimanila.image.tag | default $.Chart.AppVersion }}"
6969
command: ["/bin/sh", "-c",
7070
'/bin/manila-csi-plugin
7171
--v=5

charts/manila-csi-plugin/templates/nodeplugin-daemonset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ spec:
6161
capabilities:
6262
add: ["SYS_ADMIN"]
6363
allowPrivilegeEscalation: true
64-
image: "{{ $.Values.csimanila.image.repository }}:{{ $.Values.csimanila.image.tag }}"
64+
image: "{{ $.Values.csimanila.image.repository }}:{{ $.Values.csimanila.image.tag | default $.Chart.AppVersion }}"
6565
command: ["/bin/sh", "-c",
6666
'/bin/manila-csi-plugin
6767
--v=5

charts/manila-csi-plugin/values.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
nameOverride: ""
2+
fullNameOverride: ""
3+
14
# Base name of the CSI Manila driver
25
driverName: manila.csi.openstack.org
36

@@ -31,8 +34,8 @@ csimanila:
3134
# Image spec
3235
image:
3336
repository: k8scloudprovider/manila-csi-plugin
34-
tag: v1.19.0
3537
pullPolicy: IfNotPresent
38+
tag: # defaults to .Chart.AppVersion
3639

3740
# DeamonSet deployment
3841
nodeplugin:
@@ -79,6 +82,3 @@ controllerplugin:
7982
affinity: {}
8083
# Use fullnameOverride to fully override the name of this component
8184
# fullnameOverride: some-other-name
82-
83-
# Override the default app name using nameOverride
84-
# nameOverride: some-other-name

0 commit comments

Comments
 (0)