Skip to content

Commit 7c06077

Browse files
committed
doc: cut v1.31.0 release
1 parent d039d2b commit 7c06077

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+4602
-64
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Disclaimer: Deploying this driver manually is not an officially supported Micros
1717
|Driver Version |Image | supported k8s version |
1818
|----------------|---------------------------------------------------------- |-----------------------|
1919
|master branch |mcr.microsoft.com/k8s/csi/azurefile-csi:latest | 1.21+ |
20+
|v1.31.0 |mcr.microsoft.com/oss/kubernetes-csi/azurefile-csi:v1.31.0 | 1.21+ |
2021
|v1.30.5 |mcr.microsoft.com/oss/kubernetes-csi/azurefile-csi:v1.30.5 | 1.21+ |
2122
|v1.29.7 |mcr.microsoft.com/oss/kubernetes-csi/azurefile-csi:v1.29.7 | 1.21+ |
2223
|v1.28.12 |mcr.microsoft.com/oss/kubernetes-csi/azurefile-csi:v1.28.12 | 1.21+ |

charts/index.yaml

+63-54
Large diffs are not rendered by default.
13.3 KB
Binary file not shown.
-13.4 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v1
2-
appVersion: latest
2+
appVersion: 1.31.0
33
description: Azure File Container Storage Interface (CSI) Storage Plugin
44
name: azurefile-csi-driver
5-
version: v0.0.0
5+
version: 1.31.0

charts/latest/azurefile-csi-driver/values.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
image:
22
baseRepo: mcr.microsoft.com
33
azurefile:
4-
repository: /k8s/csi/azurefile-csi
5-
tag: latest
4+
repository: /oss/kubernetes-csi/azurefile-csi
5+
tag: v1.31.0
66
pullPolicy: IfNotPresent
77
csiProvisioner:
88
repository: /oss/kubernetes-csi/csi-provisioner
13.4 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
apiVersion: v1
2+
appVersion: 1.31.0
3+
description: Azure File Container Storage Interface (CSI) Storage Plugin
4+
name: azurefile-csi-driver
5+
version: 1.31.0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
The Azure File CSI Driver is getting deployed to your cluster.
2+
3+
To check Azure File CSI Driver pods status, please run:
4+
5+
kubectl --namespace={{ .Release.Namespace }} get pods --selector="app.kubernetes.io/name={{ .Release.Name }}" --watch
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{{/* vim: set filetype=mustache: */}}
2+
3+
{{/* Expand the name of the chart.*/}}
4+
{{- define "azurefile.name" -}}
5+
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
6+
{{- end -}}
7+
8+
{{/*
9+
Create chart name and version as used by the chart label.
10+
*/}}
11+
{{- define "azurefile.chart" -}}
12+
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
13+
{{- end -}}
14+
15+
{{/*
16+
Common selectors.
17+
*/}}
18+
{{- define "azurefile.selectorLabels" -}}
19+
app.kubernetes.io/name: {{ template "azurefile.name" . }}
20+
app.kubernetes.io/instance: {{ .Release.Name }}
21+
{{- end -}}
22+
23+
{{/*
24+
Common labels.
25+
*/}}
26+
{{- define "azurefile.labels" -}}
27+
{{- include "azurefile.selectorLabels" . }}
28+
app.kubernetes.io/component: csi-driver
29+
app.kubernetes.io/part-of: {{ template "azurefile.name" . }}
30+
app.kubernetes.io/managed-by: {{ .Release.Service }}
31+
{{- if .Chart.AppVersion }}
32+
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
33+
{{- end }}
34+
helm.sh/chart: {{ template "azurefile.chart" . }}
35+
{{- if .Values.customLabels }}
36+
{{ toYaml .Values.customLabels }}
37+
{{- end }}
38+
{{- end -}}
39+
40+
41+
{{/* pull secrets for containers */}}
42+
{{- define "azurefile.pullSecrets" -}}
43+
{{- if .Values.imagePullSecrets }}
44+
imagePullSecrets:
45+
{{- range .Values.imagePullSecrets }}
46+
- name: {{ . }}
47+
{{- end }}
48+
{{- end }}
49+
{{- end -}}

charts/v1.31.0/azurefile-csi-driver/templates/crd-csi-snapshot.yaml

