From a4f3e4128a0db2da5eeca1849f06b29d8fac1e1b Mon Sep 17 00:00:00 2001 From: Mourad Date: Thu, 10 May 2018 00:22:54 +0200 Subject: [PATCH] [stable/nfs-server-provisioner] Fix error related to `printf` in helpers (#5376) * Fix error related to `printf` in helpers Error: render error in "../charts/nfs-server-provisioner/templates/storageclass.yaml": template: ../charts/nfs-server-provisioner/templates/_helpers.tpl:39:4: executing "nfs-provisioner.provisionerName" at : wrong number of args for printf: want at least 1 got 0 * Bump version to 0.1.3 --- stable/nfs-server-provisioner/Chart.yaml | 2 +- stable/nfs-server-provisioner/templates/_helpers.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stable/nfs-server-provisioner/Chart.yaml b/stable/nfs-server-provisioner/Chart.yaml index d5487a49c5..9294fdc435 100644 --- a/stable/nfs-server-provisioner/Chart.yaml +++ b/stable/nfs-server-provisioner/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: 1.0.8 description: nfs-server-provisioner is an out-of-tree dynamic provisioner for Kubernetes. You can use it to quickly & easily deploy shared storage that works almost anywhere. name: nfs-server-provisioner -version: 0.1.2 +version: 0.1.3 maintainers: - name: kiall email: kiall@macinnes.ie diff --git a/stable/nfs-server-provisioner/templates/_helpers.tpl b/stable/nfs-server-provisioner/templates/_helpers.tpl index 42c75e43f0..cdc13bfa41 100644 --- a/stable/nfs-server-provisioner/templates/_helpers.tpl +++ b/stable/nfs-server-provisioner/templates/_helpers.tpl @@ -36,7 +36,7 @@ Create chart name and version as used by the chart label. */}} {{- define "nfs-provisioner.provisionerName" -}} {{- if .Values.storageClass.provisionerName -}} -{{- printf.Values.storageClass.provisionerName -}} +{{- printf .Values.storageClass.provisionerName -}} {{- else -}} cluster.local/{{ template "nfs-provisioner.fullname" . -}} {{- end -}}