mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 02:50:30 +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
|
apiVersion: storage.k8s.io/v1
|
||||||
{{ else }}
|
{{ else }}
|
||||||
apiVersion: storage.k8s.io/v1betav1
|
apiVersion: storage.k8s.io/v1betav1
|
||||||
|
@ -45,7 +45,7 @@ rules:
|
|||||||
resources: ["volumeattachments/status"]
|
resources: ["volumeattachments/status"]
|
||||||
verbs: ["patch"]
|
verbs: ["patch"]
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if semverCompare ">=1.15" .Capabilities.KubeVersion.GitVersion -}}
|
{{- if semverCompare ">=1.15" .Capabilities.KubeVersion.Version -}}
|
||||||
{{- if .Values.provisioner.resizer.enabled }}
|
{{- if .Values.provisioner.resizer.enabled }}
|
||||||
- apiGroups: [""]
|
- apiGroups: [""]
|
||||||
resources: ["persistentvolumeclaims/status"]
|
resources: ["persistentvolumeclaims/status"]
|
||||||
|
@ -103,7 +103,7 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
{{ toYaml .Values.nodeplugin.plugin.resources | indent 12 }}
|
{{ toYaml .Values.nodeplugin.plugin.resources | indent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if semverCompare ">=1.15" .Capabilities.KubeVersion.GitVersion -}}
|
{{- if semverCompare ">=1.15" .Capabilities.KubeVersion.Version -}}
|
||||||
{{- if .Values.provisioner.resizer.enabled }}
|
{{- if .Values.provisioner.resizer.enabled }}
|
||||||
- name: csi-resizer
|
- name: csi-resizer
|
||||||
image: "{{ .Values.provisioner.resizer.image.repository }}:{{ .Values.provisioner.resizer.image.tag }}"
|
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
|
apiVersion: storage.k8s.io/v1
|
||||||
{{ else }}
|
{{ else }}
|
||||||
apiVersion: storage.k8s.io/betav1
|
apiVersion: storage.k8s.io/betav1
|
||||||
|
Loading…
Reference in New Issue
Block a user