Skip to content

Commit

Permalink
helm: added clusterID value (#1516)
Browse files Browse the repository at this point in the history
  • Loading branch information
gman0 committed May 4, 2021
1 parent e643465 commit 29dc0d5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/manila-csi-plugin/Chart.yaml
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: latest
description: Manila CSI Chart for OpenStack
name: openstack-manila-csi
version: 1.2.0
version: 1.2.1
home: http://github.com/kubernetes/cloud-provider-openstack
icon: https://github.com/kubernetes/kubernetes/blob/master/logo/logo.png
maintainers:
Expand Down
Expand Up @@ -83,7 +83,8 @@ spec:
--fwdendpoint=$(FWD_CSI_ENDPOINT)
{{- if .compatibilitySettings }}
--compatibility-settings={{ .compatibilitySettings }}
{{- end }}'
{{- end }}
--cluster-id="{{ $.Values.csimanila.clusterID }}"'
]
env:
- name: DRIVER_NAME
Expand Down
5 changes: 3 additions & 2 deletions charts/manila-csi-plugin/templates/nodeplugin-daemonset.yaml
Expand Up @@ -76,7 +76,8 @@ spec:
--endpoint=$(CSI_ENDPOINT)
--drivername=$(DRIVER_NAME)
--share-protocol-selector=$(MANILA_SHARE_PROTO)
--fwdendpoint=$(FWD_CSI_ENDPOINT)'
--fwdendpoint=$(FWD_CSI_ENDPOINT)
--cluster-id="{{ $.Values.csimanila.clusterID }}"'
]
env:
- name: DRIVER_NAME
Expand Down Expand Up @@ -136,4 +137,4 @@ spec:
{{- end }}
{{- if .Values.nodeplugin.priorityClassName }}
priorityClassName: {{ .Values.nodeplugin.priorityClassName }}
{{- end }}
{{- end }}
14 changes: 10 additions & 4 deletions charts/manila-csi-plugin/values.yaml
Expand Up @@ -10,10 +10,10 @@ shareProtocols:
fwdNodePluginEndpoint:
dir: /var/lib/kubelet/plugins/csi-nfsplugin
sockFile: csi.sock
# - protocolSelector: CEPHFS
# fwdNodePluginEndpoint:
# dir: /var/lib/kubelet/plugins/cephfs.csi.ceph.com
# sockFile: csi.sock
# - protocolSelector: CEPHFS
# fwdNodePluginEndpoint:
# dir: /var/lib/kubelet/plugins/cephfs.csi.ceph.com
# sockFile: csi.sock

# CSI Manila spec
csimanila:
Expand All @@ -28,9 +28,15 @@ csimanila:
"matchExportLocationAddress": "172.168.122.0/24"
}
}
# Availability zone for each node. topologyAwarenessEnabled must be set to true for this option to have any effect.
# If your Kubernetes cluster runs atop of Nova and want to use Nova AZs as AZs for the nodes of the cluster, uncomment the line below:
# nodeAZ: "$(curl http://169.254.169.254/openstack/latest/meta_data.json | jq -r .availability_zone)"

# You may set ID of the cluster where manila-csi is deployed. This value will be appended
# to share metadata in newly provisioned shares as `manila.csi.openstack.org/cluster=<cluster ID>`.
clusterID: ""

# Image spec
image:
repository: k8scloudprovider/manila-csi-plugin
Expand Down

0 comments on commit 29dc0d5

Please sign in to comment.