From 49fb004a2a8b13d947d53e3ae48440579b013e59 Mon Sep 17 00:00:00 2001 From: Jon Perry Date: Wed, 10 Jan 2024 19:11:38 -0500 Subject: [PATCH] add quotes around zarf vars in values file for chart zarf vars were not properly templating without the quotes around the var placeholder --- chart/templates/configmap.yaml | 4 ++-- chart/values.yaml | 12 ++++++------ zarf.yaml | 5 ++--- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/chart/templates/configmap.yaml b/chart/templates/configmap.yaml index 4de62f4..418dcb2 100644 --- a/chart/templates/configmap.yaml +++ b/chart/templates/configmap.yaml @@ -1,7 +1,7 @@ apiVersion: v1 kind: ConfigMap metadata: - name: ###ZARF_CONST_NAME###-configmap + name: "###ZARF_CONST_NAME###-configmap" namespace: leapfrogai labels: leapfrogai: sparkle @@ -11,4 +11,4 @@ data: owned_by = 'Defense Unicorns' backend = '{{ include "chart.fullname" . }}:50051' type = 'gRPC' - name = '###ZARF_CONST_NAME###' \ No newline at end of file + name = '###ZARF_CONST_NAME###' diff --git a/chart/values.yaml b/chart/values.yaml index 575255a..f38afd0 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -47,13 +47,13 @@ resources: # resources, such as Minikube. If you do want to specify resources, uncomment the following # lines, adjust them as necessary, and remove the curly braces after 'resources:'. limits: - cpu: ###ZARF_VAR_LIMITS_CPU### - memory: ###ZARF_VAR_LIMITS_MEMORY### - nvidia.com/gpu: ###ZARF_VAR_LIMITS_GPUS### + cpu: "###ZARF_VAR_LIMITS_CPU###" + memory: "###ZARF_VAR_LIMITS_MEMORY###" + nvidia.com/gpu: "###ZARF_VAR_LIMITS_GPU###" requests: - cpu: ###ZARF_VAR_REQUESTS_CPU### - memory: ###ZARF_VAR_REQUESTS_MEMORY### - nvidia.com/gpu: ###ZARF_VAR_REQUESTS_GPUS### + cpu: "###ZARF_VAR_REQUESTS_CPU###" + memory: "###ZARF_VAR_REQUESTS_MEMORY###" + nvidia.com/gpu: "###ZARF_VAR_REQUESTS_GPU###" autoscaling: enabled: false diff --git a/zarf.yaml b/zarf.yaml index bcf7886..cafde6f 100644 --- a/zarf.yaml +++ b/zarf.yaml @@ -1,7 +1,7 @@ kind: ZarfPackageConfig metadata: name: leapfrogai-model - version: 0.4.0 + version: 0.4.1 description: > An awesome model to add to LeapfrogAI @@ -38,5 +38,4 @@ components: releaseName: "###ZARF_PKG_TMPL_NAME###-model" version: 0.3.5 images: - - "###ZARF_PKG_TMPL_IMAGE_REPOSITORY###:###ZARF_PKG_TMPL_IMAGE_VERSION###" - + - "###ZARF_PKG_TMPL_IMAGE_REPOSITORY###:###ZARF_PKG_TMPL_IMAGE_VERSION###" \ No newline at end of file