Skip to content

Commit

Permalink
doc: cut v1.6.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx committed Apr 11, 2022
1 parent ae903e7 commit bcddc7c
Show file tree
Hide file tree
Showing 26 changed files with 1,221 additions and 23 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ This driver allows Kubernetes to access [SMB](https://wiki.wireshark.org/SMB) se
|Driver Version | supported k8s version | supported [Windows csi-proxy](https://github.com/kubernetes-csi/csi-proxy) version |
|---------------|-----------------------|-------------------------------------|
|master branch | 1.20+ | v0.2.2+ |
|v1.6.0 | 1.20+ | v0.2.2+ |
|v1.5.0 | 1.19+ | v0.2.2+ |
|v1.4.0 | 1.19+ | v0.2.2+ |
|v1.3.0 | 1.18+ | v0.2.2+ |

### Driver parameters
Please refer to [`smb.csi.k8s.io` driver parameters](./docs/driver-parameters.md)
Expand Down
2 changes: 1 addition & 1 deletion charts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
### install a specific version
```console
helm repo add csi-driver-smb https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/charts
helm install csi-driver-smb csi-driver-smb/csi-driver-smb --namespace kube-system --version v1.5.0
helm install csi-driver-smb csi-driver-smb/csi-driver-smb --namespace kube-system --version v1.6.0
```

### install driver with customized driver name, deployment name
Expand Down
39 changes: 24 additions & 15 deletions charts/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,26 @@ apiVersion: v1
entries:
csi-driver-smb:
- apiVersion: v1
appVersion: latest
created: "2022-01-15T03:04:11.671280365Z"
appVersion: v1.6.0
created: "2022-04-11T12:39:36.578255032Z"
description: SMB CSI Driver for Kubernetes
digest: ea1f3db0bdb3b444153ed5b01b5fbeee5741dfd1572251c48e50334895c6de50
digest: c8a41522b1cc669a76e4539c96dde9229d772d17e220f5b0b6e07772ad58473e
name: csi-driver-smb
urls:
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/charts/latest/csi-driver-smb-v1.6.0.tgz
version: v1.6.0
- apiVersion: v1
appVersion: v1.6.0
created: "2022-04-11T12:39:36.587612292Z"
description: SMB CSI Driver for Kubernetes
digest: 78676296fdc3c033b6e1209cee691a9786ae076dba215e15b72da06b6ed1d822
name: csi-driver-smb
urls:
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/charts/v1.6.0/csi-driver-smb-v1.6.0.tgz
version: v1.6.0
- apiVersion: v1
appVersion: v1.5.0
created: "2022-01-15T03:04:11.679765717Z"
created: "2022-04-11T12:39:36.58571508Z"
description: SMB CSI Driver for Kubernetes
digest: ccdaf76d75b7aa3ad16e4d06b6a7a010f00b83b707d8a21bb2e51500fe1a812c
name: csi-driver-smb
Expand All @@ -21,7 +30,7 @@ entries:
version: v1.5.0
- apiVersion: v1
appVersion: v1.4.0
created: "2022-01-15T03:04:11.679077112Z"
created: "2022-04-11T12:39:36.584558273Z"
description: SMB CSI Driver for Kubernetes
digest: 491313a33a8dba6fa812a5b074029566f31b2a9568f9220d7fd255ff3e50c4da
name: csi-driver-smb
Expand All @@ -30,7 +39,7 @@ entries:
version: v1.4.0
- apiVersion: v1
appVersion: v1.3.0
created: "2022-01-15T03:04:11.678325608Z"
created: "2022-04-11T12:39:36.583539166Z"
description: SMB CSI Driver for Kubernetes
digest: d2236d36f1cb24139ddf87ea87229369ed856efc42330e656330f6cfa7635858
name: csi-driver-smb
Expand All @@ -39,7 +48,7 @@ entries:
version: v1.3.0
- apiVersion: v1
appVersion: v1.2.0
created: "2022-01-15T03:04:11.677334102Z"
created: "2022-04-11T12:39:36.58263726Z"
description: SMB CSI Driver for Kubernetes
digest: f475924011bf4b3d920cee85e07f1236731fc8256634c12f49b8eae1711c99ab
name: csi-driver-smb
Expand All @@ -48,7 +57,7 @@ entries:
version: v1.2.0
- apiVersion: v1
appVersion: v1.1.0
created: "2022-01-15T03:04:11.675610391Z"
created: "2022-04-11T12:39:36.581777455Z"
description: SMB CSI Driver for Kubernetes
digest: 19bdba4a6b473bf3d7494cea64146fc1874c8440e3adf5262d822659cd276837
name: csi-driver-smb
Expand All @@ -57,7 +66,7 @@ entries:
version: v1.1.0
- apiVersion: v1
appVersion: v1.0.0
created: "2022-01-15T03:04:11.674787886Z"
created: "2022-04-11T12:39:36.58105525Z"
description: SMB CSI Driver for Kubernetes
digest: 2360e6e088403818944cc057ad3bf0f99ae295a421d4637f1d3c7cbe3c4ab27f
name: csi-driver-smb
Expand All @@ -66,7 +75,7 @@ entries:
version: v1.0.0
- apiVersion: v1
appVersion: v0.6.0
created: "2022-01-15T03:04:11.674205683Z"
created: "2022-04-11T12:39:36.580481446Z"
description: SMB CSI Driver for Kubernetes
digest: 5ad0b7b9f84fa313387a9bbfb0ed59cff70b10633cedf81e7b77af936ff2806e
name: csi-driver-smb
Expand All @@ -75,7 +84,7 @@ entries:
version: v0.6.0
- apiVersion: v1
appVersion: v0.5.0
created: "2022-01-15T03:04:11.67372518Z"
created: "2022-04-11T12:39:36.580054444Z"
description: SMB CSI Driver for Kubernetes
digest: b400ef563745dcaf4a819a05b1e8a11d9442ae1ddf46da70542d5c87cd4cd9a1
name: csi-driver-smb
Expand All @@ -84,7 +93,7 @@ entries:
version: v0.5.0
- apiVersion: v1
appVersion: v0.4.0
created: "2022-01-15T03:04:11.672837775Z"
created: "2022-04-11T12:39:36.579609741Z"
description: SMB CSI Driver for Kubernetes
digest: fb6d581ba5d4d1d78ca468f6daa4a24c47bb147b74d005d3c394521b4e534a3e
name: csi-driver-smb
Expand All @@ -93,7 +102,7 @@ entries:
version: v0.4.0
- apiVersion: v1
appVersion: v0.3.0
created: "2022-01-15T03:04:11.672194571Z"
created: "2022-04-11T12:39:36.579133738Z"
description: SMB CSI Driver for Kubernetes
digest: ee9e58db6d4a95491e2012c6607126bbff827b9c439e90e9a9798d2a73b0cb22
name: csi-driver-smb
Expand All @@ -102,11 +111,11 @@ entries:
version: v0.3.0
- apiVersion: v1
appVersion: v0.2.0
created: "2022-01-15T03:04:11.671718968Z"
created: "2022-04-11T12:39:36.578694635Z"
description: SMB CSI Driver for Kubernetes
digest: 8d8667106306d78dea9f63e5a3e8ee7ad2b60f86bd625f5968e37ca6a0cad317
name: csi-driver-smb
urls:
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/charts/v0.2.0/csi-driver-smb-v0.2.0.tgz
version: v0.2.0
generated: "2022-01-15T03:04:11.670241959Z"
generated: "2022-04-11T12:39:36.577141525Z"
Binary file modified charts/latest/csi-driver-smb-v1.6.0.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion charts/latest/csi-driver-smb/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
appVersion: latest
appVersion: v1.6.0
description: SMB CSI Driver for Kubernetes
name: csi-driver-smb
version: v1.6.0
2 changes: 1 addition & 1 deletion charts/latest/csi-driver-smb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ image:
baseRepo: k8s.gcr.io/sig-storage
smb:
repository: mcr.microsoft.com/k8s/csi/smb-csi
tag: latest
tag: v1.6.0
pullPolicy: IfNotPresent
csiProvisioner:
repository: k8s.gcr.io/sig-storage/csi-provisioner
Expand Down
Binary file added charts/v1.6.0/csi-driver-smb-v1.6.0.tgz
Binary file not shown.
5 changes: 5 additions & 0 deletions charts/v1.6.0/csi-driver-smb/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
appVersion: v1.6.0
description: SMB CSI Driver for Kubernetes
name: csi-driver-smb
version: v1.6.0
5 changes: 5 additions & 0 deletions charts/v1.6.0/csi-driver-smb/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
The CSI SMB Driver is getting deployed to your cluster.

To check CSI SMB Driver pods status, please run:

kubectl --namespace={{ .Release.Namespace }} get pods --selector="release={{ .Release.Name }}" --watch
29 changes: 29 additions & 0 deletions charts/v1.6.0/csi-driver-smb/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{{/* vim: set filetype=mustache: */}}

{{/* Expand the name of the chart.*/}}
{{- define "smb.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/* labels for helm resources */}}
{{- define "smb.labels" -}}
labels:
app.kubernetes.io/instance: "{{ .Release.Name }}"
app.kubernetes.io/managed-by: "{{ .Release.Service }}"
app.kubernetes.io/name: "{{ template "smb.name" . }}"
app.kubernetes.io/version: "{{ .Chart.AppVersion }}"
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
{{- if .Values.customLabels }}
{{ toYaml .Values.customLabels | indent 2 -}}
{{- end }}
{{- end -}}

{{/* pull secrets for containers */}}
{{- define "smb.pullSecrets" -}}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{- range .Values.imagePullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
{{- end -}}
123 changes: 123 additions & 0 deletions charts/v1.6.0/csi-driver-smb/templates/csi-smb-controller.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: {{ .Values.controller.name }}
namespace: {{ .Release.Namespace }}
{{ include "smb.labels" . | indent 2 }}
spec:
replicas: {{ .Values.controller.replicas }}
selector:
matchLabels:
app: {{ .Values.controller.name }}
template:
metadata:
{{ include "smb.labels" . | indent 6 }}
app: {{ .Values.controller.name }}
{{- if .Values.podLabels }}
{{- toYaml .Values.podLabels | nindent 8 }}
{{- end }}
{{- if .Values.podAnnotations }}
annotations:
{{ toYaml .Values.podAnnotations | indent 8 }}
{{- end }}
spec:
{{- with .Values.controller.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
dnsPolicy: {{ .Values.controller.dnsPolicy }}
serviceAccountName: {{ .Values.serviceAccount.controller }}
nodeSelector:
{{- with .Values.controller.nodeSelector }}
{{ toYaml . | indent 8 }}
{{- end }}
kubernetes.io/os: linux
{{- if .Values.controller.runOnMaster}}
kubernetes.io/role: master
{{- end}}
priorityClassName: system-cluster-critical
{{- with .Values.controller.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
{{- include "smb.pullSecrets" . | indent 6 }}
containers:
- name: csi-provisioner
{{- if hasPrefix "/" .Values.image.csiProvisioner.repository }}
image: "{{ .Values.image.baseRepo }}{{ .Values.image.csiProvisioner.repository }}:{{ .Values.image.csiProvisioner.tag }}"
{{- else }}
image: "{{ .Values.image.csiProvisioner.repository }}:{{ .Values.image.csiProvisioner.tag }}"
{{- end }}
args:
- "-v=2"
- "--csi-address=$(ADDRESS)"
- "--leader-election"
- "--leader-election-namespace={{ .Release.Namespace }}"
env:
- name: ADDRESS
value: /csi/csi.sock
imagePullPolicy: {{ .Values.image.csiProvisioner.pullPolicy }}
volumeMounts:
- mountPath: /csi
name: socket-dir
resources: {{- toYaml .Values.controller.resources.csiProvisioner | nindent 12 }}
- name: liveness-probe
{{- if hasPrefix "/" .Values.image.livenessProbe.repository }}
image: "{{ .Values.image.baseRepo }}{{ .Values.image.livenessProbe.repository }}:{{ .Values.image.livenessProbe.tag }}"
{{- else }}
image: "{{ .Values.image.livenessProbe.repository }}:{{ .Values.image.livenessProbe.tag }}"
{{- end }}
args:
- --csi-address=/csi/csi.sock
- --probe-timeout=3s
- --health-port={{ .Values.controller.livenessProbe.healthPort }}
- --v=2
imagePullPolicy: {{ .Values.image.livenessProbe.pullPolicy }}
volumeMounts:
- name: socket-dir
mountPath: /csi
resources: {{- toYaml .Values.controller.resources.livenessProbe | nindent 12 }}
- name: smb
{{- if hasPrefix "/" .Values.image.smb.repository }}
image: "{{ .Values.image.baseRepo }}{{ .Values.image.smb.repository }}:{{ .Values.image.smb.tag }}"
{{- else }}
image: "{{ .Values.image.smb.repository }}:{{ .Values.image.smb.tag }}"
{{- end }}
imagePullPolicy: {{ .Values.image.smb.pullPolicy }}
args:
- "--v={{ .Values.controller.logLevel }}"
- "--endpoint=$(CSI_ENDPOINT)"
- "--metrics-address=0.0.0.0:{{ .Values.controller.metricsPort }}"
- "--drivername={{ .Values.driver.name }}"
- "--working-mount-dir={{ .Values.controller.workingMountDir }}"
ports:
- containerPort: {{ .Values.controller.livenessProbe.healthPort }}
name: healthz
protocol: TCP
- containerPort: {{ .Values.controller.metricsPort }}
name: metrics
protocol: TCP
livenessProbe:
failureThreshold: 5
httpGet:
path: /healthz
port: healthz
initialDelaySeconds: 30
timeoutSeconds: 10
periodSeconds: 30
env:
- name: CSI_ENDPOINT
value: unix:///csi/csi.sock
securityContext:
privileged: true
volumeMounts:
- mountPath: /csi
name: socket-dir
resources: {{- toYaml .Values.controller.resources.smb | nindent 12 }}
volumes:
- name: socket-dir
emptyDir: {}
{{- if .Values.securityContext }}
securityContext: {{- toYaml .Values.securityContext | nindent 8 }}
{{- end }}
8 changes: 8 additions & 0 deletions charts/v1.6.0/csi-driver-smb/templates/csi-smb-driver.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
apiVersion: storage.k8s.io/v1
kind: CSIDriver
metadata:
name: {{ .Values.driver.name }}
spec:
attachRequired: false
podInfoOnMount: true
Loading

0 comments on commit bcddc7c

Please sign in to comment.