Commit 18086737 authored by Kris Moore's avatar Kris Moore

Get rid of some unneeded API version checks, remove extraArgs which we

ended up not using
parent 1ed68b60
...@@ -35,23 +35,15 @@ Create chart name and version as used by the chart label. ...@@ -35,23 +35,15 @@ Create chart name and version as used by the chart label.
Return the appropriate apiVersion for deployment. Return the appropriate apiVersion for deployment.
*/}} */}}
{{- define "ipfs.deployment.apiVersion" -}} {{- define "ipfs.deployment.apiVersion" -}}
{{- if semverCompare "<1.9-0" .Capabilities.KubeVersion.Version -}}
{{- print "apps/v1beta2" -}}
{{- else -}}
{{- print "apps/v1" -}} {{- print "apps/v1" -}}
{{- end -}} {{- end -}}
{{- end -}}
{{/* {{/*
Return the appropriate apiVersion for statefulset. Return the appropriate apiVersion for statefulset.
*/}} */}}
{{- define "ipfs.statefulset.apiVersion" -}} {{- define "ipfs.statefulset.apiVersion" -}}
{{- if semverCompare "<1.17-0" .Capabilities.KubeVersion.Version -}}
{{- print "apps/v1beta2" -}}
{{- else -}}
{{- print "apps/v1" -}} {{- print "apps/v1" -}}
{{- end -}} {{- end -}}
{{- end -}}
{{/* {{/*
Determine secret name. Determine secret name.
...@@ -73,12 +65,3 @@ Determine name for scc role and rolebinding ...@@ -73,12 +65,3 @@ Determine name for scc role and rolebinding
{{- define "ipfs.sccRoleName" -}} {{- define "ipfs.sccRoleName" -}}
{{- printf "%s-%s" "scc" (include "ipfs.fullname" .) | trunc 63 | trimSuffix "-" -}} {{- printf "%s-%s" "scc" (include "ipfs.fullname" .) | trunc 63 | trimSuffix "-" -}}
{{- end -}} {{- end -}}
{{/*
Properly format optional additional arguments to IPFS binary
*/}}
{{- define "ipfs.extraArgs" -}}
{{- range .Values.extraArgs -}}
{{ " " }}{{ . }}
{{- end -}}
{{- end -}}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment