Skip to content

Commit

Permalink
doc: cut v1.1.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx committed May 2, 2021
1 parent 39b61a8 commit 8b7b256
Show file tree
Hide file tree
Showing 25 changed files with 1,300 additions and 20 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ This driver allows Kubernetes to access Azure Storage through one of following m
### Container Images & Kubernetes Compatibility:
|driver version |Image | supported k8s version | built-in blobfuse version |
|----------------|-------------------------------------------|-----------------------|---------------------------|
|master branch |mcr.microsoft.com/k8s/csi/blob-csi:latest | 1.16+ | 1.3.7 |
|master branch |mcr.microsoft.com/k8s/csi/blob-csi:latest | 1.17+ | 1.3.7 |
|v1.1.0 |mcr.microsoft.com/k8s/csi/blob-csi:v1.1.0 | 1.17+ | 1.3.7 |
|v1.0.0 |mcr.microsoft.com/k8s/csi/blob-csi:v1.0.0 | 1.16+ | 1.3.6 |
|v0.11.0 |mcr.microsoft.com/k8s/csi/blob-csi:v0.11.0 | 1.15+ | 1.3.6 |
|v0.10.0 |mcr.microsoft.com/k8s/csi/blob-csi:v0.10.0 | 1.15+ | 1.3.5 |

#### Breaking change notice
Since `v0.7.0`, driver name changed from `blobfuse.csi.azure.com` to `blob.csi.azure.com`, volume created by `v0.6.0`(or prior version) could not be mounted by `v0.7.0` driver. If you have volumes created by `v0.6.0` version, just keep the driver running in your cluster.
Expand Down
2 changes: 1 addition & 1 deletion charts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ helm install blob-csi-driver blob-csi-driver/blob-csi-driver --namespace kube-sy
### install a specific version
```console
helm repo add blob-csi-driver https://raw.githubusercontent.com/kubernetes-sigs/blob-csi-driver/master/charts
helm install blob-csi-driver blob-csi-driver/blob-csi-driver --namespace kube-system --version v1.0.0
helm install blob-csi-driver blob-csi-driver/blob-csi-driver --namespace kube-system --version v1.1.0
```

