From 97c4ef09d91f837426080b9a4af41952342ca3ef Mon Sep 17 00:00:00 2001 From: Adam Hendel Date: Wed, 2 Oct 2024 09:42:25 -0500 Subject: [PATCH] fix format --- .../tembo-ai/templates/inference-service/serviceaccount.yaml | 4 +++- charts/tembo-ai/templates/inference-service/statefulset.yaml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/charts/tembo-ai/templates/inference-service/serviceaccount.yaml b/charts/tembo-ai/templates/inference-service/serviceaccount.yaml index 96735a19a..981203a6a 100644 --- a/charts/tembo-ai/templates/inference-service/serviceaccount.yaml +++ b/charts/tembo-ai/templates/inference-service/serviceaccount.yaml @@ -9,8 +9,10 @@ metadata: {{- with $service.serviceAccount.annotations }} annotations: {{- toYaml . | nindent 4 }} - {{- else if (index $.Values.inferenceService 0).serviceAccount.annotations }} + {{- end }} + {{- if (index $.Values.inferenceService 0).serviceAccount.annotations }} annotations: {{- toYaml (index $.Values.inferenceService 0).serviceAccount.annotations | nindent 4 }} {{- end }} + {{- end }} {{- end }} diff --git a/charts/tembo-ai/templates/inference-service/statefulset.yaml b/charts/tembo-ai/templates/inference-service/statefulset.yaml index 3fdd631bc..f226b4647 100644 --- a/charts/tembo-ai/templates/inference-service/statefulset.yaml +++ b/charts/tembo-ai/templates/inference-service/statefulset.yaml @@ -1,5 +1,5 @@ {{- range $service := .Values.inferenceService }} - {{- if (default false $service.statefulSet.enabled) }} + {{- if (and $service.statefulSet (default false $service.statefulSet.enabled)) }} apiVersion: apps/v1 kind: StatefulSet metadata: