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:
Matthias Neugebauer 2021-04-25 00:05:30 +02:00 committed by mergify[bot]
parent e005099549
commit 3505731c42
4 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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"]

View File

@ -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 }}"

View File

@ -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