### search for all available chart versions
Expand Down
33 changes: 21 additions & 12 deletions charts/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,25 @@ entries:
blob-csi-driver:
- apiVersion: v1
appVersion: latest
created: "2021-02-25T13:26:45.338311342Z"
created: "2021-05-02T01:31:14.413254258Z"
description: Azure Blob Storage CSI driver
digest: e4d85480f96b19509e8e51219eb4341a52418272ce410609d600c216a1765f85
digest: 89f5e948130a4f5ba128dfa034cafa11e67926cc472611b04dd581e7db7b1e6e
name: blob-csi-driver
urls:
- https://raw.githubusercontent.com/kubernetes-sigs/blob-csi-driver/master/charts/latest/blob-csi-driver-v1.1.0.tgz
version: v1.1.0
- apiVersion: v1
appVersion: v1.1.0
created: "2021-05-02T01:31:14.425337222Z"
description: Azure Blob Storage CSI driver
digest: a251a55243de207c69ef53f72abee45e93b72fa4fc43dc204b7f1cdfd459acdb
name: blob-csi-driver
urls:
- https://raw.githubusercontent.com/kubernetes-sigs/blob-csi-driver/master/charts/v1.1.0/blob-csi-driver-v1.1.0.tgz
version: v1.1.0
- apiVersion: v1
appVersion: v1.0.0
created: "2021-02-25T13:26:45.343153468Z"
created: "2021-05-02T01:31:14.424578418Z"
description: Azure Blob Storage CSI driver
digest: e83f037a165eafc83a978bd7e6bf6221b052ac34363aecb12e6a73607dc58b89
name: blob-csi-driver
Expand All @@ -21,7 +30,7 @@ entries:
version: v1.0.0
- apiVersion: v1
appVersion: v0.11.0
created: "2021-02-25T13:26:45.339249947Z"
created: "2021-05-02T01:31:14.416937878Z"
description: Azure Blob Storage CSI driver
digest: ded903d30eaef4f41e2cc7172292089fbaf122cc24cc32f5e62207cff445a9da
name: blob-csi-driver
Expand All @@ -30,7 +39,7 @@ entries:
version: v0.11.0
- apiVersion: v1
appVersion: v0.10.0
created: "2021-02-25T13:26:45.338775044Z"
created: "2021-05-02T01:31:14.414564565Z"
description: Azure Blob Storage CSI driver
digest: 24f3642ce8535544ad63334f9a71eb8c594cc2943becd21844b6b1132d261960
name: blob-csi-driver
Expand All @@ -39,7 +48,7 @@ entries:
version: v0.10.0
- apiVersion: v1
appVersion: v0.9.0
created: "2021-02-25T13:26:45.342757466Z"
created: "2021-05-02T01:31:14.423135311Z"
description: Azure Blob Storage CSI driver
digest: d125014409cad519f12838390c176f81f34097a5ba759a177980255a9fe775e2
name: blob-csi-driver
Expand All @@ -48,7 +57,7 @@ entries:
version: v0.9.0
- apiVersion: v1
appVersion: v0.8.0
created: "2021-02-25T13:26:45.342387964Z"
created: "2021-05-02T01:31:14.422180906Z"
description: Azure Blob Storage CSI driver
digest: 8ac9fc62030ff7c7dd6deaa51db410d9b782578149347688b8f66b37ec33960f
name: blob-csi-driver
Expand All @@ -57,7 +66,7 @@ entries:
version: v0.8.0
- apiVersion: v1
appVersion: v0.7.0
created: "2021-02-25T13:26:45.341872161Z"
created: "2021-05-02T01:31:14.421239501Z"
description: Azure Blob Storage CSI driver
digest: 6d758b8e4a480a8d006f7e73c51d32ea0b568b8ba1364d4ac33549e3bedfc9a7
name: blob-csi-driver
Expand All @@ -67,7 +76,7 @@ entries:
blobfuse-csi-driver:
- apiVersion: v1
appVersion: v0.6.0
created: "2021-02-25T13:26:45.341027257Z"
created: "2021-05-02T01:31:14.420158195Z"
description: BlobFuse Container Storage Interface (CSI) Storage Plugin
digest: 2bea484bc1e87097b048ab2e1615683b8b7db614059fb624a0a2b18ad0920926
name: blobfuse-csi-driver
Expand All @@ -76,7 +85,7 @@ entries:
version: v0.6.0
- apiVersion: v1
appVersion: v0.5.0
created: "2021-02-25T13:26:45.340029951Z"
created: "2021-05-02T01:31:14.41928189Z"
description: BlobFuse Container Storage Interface (CSI) Storage Plugin
digest: 11441a6025c319e97c0605f520c4be063eadc482670655bb6ecc4426bee2d49c
name: blobfuse-csi-driver
Expand All @@ -85,11 +94,11 @@ entries:
version: v0.5.0
- apiVersion: v1
appVersion: v0.4.0
created: "2021-02-25T13:26:45.339617949Z"
created: "2021-05-02T01:31:14.418134984Z"
description: BlobFuse Container Storage Interface (CSI) Storage Plugin
digest: 263e474a08598f1c7f518c1efed43eb23d9f12b146b3c47deda77aa99c0ca385
name: blobfuse-csi-driver
urls:
- https://raw.githubusercontent.com/kubernetes-sigs/blob-csi-driver/master/charts/v0.4.0/blobfuse-csi-driver-v0.4.0.tgz
version: v0.4.0
generated: "2021-02-25T13:26:45.337652438Z"
generated: "2021-05-02T01:31:14.411952751Z"
Binary file added charts/v1.1.0/blob-csi-driver-v1.1.0.tgz
Binary file not shown.
5 changes: 5 additions & 0 deletions charts/v1.1.0/blob-csi-driver/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
appVersion: v1.1.0
description: Azure Blob Storage CSI driver
name: blob-csi-driver
version: v1.1.0
5 changes: 5 additions & 0 deletions charts/v1.1.0/blob-csi-driver/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
The Azure Blob Storage CSI driver is getting deployed to your cluster.

To check Azure Blob Storage CSI driver pods status, please run:

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

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

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

