Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azuredisk: bump version to 0.5.0 #394

Merged
merged 5 commits into from
Feb 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions stable/azuredisk-csi-driver/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
apiVersion: v1
appVersion: 0.4.0
appVersion: 0.5.0
description: Azure disk Container Storage Interface (CSI) Storage Plugin
name: azuredisk-csi-driver
maintainers:
- name: sebbrandt87
version: 0.4.0
version: 0.5.0
kubeVersion: ">=1.15.0"
home: https://github.com/kubernetes-sigs/azuredisk-csi-driver
sources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ spec:
priorityClassName: system-cluster-critical
containers:
- name: csi-provisioner
image: quay.io/k8scsi/csi-provisioner:v1.4.0
image: "{{ .Values.image.csiProvisioner.repository }}:{{ .Values.image.csiProvisioner.tag }}"
args:
- --provisioner=disk.csi.azure.com
- --csi-address=$(ADDRESS)
- --timeout=30s
- --timeout=120s
- --retry-interval-start=1s
- --retry-interval-max=5m
- --worker-threads=100
Expand All @@ -32,6 +33,7 @@ spec:
{{- end}}
- --enable-leader-election
- --leader-election-type=leases
- --v=5
env:
- name: ADDRESS
value: /csi/csi.sock
Expand All @@ -40,14 +42,16 @@ spec:
- mountPath: /csi
name: socket-dir
- name: csi-attacher
image: quay.io/k8scsi/csi-attacher:v2.0.0
image: "{{ .Values.image.csiAttacher.repository }}:{{ .Values.image.csiAttacher.tag }}"
args:
- --v=5
- --csi-address=$(ADDRESS)
- --timeout=120s
- --retry-interval-start=1s
- --retry-interval-max=5m
- --worker-threads=20
- -leader-election
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't it need to be double-dash ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will ignore the inconsistency of the also in upstream existing arguments 🤣 ... for now 😉

- -leader-election-type=leases
env:
- name: ADDRESS
value: /csi/csi.sock
Expand All @@ -56,7 +60,7 @@ spec:
- mountPath: /csi
name: socket-dir
- name: cluster-driver-registrar
image: quay.io/k8scsi/csi-cluster-driver-registrar:v1.0.1
image: "{{ .Values.image.clusterDriverRegistrar.repository }}:{{ .Values.image.clusterDriverRegistrar.tag }}"
args:
- --csi-address=$(ADDRESS)
- --driver-requires-attachment=true
Expand All @@ -68,17 +72,30 @@ spec:
- name: socket-dir
mountPath: /csi
- name: csi-snapshotter
image: quay.io/k8scsi/csi-snapshotter:v1.2.2
image: "{{ .Values.image.csiSnapshotter.repository }}:{{ .Values.image.csiSnapshotter.tag }}"
args:
- --csi-address=$(ADDRESS)
- -leader-election
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't it need to be double-dash ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will ignore the inconsistency of the also in upstream existing arguments 🤣 ... for now 😉

env:
- name: ADDRESS
value: /csi/csi.sock
volumeMounts:
- name: socket-dir
mountPath: /csi
- name: csi-resizer
image: "{{ .Values.image.csiResizer.repository }}:{{ .Values.image.csiResizer.tag }}"
args:
- -csi-address=$(ADDRESS)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't it need to be double-dash ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will ignore the inconsistency of the also in upstream existing arguments 🤣 ... for now 😉

- -v=5
- -leader-election
env:
- name: ADDRESS
value: /csi/csi.sock
volumeMounts:
- name: socket-dir
mountPath: /csi
- name: liveness-probe
image: quay.io/k8scsi/livenessprobe:v1.1.0
image: "{{ .Values.image.livenessProbe.repository }}:{{ .Values.image.livenessProbe.tag }}"
args:
- --csi-address=/csi/csi.sock
- --connection-timeout=3s
Expand All @@ -87,11 +104,11 @@ spec:
- name: socket-dir
mountPath: /csi
- name: azuredisk
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
hectorj2f marked this conversation as resolved.
Show resolved Hide resolved
image: "{{ .Values.image.azuredisk.repository }}:{{ .Values.image.azuredisk.tag }}"
args:
- "--v=5"
- "--endpoint=$(CSI_ENDPOINT)"
- "--nodeid=$(KUBE_NODE_NAME)"
- --v=5
- --endpoint=$(CSI_ENDPOINT)
- --nodeid=$(KUBE_NODE_NAME)
ports:
- containerPort: 9602
name: healthz
Expand Down
16 changes: 10 additions & 6 deletions stable/azuredisk-csi-driver/templates/csi-azuredisk-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,24 @@ spec:
hostNetwork: true
nodeSelector:
beta.kubernetes.io/os: linux
{{- if .Values.azuredisk.node.tolerations }}
tolerations:
{{ toYaml .Values.azuredisk.node.tolerations | indent 8 }}
{{- end }}
priorityClassName: system-node-critical
containers:
- name: liveness-probe
imagePullPolicy: Always
volumeMounts:
- mountPath: /csi
name: socket-dir
image: quay.io/k8scsi/livenessprobe:v1.1.0
image: "{{ .Values.image.livenessProbe.repository }}:{{ .Values.image.livenessProbe.tag }}"
args:
- --csi-address=/csi/csi.sock
- --connection-timeout=3s
- --health-port=9602
- name: node-driver-registrar
image: quay.io/k8scsi/csi-node-driver-registrar:v1.2.0
image: "{{ .Values.image.nodeDriverRegistrar.repository }}:{{ .Values.image.nodeDriverRegistrar.tag }}"
args:
- --csi-address=$(ADDRESS)
- --kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)
Expand All @@ -49,11 +53,11 @@ spec:
- name: registration-dir
mountPath: /registration
- name: azuredisk
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
image: "{{ .Values.image.azuredisk.repository }}:{{ .Values.image.azuredisk.tag }}"
args:
- "--v=5"
- "--endpoint=$(CSI_ENDPOINT)"
- "--nodeid=$(KUBE_NODE_NAME)"
- --v=5
- --endpoint=$(CSI_ENDPOINT)
- --nodeid=$(KUBE_NODE_NAME)
ports:
- containerPort: 9602
name: healthz
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ rules:
verbs: ["get", "list", "watch"]
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["get", "watch", "list", "delete", "update", "create"]
verbs: ["get", "watch", "list", "delete", "update", "create", "patch"]

