mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-17 20:00:23 +00:00
Replace deprecated GitVersion with Version
This replaces the deprecated `GitVersion` with `Version`.
See a499b4b179/pkg/chartutil/capabilities.go (L71-L74)
Signed-off-by: Matthias Neugebauer <matthias.neugebauer@uni-muenster.de>
This commit is contained in:
parent
e005099549
commit
3505731c42
@ -1,4 +1,4 @@
|
||||
{{ if semverCompare ">=1.18" .Capabilities.KubeVersion.GitVersion }}
|
||||
{{ if semverCompare ">=1.18" .Capabilities.KubeVersion.Version }}
|
||||
apiVersion: storage.k8s.io/v1
|
||||
{{ else }}
|
||||
apiVersion: storage.k8s.io/v1betav1
|
||||
|
@ -45,7 +45,7 @@ rules:
|
||||
resources: ["volumeattachments/status"]
|
||||
verbs: ["patch"]
|
||||
{{- end -}}
|
||||
{{- if semverCompare ">=1.15" .Capabilities.KubeVersion.GitVersion -}}
|
||||
{{- if semverCompare ">=1.15" .Capabilities.KubeVersion.Version -}}
|
||||
{{- if .Values.provisioner.resizer.enabled }}
|
||||
- apiGroups: [""]
|
||||
resources: ["persistentvolumeclaims/status"]
|
||||
|
@ -103,7 +103,7 @@ spec:
|
||||
resources:
|
||||
{{ toYaml .Values.nodeplugin.plugin.resources | indent 12 }}
|
||||
{{- end }}
|
||||
{{- if semverCompare ">=1.15" .Capabilities.KubeVersion.GitVersion -}}
|
||||
{{- if semverCompare ">=1.15" .Capabilities.KubeVersion.Version -}}
|
||||
{{- if .Values.provisioner.resizer.enabled }}
|
||||
- name: csi-resizer
|
||||
image: "{{ .Values.provisioner.resizer.image.repository }}:{{ .Values.provisioner.resizer.image.tag }}"
|
||||
|
@ -1,4 +1,4 @@
|
||||
{{ if semverCompare ">=1.18" .Capabilities.KubeVersion.GitVersion }}
|
||||
{{ if semverCompare ">=1.18" .Capabilities.KubeVersion.Version }}
|
||||
apiVersion: storage.k8s.io/v1
|
||||
{{ else }}
|
||||
apiVersion: storage.k8s.io/betav1
|
||||
|
Loading…
Reference in New Issue
Block a user