{{/* pull secrets for containers */}}
{{- define "blob.pullSecrets" -}}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{- range .Values.imagePullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
{{- end -}}
163 changes: 163 additions & 0 deletions charts/v1.1.0/blob-csi-driver/templates/csi-blob-controller.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
kind: Deployment
apiVersion: apps/v1
metadata:
name: csi-blob-controller
namespace: {{ .Release.Namespace }}
{{ include "blob.labels" . | indent 2 }}
spec:
replicas: {{ .Values.controller.replicas }}
selector:
matchLabels:
app: csi-blob-controller
template:
metadata:
{{ include "blob.labels" . | indent 6 }}
app: csi-blob-controller
{{- 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 }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
{{- end }}
hostNetwork: true
serviceAccountName: csi-blob-controller-sa
nodeSelector:
kubernetes.io/os: linux
{{- if .Values.controller.runOnMaster}}
kubernetes.io/role: master
{{- end}}
{{- with .Values.controller.nodeSelector }}
{{ toYaml . | indent 8 }}
{{- end }}
priorityClassName: {{ .Values.priorityClassName | quote }}
tolerations:
- key: "node-role.kubernetes.io/master"
operator: "Equal"
value: "true"
effect: "NoSchedule"
- key: "node-role.kubernetes.io/controlplane"
operator: "Equal"
value: "true"
effect: "NoSchedule"
{{- with .Values.controller.tolerations }}
{{ toYaml . | indent 8 }}
{{- end }}
containers:
- name: csi-provisioner
image: {{ .Values.image.csiProvisioner.repository }}:{{ .Values.image.csiProvisioner.tag }}
args:
- "-v=2"
- "--csi-address=$(ADDRESS)"
- "--leader-election"
- "--timeout=60s"
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
image: "{{ .Values.image.livenessProbe.repository }}:{{ .Values.image.livenessProbe.tag }}"
args:
- --csi-address=/csi/csi.sock
- --probe-timeout=3s
- --health-port=29632
imagePullPolicy: {{ .Values.image.livenessProbe.pullPolicy }}
volumeMounts:
- name: socket-dir
mountPath: /csi
resources: {{- toYaml .Values.controller.resources.livenessProbe | nindent 12 }}
- name: blob
image: "{{ .Values.image.blob.repository }}:{{ .Values.image.blob.tag }}"
args:
- "--v={{ .Values.controller.logLevel }}"
- "--endpoint=$(CSI_ENDPOINT)"
- "--metrics-address=0.0.0.0:{{ .Values.controller.metricsPort }}"
ports:
- containerPort: 29632
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: AZURE_CREDENTIAL_FILE
valueFrom:
configMapKeyRef:
name: azure-cred-file
key: path
optional: true
- name: CSI_ENDPOINT
value: unix:///csi/csi.sock
{{- if eq .Values.cloud "AzureStackCloud" }}
- name: AZURE_ENVIRONMENT_FILEPATH
value: /etc/kubernetes/azurestackcloud.json
{{- end }}
imagePullPolicy: {{ .Values.image.blob.pullPolicy }}
volumeMounts:
- mountPath: /csi
name: socket-dir
- mountPath: /etc/kubernetes/
name: azure-cred
- mountPath: /var/lib/waagent/ManagedIdentity-Settings
readOnly: true
name: msi
{{- if eq .Values.cloud "AzureStackCloud" }}
- name: ssl
mountPath: /etc/ssl/certs
readOnly: true
{{- end }}
resources: {{- toYaml .Values.controller.resources.blob | nindent 12 }}
- name: csi-resizer
image: "{{ .Values.image.csiResizer.repository }}:{{ .Values.image.csiResizer.tag }}"
args:
- "-csi-address=$(ADDRESS)"
- "-v=2"
- "-leader-election"
- '-handle-volume-inuse-error=false'
env:
- name: ADDRESS
value: /csi/csi.sock
imagePullPolicy: {{ .Values.image.csiResizer.pullPolicy }}
volumeMounts:
- name: socket-dir
mountPath: /csi
resources: {{- toYaml .Values.controller.resources.csiResizer | nindent 12 }}
volumes:
- name: socket-dir
emptyDir: {}
- name: azure-cred
hostPath:
path: /etc/kubernetes/
type: Directory
- name: msi
hostPath:
path: /var/lib/waagent/ManagedIdentity-Settings
{{- if eq .Values.cloud "AzureStackCloud" }}
- name: ssl
hostPath:
path: /etc/ssl/certs
{{- end }}
{{- if .Values.securityContext }}
securityContext: {{- toYaml .Values.securityContext | nindent 8 }}
{{- end }}
8 changes: 8 additions & 0 deletions charts/v1.1.0/blob-csi-driver/templates/csi-blob-driver.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
apiVersion: storage.k8s.io/v1beta1
kind: CSIDriver
metadata:
name: blob.csi.azure.com
spec:
attachRequired: false
podInfoOnMount: true
Loading

0 comments on commit 8b7b256

Please sign in to comment.