From 8b9644e60208665be4e193cacbd1c45e40c0b65b Mon Sep 17 00:00:00 2001 From: Matheus Moraes Date: Thu, 26 Sep 2024 17:24:46 -0300 Subject: [PATCH] fix tokenrefresh helm templates (#312) --- charts/zora/templates/tokenrefresh/deployment.yaml | 5 +++-- charts/zora/templates/tokenrefresh/rbac.yaml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/charts/zora/templates/tokenrefresh/deployment.yaml b/charts/zora/templates/tokenrefresh/deployment.yaml index b82781e2..01fb1f1b 100644 --- a/charts/zora/templates/tokenrefresh/deployment.yaml +++ b/charts/zora/templates/tokenrefresh/deployment.yaml @@ -11,9 +11,10 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -{{- if .Values.saas.workspaceID -}} + +{{ if .Values.saas.workspaceID -}} {{ $secretName := (include "zora.saasTokenSecretName" .) -}} -{{- $existingSecret := lookup "v1" "Secret" .Release.Namespace $secretName -}} +{{ $existingSecret := lookup "v1" "Secret" .Release.Namespace $secretName -}} apiVersion: v1 kind: Secret metadata: diff --git a/charts/zora/templates/tokenrefresh/rbac.yaml b/charts/zora/templates/tokenrefresh/rbac.yaml index a17482ce..c4b9ab42 100644 --- a/charts/zora/templates/tokenrefresh/rbac.yaml +++ b/charts/zora/templates/tokenrefresh/rbac.yaml @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -{{- if .Values.saas.workspaceID -}} +{{ if .Values.saas.workspaceID -}} {{ if .Values.tokenRefresh.rbac.serviceAccount.create -}} apiVersion: v1 kind: ServiceAccount