-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Centralize all images to one place * Use latest CSI sidecars and default container to driver * Add default annotation * Use bleeding edge helm validation action to workaround cosign issue
- Loading branch information
Showing
5 changed files
with
61 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,10 @@ | ||
{{/* | ||
Return the appropriate sidecar images based on k8s version | ||
*/}} | ||
{{- define "csi-vxflexos.attacherImage" -}} | ||
{{- if eq .Capabilities.KubeVersion.Major "1" }} | ||
{{- if and (ge (trimSuffix "+" .Capabilities.KubeVersion.Minor) "21") (le (trimSuffix "+" .Capabilities.KubeVersion.Minor) "28") -}} | ||
{{- print "registry.k8s.io/sig-storage/csi-attacher:v4.4.1" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{- define "csi-vxflexos.provisionerImage" -}} | ||
{{- if eq .Capabilities.KubeVersion.Major "1" }} | ||
{{- if and (ge (trimSuffix "+" .Capabilities.KubeVersion.Minor) "21") (le (trimSuffix "+" .Capabilities.KubeVersion.Minor) "28") -}} | ||
{{- print "registry.k8s.io/sig-storage/csi-provisioner:v3.6.0" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{- define "csi-vxflexos.snapshotterImage" -}} | ||
{{- if eq .Capabilities.KubeVersion.Major "1" }} | ||
{{- if and (ge (trimSuffix "+" .Capabilities.KubeVersion.Minor) "21") (le (trimSuffix "+" .Capabilities.KubeVersion.Minor) "28") -}} | ||
{{- print "registry.k8s.io/sig-storage/csi-snapshotter:v6.3.0" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{- define "csi-vxflexos.resizerImage" -}} | ||
{{- if eq .Capabilities.KubeVersion.Major "1" }} | ||
{{- if and (ge (trimSuffix "+" .Capabilities.KubeVersion.Minor) "21") (le (trimSuffix "+" .Capabilities.KubeVersion.Minor) "28") -}} | ||
{{- print "registry.k8s.io/sig-storage/csi-resizer:v1.9.0" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{- define "csi-vxflexos.registrarImage" -}} | ||
{{- if eq .Capabilities.KubeVersion.Major "1" }} | ||
{{- if and (ge (trimSuffix "+" .Capabilities.KubeVersion.Minor) "21") (le (trimSuffix "+" .Capabilities.KubeVersion.Minor) "28") -}} | ||
{{- print "registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.9.0" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{- define "csi-vxflexos.healthmonitorImage" -}} | ||
{{- if eq .Capabilities.KubeVersion.Major "1" }} | ||
{{- if and (ge (trimSuffix "+" .Capabilities.KubeVersion.Minor) "21") (le (trimSuffix "+" .Capabilities.KubeVersion.Minor) "28") -}} | ||
{{- print "registry.k8s.io/sig-storage/csi-external-health-monitor-controller:v0.10.0" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Return true if storage capacity tracking is enabled and is supported based on k8s version | ||
*/}} | ||
{{- define "csi-vxflexos.isStorageCapacitySupported" -}} | ||
{{- if eq .Values.storageCapacity.enabled true -}} | ||
{{- if and (eq .Capabilities.KubeVersion.Major "1") (ge (trimSuffix "+" .Capabilities.KubeVersion.Minor) "24") -}} | ||
{{- true -}} | ||
{{- if eq .Values.storageCapacity.enabled true -}} | ||
{{- if and (eq .Capabilities.KubeVersion.Major "1") (ge (trimSuffix "+" .Capabilities.KubeVersion.Minor) "24") -}} | ||
{{- true -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters