Skip to content

Commit

Permalink
Merge pull request #643 from andyzhangx/cut-v1.12.0
Browse files Browse the repository at this point in the history
doc: cut v1.12.0 release
  • Loading branch information
andyzhangx authored Aug 11, 2023
2 parents 6bdffc1 + eca1d7e commit dbb8412
Show file tree
Hide file tree
Showing 22 changed files with 1,335 additions and 24 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.21+ | v0.2.2+ |
|v1.12.0 | 1.21+ | v0.2.2+ |
|v1.11.0 | 1.21+ | v0.2.2+ |
|v1.10.0 | 1.21+ | v0.2.2+ |
|v1.9.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 @@ -15,7 +15,7 @@

```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.11.0
helm install csi-driver-smb csi-driver-smb/csi-driver-smb --namespace kube-system --version v1.12.0
```

### install driver with customized driver name, deployment name
Expand Down
51 changes: 30 additions & 21 deletions charts/index.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
apiVersion: v1
entries:
csi-driver-smb:
- apiVersion: v1
appVersion: v1.12.0
created: "2023-08-10T13:32:29.889727946Z"
description: SMB CSI Driver for Kubernetes
digest: eb1f894fa5ad0c20da3b26a3ad4c20857914c8d76a098fd2185ff068d6118ddd
name: csi-driver-smb
urls:
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/charts/v1.12.0/csi-driver-smb-v1.12.0.tgz
version: v1.12.0
- apiVersion: v1
appVersion: v1.11.0
created: "2023-05-28T02:39:22.190044726Z"
created: "2023-08-10T13:32:29.889155143Z"
description: SMB CSI Driver for Kubernetes
digest: ab3cab9509579264ed95e49a0ad077019a52a45b4e6cc436de5b1f70c03699ed
name: csi-driver-smb
Expand All @@ -12,7 +21,7 @@ entries:
version: v1.11.0
- apiVersion: v1
appVersion: v1.10.0
created: "2023-05-28T02:39:22.189454122Z"
created: "2023-08-10T13:32:29.888634145Z"
description: SMB CSI Driver for Kubernetes
digest: 82e460e6fa80da9ca523a86c28e001e15595d27c3507864f2123dbadc64c7fec
name: csi-driver-smb
Expand All @@ -21,7 +30,7 @@ entries:
version: v1.10.0
- apiVersion: v1
appVersion: v1.9.0
created: "2023-05-28T02:39:22.195713469Z"
created: "2023-08-10T13:32:29.895144294Z"
description: SMB CSI Driver for Kubernetes
digest: 5c78c650b9755e508afecb3f6a554c549509023f7b0610b53853a41783d1c08f
name: csi-driver-smb
Expand All @@ -30,7 +39,7 @@ entries:
version: v1.9.0
- apiVersion: v1
appVersion: v1.8.0
created: "2023-05-28T02:39:22.194500113Z"
created: "2023-08-10T13:32:29.894121232Z"
description: SMB CSI Driver for Kubernetes
digest: d19d156c2143d753085bcbcb32506f8ebd7ebdee275e726f9c8d774a1f0b9f34
name: csi-driver-smb
Expand All @@ -39,7 +48,7 @@ entries:
version: v1.8.0
- apiVersion: v1
appVersion: v1.7.0
created: "2023-05-28T02:39:22.193060491Z"
created: "2023-08-10T13:32:29.89358478Z"
description: SMB CSI Driver for Kubernetes
digest: 65594a1ff09d912a33ee0674bba1fad1f7c717638a281fb68bcfa2c98c288453
name: csi-driver-smb
Expand All @@ -48,7 +57,7 @@ entries:
version: v1.7.0
- apiVersion: v1
appVersion: v1.6.0
created: "2023-05-28T02:39:22.192522915Z"
created: "2023-08-10T13:32:29.89305936Z"
description: SMB CSI Driver for Kubernetes
digest: 31dd4c8b0b0d4a61565631aa5b433b18b5375aeb24812bf4fa9958d5b7917485
name: csi-driver-smb
Expand All @@ -57,7 +66,7 @@ entries:
version: v1.6.0
- apiVersion: v1
appVersion: v1.5.0
created: "2023-05-28T02:39:22.191991645Z"
created: "2023-08-10T13:32:29.892544589Z"
description: SMB CSI Driver for Kubernetes
digest: b7dc9e9dc5d46df12a6d1a5643efe86439bff6c36867968f772e6899692083d6
name: csi-driver-smb
Expand All @@ -66,7 +75,7 @@ entries:
version: v1.5.0
- apiVersion: v1
appVersion: v1.4.0
created: "2023-05-28T02:39:22.191490584Z"
created: "2023-08-10T13:32:29.892035749Z"
description: SMB CSI Driver for Kubernetes
digest: 9b1a6166ab72c09d0eefb448ecc998639b9f6255afb00bfc0ae0a4fdad76f119
name: csi-driver-smb
Expand All @@ -75,7 +84,7 @@ entries:
version: v1.4.0
- apiVersion: v1
appVersion: v1.3.0
created: "2023-05-28T02:39:22.190968842Z"
created: "2023-08-10T13:32:29.891481346Z"
description: SMB CSI Driver for Kubernetes
digest: d2236d36f1cb24139ddf87ea87229369ed856efc42330e656330f6cfa7635858
name: csi-driver-smb
Expand All @@ -84,7 +93,7 @@ entries:
version: v1.3.0
- apiVersion: v1
appVersion: v1.2.0
created: "2023-05-28T02:39:22.190524955Z"
created: "2023-08-10T13:32:29.890206867Z"
description: SMB CSI Driver for Kubernetes
digest: 9d7099165db24d5412c95b298a59cca9b233ab8800d04efd34bb055812390915
name: csi-driver-smb
Expand All @@ -93,7 +102,7 @@ entries:
version: v1.2.0
- apiVersion: v1
appVersion: v1.1.0
created: "2023-05-28T02:39:22.188907444Z"
created: "2023-08-10T13:32:29.888099177Z"
description: SMB CSI Driver for Kubernetes
digest: 5b39613c9104db06815ee2d42fec8507c3bb2038264513449079a4eb5b6530a8
name: csi-driver-smb
Expand All @@ -102,7 +111,7 @@ entries:
version: v1.1.0
- apiVersion: v1
appVersion: v1.0.0
created: "2023-05-28T02:39:22.18844611Z"
created: "2023-08-10T13:32:29.88763515Z"
description: SMB CSI Driver for Kubernetes
digest: 3e4721dd007cc51750f7221be8f66ec7e287c83a8cdcfeb9a71c30f526b06dc4
name: csi-driver-smb
Expand All @@ -111,7 +120,7 @@ entries:
version: v1.0.0
- apiVersion: v1
appVersion: v0.6.0
created: "2023-05-28T02:39:22.188165833Z"
created: "2023-08-10T13:32:29.887345941Z"
description: SMB CSI Driver for Kubernetes
digest: 6fc9d05bc78ca98fb17071b7f5ad05b4c071f2403114d72feae99fb89ca1fc9f
name: csi-driver-smb
Expand All @@ -120,7 +129,7 @@ entries:
version: v0.6.0
- apiVersion: v1
appVersion: v0.5.0
created: "2023-05-28T02:39:22.187880793Z"
created: "2023-08-10T13:32:29.887090711Z"
description: SMB CSI Driver for Kubernetes
digest: 8264c6630806325613234c2d7951c188d073607e6f0f89d781ec32afed04157b
name: csi-driver-smb
Expand All @@ -129,7 +138,7 @@ entries:
version: v0.5.0
- apiVersion: v1
appVersion: v0.4.0
created: "2023-05-28T02:39:22.187531066Z"
created: "2023-08-10T13:32:29.886808894Z"
description: SMB CSI Driver for Kubernetes
digest: fb6d581ba5d4d1d78ca468f6daa4a24c47bb147b74d005d3c394521b4e534a3e
name: csi-driver-smb
Expand All @@ -138,7 +147,7 @@ entries:
version: v0.4.0
- apiVersion: v1
appVersion: v0.3.0
created: "2023-05-28T02:39:22.186722374Z"
created: "2023-08-10T13:32:29.886536436Z"
description: SMB CSI Driver for Kubernetes
digest: ee9e58db6d4a95491e2012c6607126bbff827b9c439e90e9a9798d2a73b0cb22
name: csi-driver-smb
Expand All @@ -147,7 +156,7 @@ entries:
version: v0.3.0
- apiVersion: v1
appVersion: v0.2.0
created: "2023-05-28T02:39:22.186099202Z"
created: "2023-08-10T13:32:29.886254552Z"
description: SMB CSI Driver for Kubernetes
digest: 8d8667106306d78dea9f63e5a3e8ee7ad2b60f86bd625f5968e37ca6a0cad317
name: csi-driver-smb
Expand All @@ -156,7 +165,7 @@ entries:
version: v0.2.0
- apiVersion: v1
appVersion: latest
created: "2023-05-28T02:39:22.195142563Z"
created: "2023-08-10T13:32:29.89463195Z"
description: SMB CSI Driver for Kubernetes
digest: 37a15bd85f6f9f2df20aed317d9baa3774128552488d02c2897d561e67777963
name: csi-driver-smb
Expand All @@ -165,11 +174,11 @@ entries:
version: v0.0.0
- apiVersion: v1
appVersion: latest
created: "2023-05-28T02:39:22.185832547Z"
created: "2023-08-10T13:32:29.885984935Z"
description: SMB CSI Driver for Kubernetes
digest: 3c3d4d66bf84296fdc48025406c40762bffd348ff414ebde6ae85a69d57cfe4b
digest: 233d42fc248798d058b5b20c087e14c386aaba25afd9ddaff58acaf26ea55a83
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: "2023-05-28T02:39:22.185095643Z"
generated: "2023-08-10T13:32:29.885192984Z"
Binary file modified charts/latest/csi-driver-smb-v0.0.0.tgz
Binary file not shown.
Binary file added charts/v1.12.0/csi-driver-smb-v1.12.0.tgz
Binary file not shown.
5 changes: 5 additions & 0 deletions charts/v1.12.0/csi-driver-smb/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
appVersion: v1.12.0
description: SMB CSI Driver for Kubernetes
name: csi-driver-smb
version: v1.12.0
5 changes: 5 additions & 0 deletions charts/v1.12.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="app.kubernetes.io/name={{ .Release.Name }}" --watch
29 changes: 29 additions & 0 deletions charts/v1.12.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 -}}
48 changes: 48 additions & 0 deletions charts/v1.12.0/csi-driver-smb/templates/csi-proxy-windows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{{- if .Values.windows.csiproxy.enabled}}
kind: DaemonSet
apiVersion: apps/v1
metadata:
name: {{ .Values.windows.csiproxy.dsName }}
namespace: {{ .Release.Namespace }}
{{ include "smb.labels" . | indent 2 }}
spec:
updateStrategy:
rollingUpdate:
maxUnavailable: {{ .Values.node.maxUnavailable }}
type: RollingUpdate
selector:
matchLabels:
app: {{ .Values.windows.csiproxy.dsName }}
template:
metadata:
{{ include "smb.labels" . | indent 6 }}
app: {{ .Values.windows.csiproxy.dsName }}
spec:
{{- with .Values.windows.csiproxy.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
securityContext:
windowsOptions:
hostProcess: true
runAsUserName: {{ .Values.windows.csiproxy.username | quote }}
hostNetwork: true
nodeSelector:
{{- with .Values.windows.csiproxy.nodeSelector }}
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.node.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
priorityClassName: {{ .Values.priorityClassName | quote }}
{{- include "smb.pullSecrets" . | indent 6 }}
containers:
- name: csi-proxy
{{- if hasPrefix "/" .Values.image.csiproxy.repository }}
image: "{{ .Values.image.baseRepo }}{{ .Values.image.csiproxy.repository }}:{{ .Values.image.csiproxy.tag }}"
{{- else }}
image: "{{ .Values.image.csiproxy.repository }}:{{ .Values.image.csiproxy.tag }}"
{{- end }}
imagePullPolicy: {{ .Values.image.csiproxy.pullPolicy }}
{{- end -}}
Loading

0 comments on commit dbb8412

Please sign in to comment.