diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl index ea865dc7..d025b8f9 100644 --- a/templates/_helpers.tpl +++ b/templates/_helpers.tpl @@ -31,17 +31,6 @@ Create chart name and version as used by the chart label. {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} {{- end -}} -{{/* -Return the appropriate apiVersion for deployment. -*/}} -{{- define "apache-nifi.statefulset.apiVersion" }} -{{- if semverCompare "<1.9-0" .Capabilities.KubeVersion.GitVersion -}} -{{- print "apps/v1beta2" }} -{{- else if semverCompare "^1.9-0" .Capabilities.KubeVersion.GitVersion -}} -{{- print "apps/v1" }} -{{- end -}} -{{- end -}} - {{/* Form the Zookeeper Server part of the URL. If zookeeper is installed as part of this chart, use k8s service discovery, else use user-provided server name diff --git a/templates/statefulset.yaml b/templates/statefulset.yaml index 851a06f0..a835498b 100644 --- a/templates/statefulset.yaml +++ b/templates/statefulset.yaml @@ -1,5 +1,5 @@ --- -apiVersion: {{ template "apache-nifi.statefulset.apiVersion" . }} +apiVersion: apps/v1 kind: StatefulSet metadata: name: {{ template "apache-nifi.fullname" . }}