+840
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,265 @@
1+
kind: Deployment
2+
apiVersion: apps/v1
3+
metadata:
4+
name: {{ .Values.controller.name }}
5+
namespace: {{ .Release.Namespace }}
6+
labels:
7+
app: {{ .Values.controller.name }}
8+
{{- include "azurefile.labels" . | nindent 4 }}
9+
{{- with .Values.controller.labels }}
10+
{{ . | toYaml | indent 4 }}
11+
{{- end }}
12+
{{- with .Values.controller.annotations }}
13+
annotations:
14+
{{ . | toYaml | indent 4 }}
15+
{{- end }}
16+
spec:
17+
replicas: {{ .Values.controller.replicas }}
18+
selector:
19+
matchLabels:
20+
{{- include "azurefile.selectorLabels" . | nindent 6 }}
21+
app: {{ .Values.controller.name }}
22+
strategy:
23+
type: {{ .Values.controller.strategyType }}
24+
template:
25+
metadata:
26+
labels:
27+
{{- include "azurefile.labels" . | nindent 8 }}
28+
app: {{ .Values.controller.name }}
29+
{{- if .Values.workloadIdentity.clientID }}
30+
azure.workload.identity/use: "true"
31+
{{- end }}
32+
{{- with .Values.controller.podLabels }}
33+
{{ toYaml . | indent 8 }}
34+
{{- end }}
35+
{{- with .Values.controller.podAnnotations }}
36+
annotations:
37+
{{ toYaml . | indent 8 }}
38+
{{- end }}
39+
spec:
40+
hostNetwork: {{ .Values.controller.hostNetwork }}
41+
serviceAccountName: {{ .Values.serviceAccount.controller }}
42+
nodeSelector:
43+
kubernetes.io/os: linux
44+
{{- with .Values.controller.nodeSelector }}
45+
{{ toYaml . | indent 8 }}
46+
{{- end }}
47+
{{- if .Values.controller.runOnMaster}}
48+
node-role.kubernetes.io/master: ""
49+
{{- end}}
50+
{{- if .Values.controller.runOnControlPlane}}
51+
node-role.kubernetes.io/control-plane: ""
52+
{{- end}}
53+
priorityClassName: system-cluster-critical
54+
securityContext:
55+
seccompProfile:
56+
type: RuntimeDefault
57+
{{- with .Values.controller.tolerations }}
58+
tolerations:
59+
{{ toYaml . | indent 8 }}
60+
{{- end }}
61+
{{- with .Values.controller.affinity }}
62+
affinity:
63+
{{ toYaml . | indent 8 }}
64+
{{- end }}
65+
{{- if .Values.imagePullSecrets }}
66+
imagePullSecrets:
67+
{{ toYaml .Values.imagePullSecrets | indent 8 }}
68+
{{- end }}
69+
containers:
70+
- name: csi-provisioner
71+
{{- if hasPrefix "/" .Values.image.csiProvisioner.repository }}
72+
image: "{{ .Values.image.baseRepo }}{{ .Values.image.csiProvisioner.repository }}:{{ .Values.image.csiProvisioner.tag }}"
73+
{{- else }}
74+
image: "{{ .Values.image.csiProvisioner.repository }}:{{ .Values.image.csiProvisioner.tag }}"
75+
{{- end }}
76+
args:
77+
- "-v=2"
78+
- "--csi-address=$(ADDRESS)"
79+
- "--leader-election"
80+
- "--leader-election-namespace={{ .Release.Namespace }}"
81+
- "--timeout=1200s"
82+
- "--extra-create-metadata=true"
83+
- "--kube-api-qps=50"
84+
- "--kube-api-burst=100"
85+
- "--feature-gates=HonorPVReclaimPolicy=true"
86+
env:
87+
- name: ADDRESS
88+
value: /csi/csi.sock
89+
imagePullPolicy: {{ .Values.image.csiProvisioner.pullPolicy }}
90+
volumeMounts:
91+
- mountPath: /csi
92+
name: socket-dir
93+
resources: {{- toYaml .Values.controller.resources.csiProvisioner | nindent 12 }}
94+
securityContext:
95+
capabilities:
96+
drop:
97+
- ALL
98+
- name: csi-snapshotter
99+
{{- if hasPrefix "/" .Values.snapshot.image.csiSnapshotter.repository }}
100+
image: "{{ .Values.image.baseRepo }}{{ .Values.snapshot.image.csiSnapshotter.repository }}:{{ .Values.snapshot.image.csiSnapshotter.tag }}"
101+
{{- else }}
102+
image: "{{ .Values.snapshot.image.csiSnapshotter.repository }}:{{ .Values.snapshot.image.csiSnapshotter.tag }}"
103+
{{- end }}
104+
args:
105+
- "-csi-address=$(ADDRESS)"
106+
- "-leader-election"
107+
- "--leader-election-namespace={{ .Release.Namespace }}"
108+
- "-v=2"
109+
env:
110+
- name: ADDRESS
111+
value: /csi/csi.sock
112+
volumeMounts:
113+
- name: socket-dir
114+
mountPath: /csi
115+
resources: {{- toYaml .Values.controller.resources.csiSnapshotter | nindent 12 }}
116+
securityContext:
117+
capabilities:
118+
drop:
119+
- ALL
120+
- name: csi-resizer
121+
{{- if hasPrefix "/" .Values.image.csiResizer.repository }}
122+
image: "{{ .Values.image.baseRepo }}{{ .Values.image.csiResizer.repository }}:{{ .Values.image.csiResizer.tag }}"
123+
{{- else }}
124+
image: "{{ .Values.image.csiResizer.repository }}:{{ .Values.image.csiResizer.tag }}"
125+
{{- end }}
126+
args:
127+
- "-csi-address=$(ADDRESS)"
128+
- "-v=2"
129+
- "-leader-election"
130+
- "--leader-election-namespace={{ .Release.Namespace }}"
131+
- '-handle-volume-inuse-error=false'
132+
- '-timeout=120s'
133+
- '-feature-gates=RecoverVolumeExpansionFailure=true'
134+
env:
135+
- name: ADDRESS
136+
value: /csi/csi.sock
137+
imagePullPolicy: {{ .Values.image.csiResizer.pullPolicy }}
138+
volumeMounts:
139+
- name: socket-dir
140+
mountPath: /csi
141+
resources: {{- toYaml .Values.controller.resources.csiResizer | nindent 12 }}
142+
securityContext:
143+
capabilities:
144+
drop:
145+
- ALL
146+
- name: liveness-probe
147+
{{- if hasPrefix "/" .Values.image.livenessProbe.repository }}
148+
image: "{{ .Values.image.baseRepo }}{{ .Values.image.livenessProbe.repository }}:{{ .Values.image.livenessProbe.tag }}"
149+
{{- else }}
150+
image: "{{ .Values.image.livenessProbe.repository }}:{{ .Values.image.livenessProbe.tag }}"
151+
{{- end }}
152+
args:
153+
- --csi-address=/csi/csi.sock
154+
- --probe-timeout=3s
155+
{{- if eq .Values.controller.hostNetwork true }}
156+
- --http-endpoint=localhost:{{ .Values.controller.livenessProbe.healthPort }}
157+
{{- else }}
158+
- --health-port={{ .Values.controller.livenessProbe.healthPort }}
159+
{{- end }}
160+
- --v=2
161+
imagePullPolicy: {{ .Values.image.livenessProbe.pullPolicy }}
162+
volumeMounts:
163+
- name: socket-dir
164+
mountPath: /csi
165+
resources: {{- toYaml .Values.controller.resources.livenessProbe | nindent 12 }}
166+
securityContext:
167+
capabilities:
168+
drop:
169+
- ALL
170+
- name: azurefile
171+
{{- if hasPrefix "/" .Values.image.azurefile.repository }}
172+
image: "{{ .Values.image.baseRepo }}{{ .Values.image.azurefile.repository }}:{{ .Values.image.azurefile.tag }}"
173+
{{- else }}
174+
image: "{{ .Values.image.azurefile.repository }}:{{ .Values.image.azurefile.tag }}"
175+
{{- end }}
176+
args:
177+
- "--v={{ .Values.controller.logLevel }}"
178+
- "--endpoint=$(CSI_ENDPOINT)"
179+
- "--metrics-address=0.0.0.0:{{ .Values.controller.metricsPort }}"
180+
- "--kubeconfig={{ .Values.controller.kubeconfig }}"
181+
- "--drivername={{ .Values.driver.name }}"
182+
- "--cloud-config-secret-name={{ .Values.controller.cloudConfigSecretName }}"
183+
- "--cloud-config-secret-namespace={{ .Values.controller.cloudConfigSecretNamespace }}"
184+
- "--custom-user-agent={{ .Values.driver.customUserAgent }}"
185+
- "--user-agent-suffix={{ .Values.driver.userAgentSuffix }}"
186+
- "--allow-empty-cloud-config={{ .Values.controller.allowEmptyCloudConfig }}"
187+
ports:
188+
- containerPort: {{ .Values.controller.metricsPort }}
189+
name: metrics
190+
protocol: TCP
191+
{{- if ne .Values.controller.hostNetwork true }}
192+
- containerPort: {{ .Values.controller.livenessProbe.healthPort }}
193+
name: healthz
194+
protocol: TCP
195+
{{- end }}
196+
livenessProbe:
197+
failureThreshold: 5
198+
httpGet:
199+
path: /healthz
200+
{{- if eq .Values.controller.hostNetwork true }}
201+
host: localhost
202+
port: {{ .Values.controller.livenessProbe.healthPort }}
203+
{{- else }}
204+
port: healthz
205+
{{- end }}
206+
initialDelaySeconds: 30
207+
timeoutSeconds: 10
208+
periodSeconds: 30
209+
env:
210+
- name: AZURE_CREDENTIAL_FILE
211+
valueFrom:
212+
configMapKeyRef:
213+
name: {{ .Values.azureCredentialFileConfigMap }}
214+
key: path
215+
optional: true
216+
- name: CSI_ENDPOINT
217+
value: unix:///csi/csi.sock
218+
{{- if ne .Values.driver.httpsProxy "" }}
219+
- name: HTTPS_PROXY
220+
value: {{ .Values.driver.httpsProxy }}
221+
{{- end }}
222+
{{- if ne .Values.driver.httpProxy "" }}
223+
- name: HTTP_PROXY
224+
value: {{ .Values.driver.httpProxy }}
225+
{{- end }}
226+
- name: AZURE_GO_SDK_LOG_LEVEL
227+
value: {{ .Values.driver.azureGoSDKLogLevel }}
228+
imagePullPolicy: {{ .Values.image.azurefile.pullPolicy }}
229+
volumeMounts:
230+
- mountPath: /csi
231+
name: socket-dir
232+
- mountPath: /root/.azcopy
233+
name: azcopy-dir
234+
- mountPath: /etc/kubernetes/
235+
name: azure-cred
236+
{{- if eq .Values.linux.distro "fedora" }}
237+
- name: ssl
238+
mountPath: /etc/ssl/certs
239+
readOnly: true
240+
- name: ssl-pki
241+
mountPath: /etc/pki/ca-trust/extracted
242+
readOnly: true
243+
{{- end }}
244+
resources: {{- toYaml .Values.controller.resources.azurefile | nindent 12 }}
245+
securityContext:
246+
capabilities:
247+
drop:
248+
- ALL
249+
volumes:
250+
- name: socket-dir
251+
emptyDir: {}
252+
- name: azcopy-dir
253+
emptyDir: {}
254+
- name: azure-cred
255+
hostPath:
256+
path: /etc/kubernetes/
257+
type: DirectoryOrCreate
258+
{{- if eq .Values.linux.distro "fedora" }}
259+
- name: ssl
260+
hostPath:
261+
path: /etc/ssl/certs
262+
- name: ssl-pki
263+
hostPath:
264+
path: /etc/pki/ca-trust/extracted
265+
{{- end }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
apiVersion: storage.k8s.io/v1
3+
kind: CSIDriver
4+
metadata:
5+
name: {{ .Values.driver.name }}
6+
labels:
7+
{{- include "azurefile.labels" . | nindent 4 }}
8+
annotations:
9+
csiDriver: "{{ .Values.image.azurefile.tag }}"
10+
snapshot: "{{ .Values.snapshot.image.csiSnapshotter.tag }}"
11+
spec:
12+
attachRequired: {{ .Values.controller.attachRequired }}
13+
podInfoOnMount: true
14+
volumeLifecycleModes:
15+
- Persistent
16+
- Ephemeral
17+
fsGroupPolicy: {{ .Values.feature.fsGroupPolicy }}
18+
tokenRequests:
19+
- audience: api://AzureADTokenExchange

0 commit comments

Comments
 (0)