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

Commit

Permalink
update helpers.tpl
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnuttinck committed Oct 16, 2019
1 parent def1118 commit 20ff641
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ Create chart name and version as used by the chart label.
{{/*
Return the appropriate apiVersion for deployment.
*/}}
{{- define "apache-nifi.statefulset.apiVersion" -}}
{{- define "apache-nifi.statefulset.apiVersion" }}
{{- if semverCompare "<1.9-0" .Capabilities.KubeVersion.GitVersion -}}
{{- print "apps/v1beta2" -}}
{{- print "apps/v1beta2" }}
{{- else if semverCompare "^1.9-0" .Capabilities.KubeVersion.GitVersion -}}
{{- print "apps/v1" -}}
{{- print "apps/v1" }}
{{- end -}}
{{- end -}}

Expand Down

0 comments on commit 20ff641

Please sign in to comment.