---

Expand Down Expand Up @@ -166,4 +166,40 @@ roleRef:
kind: ClusterRole
name: azuredisk-external-snapshotter-role
apiGroup: rbac.authorization.k8s.io

---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: azuredisk-external-resizer-role
namespace: {{ .Release.Namespace }}
{{ include "azuredisk.labels" . | indent 2 }}
rules:
- apiGroups: [""]
resources: ["persistentvolumes"]
verbs: ["get", "list", "watch", "update", "patch"]
- apiGroups: [""]
resources: ["persistentvolumeclaims"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["persistentvolumeclaims/status"]
verbs: ["update", "patch"]
- apiGroups: [""]
resources: ["events"]
verbs: ["list", "watch", "create", "update", "patch"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: azuredisk-csi-resizer-role
namespace: {{ .Release.Namespace }}
{{ include "azuredisk.labels" . | indent 2 }}
subjects:
- kind: ServiceAccount
name: csi-azuredisk-controller-sa
namespace: {{ .Release.Namespace }}
roleRef:
kind: ClusterRole
name: azuredisk-external-resizer-role
apiGroup: rbac.authorization.k8s.io
{{ end }}
48 changes: 45 additions & 3 deletions stable/azuredisk-csi-driver/values.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,57 @@
image:
repository: mcr.microsoft.com/k8s/csi/azuredisk-csi
tag: v0.4.0
pullPolicy: Always
azuredisk:
repository: mcr.microsoft.com/k8s/csi/azuredisk-csi
tag: v0.5.0
pullPolicy: Always
csiProvisioner:
hectorj2f marked this conversation as resolved.
Show resolved Hide resolved
repository: quay.io/k8scsi/csi-provisioner
tag: v1.4.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v1.5.0 got released, but maybe something for the next change

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pullPolicy: Always
csiAttacher:
repository: quay.io/k8scsi/csi-attacher
tag: v1.2.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v2.1.1 got released, but maybe something for the next change

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am aware is using this specific versions, but that is what we believe it is being tested so... that is what we should use

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sebbrandt87 I suggest you next time to follow this repository to perform any upgrade https://github.com/kubernetes-sigs/azuredisk-csi-driver.

well actually I decline, especially if I see bugs popping up in kubernetes version related to the k8scsi released images that are fixed in new versions and still api compatible to csi

pullPolicy: Always
clusterDriverRegistrar:
repository: quay.io/k8scsi/csi-cluster-driver-registrar
tag: v1.0.1
pullPolicy: Always
csiSnapshotter:
repository: quay.io/k8scsi/csi-snapshotter
tag: v1.1.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v2.0.1 got released, but maybe something for the next change

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pullPolicy: Always
csiResizer:
repository: quay.io/k8scsi/csi-resizer
tag: v0.3.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v0.4.0 got released, but maybe something for the next change

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pullPolicy: Always
livenessProbe:
repository: quay.io/k8scsi/livenessprobe
tag: v1.1.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v2.0.0 got released, but maybe something for the next change

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pullPolicy: Always
nodeDriverRegistrar:
repository: quay.io/k8scsi/csi-node-driver-registrar
tag: v1.1.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v1.2.0 got released, but maybe something for the next change

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pullPolicy: Always

serviceAccount:
create: true

rbac:
create: true

controller:
replicas: 3

# True if enable volume scheduling for dynamic volume provisioning
enableVolumeScheduling: false

cloudConfig: /etc/kubernetes/cloud-config/cloud.conf

azuredisk:
node:
tolerations:
- effect: NoSchedule
operator: Exists
- effect: NoExecute
operator: Exists
- key: CriticalAddonsOnly
operator: Exists