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

feat: add chart config value enableRegistrationProbe #1217

Merged
merged 2 commits into from
Apr 11, 2023
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
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ BUILD_DATE ?= $(shell date -u +"%Y-%m-%dT%H:%M:%SZ")
LDFLAGS ?= "-X ${PKG}/pkg/azurefile.driverVersion=${IMAGE_VERSION} -X ${PKG}/pkg/azurefile.gitCommit=${GIT_COMMIT} -X ${PKG}/pkg/azurefile.buildDate=${BUILD_DATE} -s -w -extldflags '-static'"
E2E_HELM_OPTIONS ?= --set image.azurefile.repository=$(REGISTRY)/$(IMAGE_NAME) --set image.azurefile.tag=$(IMAGE_VERSION) --set linux.dnsPolicy=ClusterFirstWithHostNet --set driver.userAgentSuffix="e2e-test"
E2E_HELM_OPTIONS += ${EXTRA_HELM_OPTIONS}
ifdef KUBERNETES_VERSION # disable kubelet-registration-probe on capz cluster testing
E2E_HELM_OPTIONS += --set linux.enableRegistrationProbe=false --set windows.enableRegistrationProbe=false
endif
GINKGO_FLAGS = -ginkgo.v
GO111MODULE = on
GOPATH ?= $(shell go env GOPATH)
Expand Down
2 changes: 2 additions & 0 deletions charts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ The following table lists the configurable parameters of the latest Azure File C
| `linux.kubeconfig` | configure kubeconfig path on Linux agent node | '' (empty, use InClusterConfig by default) |
| `linux.distro` | configure ssl certificates for different Linux distribution(available values: `debian`, `fedora`) |
| `linux.mountPermissions` | mounted folder permissions | `0777`
| `linux.enableRegistrationProbe` | enable [kubelet-registration-probe](https://github.com/kubernetes-csi/node-driver-registrar#health-check-with-an-exec-probe) on Linux driver config | `true`
| `linux.tolerations` | linux node driver tolerations |
| `linux.affinity` | linux node pod affinity | `{}` |
| `linux.nodeSelector` | linux node pod node selector | `{}` |
Expand All @@ -167,6 +168,7 @@ The following table lists the configurable parameters of the latest Azure File C
| `windows.dsName` | name of driver daemonset on windows |`csi-azurefile-node-win` |
| `windows.kubelet` | configure kubelet directory path on Windows agent node | `'C:\var\lib\kubelet'` |
| `windows.kubeconfig` | configure kubeconfig path on Windows agent node | `'C:\k\config'` |
| `windows.enableRegistrationProbe` | enable [kubelet-registration-probe](https://github.com/kubernetes-csi/node-driver-registrar#health-check-with-an-exec-probe) on windows driver config | `true`
| `windows.tolerations` | windows node driver tolerations | |
| `windows.affinity` | windows node pod affinity | `{}` |
| `windows.nodeSelector` | windows node pod node selector | `{}` |
Expand Down
Binary file modified charts/latest/azurefile-csi-driver-v0.0.0.tgz
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ spec:
- "--csi-address=$(CSI_ENDPOINT)"
- "--kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)"
- "--v=2"
{{- if .Values.windows.enableRegistrationProbe }}
livenessProbe:
exec:
command:
Expand All @@ -98,6 +99,7 @@ spec:
- --mode=kubelet-registration-probe
initialDelaySeconds: 60
timeoutSeconds: 30
{{- end }}
env:
- name: CSI_ENDPOINT
value: unix://C:\\csi\\csi.sock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ spec:
- --csi-address=$(ADDRESS)
- --kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)
- --v=2
{{- if .Values.linux.enableRegistrationProbe }}
livenessProbe:
exec:
command:
Expand All @@ -97,6 +98,7 @@ spec:
- --mode=kubelet-registration-probe
initialDelaySeconds: 30
timeoutSeconds: 15
{{- end }}
env:
- name: ADDRESS
value: /csi/csi.sock
Expand Down
2 changes: 2 additions & 0 deletions charts/latest/azurefile-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ linux:
kubeconfig: ""
distro: debian # available values: debian, fedora
mountPermissions: 0777
enableRegistrationProbe: true
labels: {}
annotations: {}
podLabels: {}
Expand Down Expand Up @@ -214,6 +215,7 @@ windows:
dsName: csi-azurefile-node-win # daemonset name
kubelet: 'C:\var\lib\kubelet'
kubeconfig: ""
enableRegistrationProbe: true
labels: {}
annotations: {}
podLabels: {}
Expand Down