Skip to content

Commit

Permalink
update sidecars (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobGros authored Aug 30, 2022
1 parent 66a06c1 commit 0725183
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions helm/csi-vxflexos/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,31 @@ 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) "24") -}}
{{- print "k8s.gcr.io/sig-storage/csi-attacher:v3.4.0" -}}
{{- print "k8s.gcr.io/sig-storage/csi-attacher:v3.5.0" -}}
{{- 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) "24") -}}
{{- print "k8s.gcr.io/sig-storage/csi-provisioner:v3.1.0" -}}
{{- print "k8s.gcr.io/sig-storage/csi-provisioner:v3.2.1" -}}
{{- 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) "24") -}}
{{- print "k8s.gcr.io/sig-storage/csi-snapshotter:v5.0.1" -}}
{{- print "k8s.gcr.io/sig-storage/csi-snapshotter:v6.0.1" -}}
{{- 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) "24") -}}
{{- print "k8s.gcr.io/sig-storage/csi-resizer:v1.4.0" -}}
{{- print "k8s.gcr.io/sig-storage/csi-resizer:v1.5.0" -}}
{{- end -}}
{{- end -}}
{{- end -}}
Expand All @@ -44,7 +44,7 @@ Return the appropriate sidecar images based on k8s version
{{- define "csi-vxflexos.healthmonitorImage" -}}
{{- if eq .Capabilities.KubeVersion.Major "1" }}
{{- if and (ge (trimSuffix "+" .Capabilities.KubeVersion.Minor) "21") (le (trimSuffix "+" .Capabilities.KubeVersion.Minor) "24") -}}
{{- print "gcr.io/k8s-staging-sig-storage/csi-external-health-monitor-controller:v0.5.0" -}}
{{- print "gcr.io/k8s-staging-sig-storage/csi-external-health-monitor-controller:v0.6.0" -}}
{{- end -}}
{{- end -}}
{{- end -}}

0 comments on commit 0725183

Please sign in to comment.