Skip to content

Commit

Permalink
doc: cut v1.9.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx committed Aug 20, 2022
1 parent e5e8c63 commit e5c63a1
Show file tree
Hide file tree
Showing 27 changed files with 1,276 additions and 27 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.9.0 | 1.20+ | v0.2.2+ |
|v1.8.0 | 1.20+ | v0.2.2+ |
|v1.7.0 | 1.20+ | v0.2.2+ |
|v1.6.0 | 1.20+ | 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.8.0
helm install csi-driver-smb csi-driver-smb/csi-driver-smb --namespace kube-system --version v1.9.0
```

### install driver with customized driver name, deployment name
Expand Down
61 changes: 44 additions & 17 deletions charts/index.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,27 @@
apiVersion: v1
entries:
csi-driver-smb:
- apiVersion: v1
appVersion: v1.9.0
created: "2022-08-20T02:34:29.828469462Z"
description: SMB CSI Driver for Kubernetes
digest: 5c78c650b9755e508afecb3f6a554c549509023f7b0610b53853a41783d1c08f
name: csi-driver-smb
urls:
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/charts/v1.9.0/csi-driver-smb-v1.9.0.tgz
version: v1.9.0
- apiVersion: v1
appVersion: v1.9.0
created: "2022-08-20T02:34:29.807965626Z"
description: SMB CSI Driver for Kubernetes
digest: c8b14ea69c01fbafb5f0604581847f11e5a09e8041d0ba039bbf9cbe738d09c8
name: csi-driver-smb
urls:
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/charts/latest/csi-driver-smb-v1.9.0.tgz
version: v1.9.0
- apiVersion: v1
appVersion: v1.8.0
created: "2022-08-05T09:02:53.348974028Z"
created: "2022-08-20T02:34:29.826637841Z"
description: SMB CSI Driver for Kubernetes
digest: d19d156c2143d753085bcbcb32506f8ebd7ebdee275e726f9c8d774a1f0b9f34
name: csi-driver-smb
Expand All @@ -12,7 +30,7 @@ entries:
version: v1.8.0
- apiVersion: v1
appVersion: v1.7.0
created: "2022-08-05T09:02:53.348117918Z"
created: "2022-08-20T02:34:29.825255625Z"
description: SMB CSI Driver for Kubernetes
digest: 65594a1ff09d912a33ee0674bba1fad1f7c717638a281fb68bcfa2c98c288453
name: csi-driver-smb
Expand All @@ -21,7 +39,7 @@ entries:
version: v1.7.0
- apiVersion: v1
appVersion: v1.6.0
created: "2022-08-05T09:02:53.346532699Z"
created: "2022-08-20T02:34:29.82399831Z"
description: SMB CSI Driver for Kubernetes
digest: 31dd4c8b0b0d4a61565631aa5b433b18b5375aeb24812bf4fa9958d5b7917485
name: csi-driver-smb
Expand All @@ -30,7 +48,7 @@ entries:
version: v1.6.0
- apiVersion: v1
appVersion: v1.5.0
created: "2022-08-05T09:02:53.345894991Z"
created: "2022-08-20T02:34:29.820781173Z"
description: SMB CSI Driver for Kubernetes
digest: b7dc9e9dc5d46df12a6d1a5643efe86439bff6c36867968f772e6899692083d6
name: csi-driver-smb
Expand All @@ -39,7 +57,7 @@ entries:
version: v1.5.0
- apiVersion: v1
appVersion: v1.4.0
created: "2022-08-05T09:02:53.345173883Z"
created: "2022-08-20T02:34:29.819765262Z"
description: SMB CSI Driver for Kubernetes
digest: 9b1a6166ab72c09d0eefb448ecc998639b9f6255afb00bfc0ae0a4fdad76f119
name: csi-driver-smb
Expand All @@ -48,7 +66,7 @@ entries:
version: v1.4.0
- apiVersion: v1
appVersion: v1.3.0
created: "2022-08-05T09:02:53.343988468Z"
created: "2022-08-20T02:34:29.818463447Z"
description: SMB CSI Driver for Kubernetes
digest: d2236d36f1cb24139ddf87ea87229369ed856efc42330e656330f6cfa7635858
name: csi-driver-smb
Expand All @@ -57,7 +75,7 @@ entries:
version: v1.3.0
- apiVersion: v1
appVersion: v1.2.0
created: "2022-08-05T09:02:53.343412462Z"
created: "2022-08-20T02:34:29.81705613Z"
description: SMB CSI Driver for Kubernetes
digest: 9d7099165db24d5412c95b298a59cca9b233ab8800d04efd34bb055812390915
name: csi-driver-smb
Expand All @@ -66,7 +84,7 @@ entries:
version: v1.2.0
- apiVersion: v1
appVersion: v1.1.0
created: "2022-08-05T09:02:53.342813754Z"
created: "2022-08-20T02:34:29.815703815Z"
description: SMB CSI Driver for Kubernetes
digest: 5b39613c9104db06815ee2d42fec8507c3bb2038264513449079a4eb5b6530a8
name: csi-driver-smb
Expand All @@ -75,7 +93,7 @@ entries:
version: v1.1.0
- apiVersion: v1
appVersion: v1.0.0
created: "2022-08-05T09:02:53.342108746Z"
created: "2022-08-20T02:34:29.814303599Z"
description: SMB CSI Driver for Kubernetes
digest: 3e4721dd007cc51750f7221be8f66ec7e287c83a8cdcfeb9a71c30f526b06dc4
name: csi-driver-smb
Expand All @@ -84,7 +102,7 @@ entries:
version: v1.0.0
- apiVersion: v1
appVersion: v0.6.0
created: "2022-08-05T09:02:53.341574239Z"
created: "2022-08-20T02:34:29.813214086Z"
description: SMB CSI Driver for Kubernetes
digest: 6fc9d05bc78ca98fb17071b7f5ad05b4c071f2403114d72feae99fb89ca1fc9f
name: csi-driver-smb
Expand All @@ -93,7 +111,7 @@ entries:
version: v0.6.0
- apiVersion: v1
appVersion: v0.5.0
created: "2022-08-05T09:02:53.341156834Z"
created: "2022-08-20T02:34:29.812375277Z"
description: SMB CSI Driver for Kubernetes
digest: 8264c6630806325613234c2d7951c188d073607e6f0f89d781ec32afed04157b
name: csi-driver-smb
Expand All @@ -102,7 +120,7 @@ entries:
version: v0.5.0
- apiVersion: v1
appVersion: v0.4.0
created: "2022-08-05T09:02:53.34077833Z"
created: "2022-08-20T02:34:29.811660568Z"
description: SMB CSI Driver for Kubernetes
digest: fb6d581ba5d4d1d78ca468f6daa4a24c47bb147b74d005d3c394521b4e534a3e
name: csi-driver-smb
Expand All @@ -111,7 +129,7 @@ entries:
version: v0.4.0
- apiVersion: v1
appVersion: v0.3.0
created: "2022-08-05T09:02:53.340406325Z"
created: "2022-08-20T02:34:29.810519955Z"
description: SMB CSI Driver for Kubernetes
digest: ee9e58db6d4a95491e2012c6607126bbff827b9c439e90e9a9798d2a73b0cb22
name: csi-driver-smb
Expand All @@ -120,7 +138,7 @@ entries:
version: v0.3.0
- apiVersion: v1
appVersion: v0.2.0
created: "2022-08-05T09:02:53.340067421Z"
created: "2022-08-20T02:34:29.809341042Z"
description: SMB CSI Driver for Kubernetes
digest: 8d8667106306d78dea9f63e5a3e8ee7ad2b60f86bd625f5968e37ca6a0cad317
name: csi-driver-smb
Expand All @@ -129,11 +147,20 @@ entries:
version: v0.2.0
- apiVersion: v1
appVersion: latest
created: "2022-08-05T09:02:53.339699217Z"
created: "2022-08-20T02:34:29.827509951Z"
description: SMB CSI Driver for Kubernetes
digest: 37a15bd85f6f9f2df20aed317d9baa3774128552488d02c2897d561e67777963
name: csi-driver-smb
urls:
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/charts/v1.9.0/csi-driver-smb-v0.0.0.tgz
version: v0.0.0
- apiVersion: v1
appVersion: latest
created: "2022-08-20T02:34:29.807192717Z"
description: SMB CSI Driver for Kubernetes
digest: b7479364f1283da159355acb1b7740592badade3b7e48300c1793b3b09b3f003
digest: 37a15bd85f6f9f2df20aed317d9baa3774128552488d02c2897d561e67777963
name: csi-driver-smb
urls:
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/charts/latest/csi-driver-smb-v0.0.0.tgz
version: v0.0.0
generated: "2022-08-05T09:02:53.338833107Z"
generated: "2022-08-20T02:34:29.806147705Z"
Binary file added charts/latest/csi-driver-smb-v1.9.0.tgz
Binary file not shown.
4 changes: 2 additions & 2 deletions 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.9.0
description: SMB CSI Driver for Kubernetes
name: csi-driver-smb
version: v0.0.0
version: v1.9.0
4 changes: 2 additions & 2 deletions charts/latest/csi-driver-smb/values.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
image:
baseRepo: registry.k8s.io/sig-storage
smb:
repository: gcr.io/k8s-staging-sig-storage/smbplugin
tag: canary
repository: registry.k8s.io/sig-storage/smbplugin
tag: v1.9.0
pullPolicy: IfNotPresent
csiProvisioner:
repository: registry.k8s.io/sig-storage/csi-provisioner
Expand Down
Binary file added charts/v1.9.0/csi-driver-smb-v0.0.0.tgz
Binary file not shown.
Binary file added charts/v1.9.0/csi-driver-smb-v1.9.0.tgz
Binary file not shown.
5 changes: 5 additions & 0 deletions charts/v1.9.0/csi-driver-smb/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
appVersion: v1.9.0
description: SMB CSI Driver for Kubernetes
name: csi-driver-smb
version: v1.9.0
5 changes: 5 additions & 0 deletions charts/v1.9.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.9.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 -}}
127 changes: 127 additions & 0 deletions charts/v1.9.0/csi-driver-smb/templates/csi-smb-controller.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
---
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}}
node-role.kubernetes.io/master: ""
{{- end}}
{{- if .Values.controller.runOnControlPlane}}
node-role.kubernetes.io/control-plane: ""
{{- 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 }}"
- "--extra-create-metadata=true"
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.9.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 e5c63a1

Please sign in to comment.