From 348b9d6e4cad113a31afc3352fd002dff1966519 Mon Sep 17 00:00:00 2001 From: James Elliott Date: Fri, 9 Jul 2021 22:00:46 +1000 Subject: [PATCH] fix(authelia): correct hasPrefix order (#82) --- charts/authelia/Chart.yaml | 2 +- charts/authelia/templates/_helpers.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/authelia/Chart.yaml b/charts/authelia/Chart.yaml index d7e5b1c..44abf67 100644 --- a/charts/authelia/Chart.yaml +++ b/charts/authelia/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: authelia -version: 0.4.15 +version: 0.4.16 kubeVersion: ">= 1.13.0-0" description: Authelia is a Single Sign-On Multi-Factor portal for web apps type: application diff --git a/charts/authelia/templates/_helpers.tpl b/charts/authelia/templates/_helpers.tpl index 8ee1bf3..2b9b6b0 100644 --- a/charts/authelia/templates/_helpers.tpl +++ b/charts/authelia/templates/_helpers.tpl @@ -5,7 +5,7 @@ Return the proper image name {{- $registryName := default "docker.io" .Values.image.registry -}} {{- $repositoryName := default "authelia/authelia" .Values.image.repository -}} {{- $tag := default .Chart.AppVersion .Values.image.tag | toString -}} - {{- if hasPrefix $tag "sha256:" }} + {{- if hasPrefix "sha256:" $tag }} {{- printf "%s/%s@%s" $registryName $repositoryName $tag -}} {{- else -}} {{- printf "%s/%s:%s" $registryName $repositoryName $tag -}}