Skip to content

Commit

Permalink
feat: add snapshot GA version
Browse files Browse the repository at this point in the history
run snapshot GA version in external tests

fixed script

export
  • Loading branch information
andyzhangx committed Jun 7, 2021
1 parent 9240e8c commit 60ab66b
Show file tree
Hide file tree
Showing 7 changed files with 639 additions and 4 deletions.
Binary file modified charts/latest/azurefile-csi-driver-v1.4.0.tgz
Binary file not shown.
632 changes: 632 additions & 0 deletions charts/latest/azurefile-csi-driver/templates/crd-csi-snapshot-ga.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if .Values.snapshot.enabled -}}
{{- if eq .Values.snapshot.apiVersion "beta" }}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
Expand Down Expand Up @@ -500,3 +501,4 @@ status:
conditions: []
storedVersions: []
{{- end -}}
{{- end -}}
3 changes: 2 additions & 1 deletion charts/latest/azurefile-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ node:

snapshot:
enabled: false
apiVersion: beta # available values: beta, ga
image:
csiSnapshotter:
repository: mcr.microsoft.com/oss/kubernetes-csi/csi-snapshotter
Expand All @@ -72,7 +73,7 @@ linux:
enabled: true
kubelet: /var/lib/kubelet
kubeconfig: ""
distro: debian
distro: debian # available values: debian, fedora

windows:
enabled: true
Expand Down
2 changes: 1 addition & 1 deletion test/external-e2e/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ setup_e2e_binaries() {
# enable fsGroupPolicy (only available from k8s 1.20)
export EXTRA_HELM_OPTIONS="--set feature.enableFSGroupPolicy=true"
fi
# install the blob csi driver
export EXTRA_HELM_OPTIONS="${EXTRA_HELM_OPTIONS} --set snapshot.image.csiSnapshotter.tag=v4.0.0 --set snapshot.image.csiSnapshotController.tag=v4.0.0 --set snapshot.apiVersion=ga"
make e2e-bootstrap
make create-metrics-svc
}
Expand Down
2 changes: 1 addition & 1 deletion test/external-e2e/testdriver-nfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ DriverInfo:
controllerExpansion: true
nodeExpansion: true
volumeLimits: false
snapshotDataSource: false
snapshotDataSource: true
2 changes: 1 addition & 1 deletion test/external-e2e/testdriver-smb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ DriverInfo:
controllerExpansion: true
nodeExpansion: true
volumeLimits: false
snapshotDataSource: false
snapshotDataSource: true

0 comments on commit 60ab66b

Please # to comment.