Skip to content

Commit 12afb20

Browse files
authored
[manila-csi-plugin] allow podSecurityContexts to be set in controllerplugin and nodeplugin (#2759)
* Add podSecurityContext * version bump * dump version * update version
1 parent c6f2467 commit 12afb20

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

charts/manila-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.32.0
33
description: Manila CSI Chart for OpenStack
44
name: openstack-manila-csi
5-
version: 2.33.0-alpha.1
5+
version: 2.33.0-alpha.2
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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ spec:
1616
labels:
1717
{{- include "openstack-manila-csi.controllerplugin.labels" . | nindent 8 }}
1818
spec:
19+
securityContext: {{ toYaml .Values.controllerplugin.podSecurityContext | nindent 8 }}
1920
serviceAccountName: {{ include "openstack-manila-csi.serviceAccountName.controllerplugin" . }}
2021
containers:
2122
{{- range .Values.shareProtocols }}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ spec:
1414
labels:
1515
{{- include "openstack-manila-csi.nodeplugin.labels" . | nindent 8 }}
1616
spec:
17+
securityContext: {{ toYaml .Values.nodeplugin.podSecurityContext | nindent 8 }}
1718
serviceAccountName: {{ include "openstack-manila-csi.serviceAccountName.nodeplugin" . }}
1819
hostNetwork: true
1920
dnsPolicy: ClusterFirstWithHostNet

charts/manila-csi-plugin/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ nodeplugin:
7575
priorityClassName: ""
7676
# Use fullnameOverride to fully override the name of this component
7777
# fullnameOverride: some-other-name
78+
podSecurityContext: {}
7879

7980
# StatefulSet deployment
8081
controllerplugin:
@@ -119,6 +120,7 @@ controllerplugin:
119120
# - "keystone.hostname.com"
120121
# Use fullnameOverride to fully override the name of this component
121122
# fullnameOverride: some-other-name
123+
podSecurityContext: {}
122124

123125
# Log verbosity level.
124126
# See https://github.com/kubernetes/community/blob/master/contributors/devel/sig-instrumentation/logging.md

0 commit comments

Comments
 (0)