Skip to content

Commit 270e2df

Browse files
Merge pull request #200 from shiftstack/merge-bot-master
Merge https://github.com/kubernetes/cloud-provider-openstack:master into master
2 parents da4fcee + 316f24a commit 270e2df

File tree

26 files changed

+171
-339
lines changed

26 files changed

+171
-339
lines changed

charts/cinder-csi-plugin/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
appVersion: v1.27.1
33
description: Cinder CSI Chart for OpenStack
44
name: openstack-cinder-csi
5-
version: 2.28.0-alpha.3
5+
version: 2.28.0-alpha.4
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-deployment.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ metadata:
55
namespace: {{ .Release.Namespace }}
66
labels:
77
{{- include "cinder-csi.controllerplugin.labels" . | nindent 4 }}
8+
annotations:
9+
{{- with .Values.commonAnnotations }}
10+
{{- toYaml . | nindent 4 }}
11+
{{- end }}
812
spec:
913
replicas: {{ .Values.csi.plugin.controllerPlugin.replicas }}
1014
strategy:
@@ -21,6 +25,10 @@ spec:
2125
metadata:
2226
labels:
2327
{{- include "cinder-csi.controllerplugin.labels" . | nindent 8 }}
28+
annotations:
29+
{{- with .Values.commonAnnotations }}
30+
{{- toYaml . | nindent 8 }}
31+
{{- end }}
2432
spec:
2533
serviceAccount: csi-cinder-controller-sa
2634
containers:
@@ -169,11 +177,13 @@ spec:
169177
volumes:
170178
- name: socket-dir
171179
emptyDir:
172-
- name: cloud-config
173180
{{- if .Values.secret.enabled }}
181+
- name: cloud-config
174182
secret:
175183
secretName: {{ .Values.secret.name }}
176-
{{- else }}
184+
{{- end }}
185+
{{- if .Values.secret.hostMount }}
186+
- name: cloud-config
177187
hostPath:
178188
path: /etc/kubernetes
179189
{{- end }}

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ metadata:
55
namespace: {{ .Release.Namespace }}
66
labels:
77
{{- include "cinder-csi.nodeplugin.labels" . | nindent 4 }}
8+
annotations:
9+
{{- with .Values.commonAnnotations }}
10+
{{- toYaml . | nindent 4 }}
11+
{{- end }}
812
spec:
913
selector:
1014
matchLabels:
@@ -13,6 +17,10 @@ spec:
1317
metadata:
1418
labels:
1519
{{- include "cinder-csi.nodeplugin.labels" . | nindent 8 }}
20+
annotations:
21+
{{- with .Values.commonAnnotations }}
22+
{{- toYaml . | nindent 8 }}
23+
{{- end }}
1624
spec:
1725
serviceAccount: csi-cinder-node-sa
1826
hostNetwork: true
@@ -127,11 +135,13 @@ spec:
127135
hostPath:
128136
path: /dev
129137
type: Directory
130-
- name: cloud-config
131138
{{- if .Values.secret.enabled }}
139+
- name: cloud-config
132140
secret:
133141
secretName: {{ .Values.secret.name }}
134-
{{- else }}
142+
{{- end }}
143+
{{- if .Values.secret.hostMount }}
144+
- name: cloud-config
135145
hostPath:
136146
path: /etc/kubernetes
137147
{{- end }}

charts/cinder-csi-plugin/templates/secret.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.secret.create }}
1+
{{- if and (.Values.secret.create) (.Values.secret.enabled) }}
22
apiVersion: v1
33
kind: Secret
44
metadata:

charts/cinder-csi-plugin/values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,15 @@ csi:
9898
# for description of individual verbosity levels.
9999
logVerbosityLevel: 2
100100

101+
# the secret should contain the openstack credentials
102+
# there are several options to inject the credentials:
103+
# 1) from kubernetes secret that doesn't exist: set "enabled" and "create" to true, this will create a secret from the values written to "data" down below
104+
# 2) from kubernetes secret that already exists: set "enabled" to true and "create" to false
105+
# 3) from host system path /etc/cloud/cloud.conf: set "enabled" to false and "hostMount" to true
106+
# 4) via agent-injector (e.g. hashicorp vault): set "enabled" and "hostMount" to false, you have to provide credentials on your own by injecting credentials into the pod
101107
secret:
102108
enabled: false
109+
hostMount: true
103110
create: false
104111
filename: cloud.conf
105112
# name: cinder-csi-cloud-config
@@ -149,3 +156,6 @@ priorityClassName: ""
149156

150157
imagePullSecrets: []
151158
# - name: my-imagepull-secret
159+
160+
# add annotations to all pods
161+
commonAnnotations: {}

charts/openstack-cloud-controller-manager/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Openstack Cloud Controller Manager Helm Chart
44
icon: https://object-storage-ca-ymq-1.vexxhost.net/swift/v1/6e4619c416ff4bd19e1c087f27a43eea/www-images-prod/openstack-logo/OpenStack-Logo-Vertical.png
55
home: https://github.com/kubernetes/cloud-provider-openstack
66
name: openstack-cloud-controller-manager
7-
version: 2.28.0-alpha.4
7+
version: 2.28.0-alpha.6
88
maintainers:
99
- name: eumel8
1010

charts/openstack-cloud-controller-manager/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ You need to configure an `openstack-ccm.yaml` values file with at least:
1313
- with password: `cloudConfig.global.username` and `cloudconfig.global.password`
1414
- with application credentials: (`cloudConfig.global.application-credential-id` or `cloudConfig.global.application-credential-name`) and `cloudConfig.global.application-credential-secret`
1515
- Load balancing
16-
- `cloudConfig.loadbalancer.floating-network-id` **or**
17-
- `cloudConfig.loadbalancer.floating-subnet-id` **or**
18-
- `cloudConfig.loadbalancer.floating-subnet`
16+
- `cloudConfig.loadBalancer.floating-network-id` **or**
17+
- `cloudConfig.loadBalancer.floating-subnet-id` **or**
18+
- `cloudConfig.loadBalancer.floating-subnet`
1919

20-
If you want to enable health checks for your Load Balancers (optional), set `cloudConfig.loadbalancer.create-monitor: true`.
20+
If you want to enable health checks for your Load Balancers (optional), set `cloudConfig.loadBalancer.create-monitor: true`.
2121

2222
Then run:
2323

charts/openstack-cloud-controller-manager/templates/daemonset.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,14 @@ spec:
6666
name: http
6767
protocol: TCP
6868
{{- end }}
69+
{{- if or (.Values.extraVolumeMounts) (.Values.secret.enabled) }}
6970
volumeMounts:
71+
{{- end }}
72+
{{- if .Values.secret.enabled }}
7073
- mountPath: /etc/config
7174
name: cloud-config-volume
7275
readOnly: true
76+
{{- end }}
7377
{{- if .Values.extraVolumeMounts }}
7478
{{- toYaml .Values.extraVolumeMounts | nindent 12 }}
7579
{{- end }}
@@ -97,10 +101,15 @@ spec:
97101
{{- if .Values.priorityClassName }}
98102
priorityClassName: {{ .Values.priorityClassName }}
99103
{{- end }}
104+
105+
{{- if or (.Values.extraVolumes) (.Values.secret.enabled) }}
100106
volumes:
107+
{{- end }}
108+
{{- if .Values.secret.enabled }}
101109
- name: cloud-config-volume
102110
secret:
103111
secretName: {{ .Values.secret.name }}
112+
{{- end }}
104113
{{- if .Values.extraVolumes }}
105114
{{ toYaml .Values.extraVolumes | nindent 6 }}
106115
{{- end }}

charts/openstack-cloud-controller-manager/templates/secret.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.secret.create }}
1+
{{- if and (.Values.secret.create) (.Values.secret.enabled) }}
22
apiVersion: v1
33
kind: Secret
44
metadata:

charts/openstack-cloud-controller-manager/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,11 @@ serviceMonitor: {}
8181
# Create a secret resource cloud-config (or other name) to store credentials and settings from cloudConfig
8282
# You can also provide your own secret (not created by the Helm chart), in this case set create to false
8383
# and adjust the name of the secret as necessary
84+
# If you dont want to use a secret (because you are using something like an agent injector to inject the cloud config file)
85+
# you can disable the secret usage by setting enabled to false.
86+
# If you disable the secret, you have to insert the cloud config file into the path /etc/cloud/config.
8487
secret:
88+
enabled: true
8589
create: true
8690
name: cloud-config
8791

0 commit comments

Comments
 (0)