Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix api version instead of using helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnuttinck committed Dec 6, 2019
1 parent b685225 commit 3f77463
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
11 changes: 0 additions & 11 deletions templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion templates/statefulset.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: {{ template "apache-nifi.statefulset.apiVersion" . }}
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: {{ template "apache-nifi.fullname" . }}
Expand Down

0 comments on commit 3f77463

Please sign in to comment.