From 18086737bd316aab5b60d67dccb870ccf2351cd9 Mon Sep 17 00:00:00 2001 From: Kris Moore Date: Mon, 25 Jan 2021 09:13:49 -0500 Subject: [PATCH] Get rid of some unneeded API version checks, remove extraArgs which we ended up not using --- charts/ipfs/1.0.0/templates/_helpers.tpl | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/charts/ipfs/1.0.0/templates/_helpers.tpl b/charts/ipfs/1.0.0/templates/_helpers.tpl index 800e260911..3324203697 100644 --- a/charts/ipfs/1.0.0/templates/_helpers.tpl +++ b/charts/ipfs/1.0.0/templates/_helpers.tpl @@ -35,23 +35,15 @@ Create chart name and version as used by the chart label. Return the appropriate apiVersion for deployment. */}} {{- define "ipfs.deployment.apiVersion" -}} -{{- if semverCompare "<1.9-0" .Capabilities.KubeVersion.Version -}} -{{- print "apps/v1beta2" -}} -{{- else -}} {{- print "apps/v1" -}} {{- end -}} -{{- end -}} {{/* Return the appropriate apiVersion for statefulset. */}} {{- define "ipfs.statefulset.apiVersion" -}} -{{- if semverCompare "<1.17-0" .Capabilities.KubeVersion.Version -}} -{{- print "apps/v1beta2" -}} -{{- else -}} {{- print "apps/v1" -}} {{- end -}} -{{- end -}} {{/* Determine secret name. @@ -73,12 +65,3 @@ Determine name for scc role and rolebinding {{- define "ipfs.sccRoleName" -}} {{- printf "%s-%s" "scc" (include "ipfs.fullname" .) | trunc 63 | trimSuffix "-" -}} {{- end -}} - -{{/* -Properly format optional additional arguments to IPFS binary -*/}} -{{- define "ipfs.extraArgs" -}} -{{- range .Values.extraArgs -}} -{{ " " }}{{ . }} -{{- end -}} -{{- end -}}