Skip to content

Commit

Permalink
Merge pull request #8 from defenseunicorns/7-zarf-variable-replacment
Browse files Browse the repository at this point in the history
9: Add quotes around Zarf vars in values file for chart
  • Loading branch information
justinthelaw authored Jan 11, 2024
2 parents 56da6cf + 49fb004 commit 84d2d0d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
4 changes: 2 additions & 2 deletions chart/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: ###ZARF_CONST_NAME###-configmap
name: "###ZARF_CONST_NAME###-configmap"
namespace: leapfrogai
labels:
leapfrogai: sparkle
Expand All @@ -11,4 +11,4 @@ data:
owned_by = 'Defense Unicorns'
backend = '{{ include "chart.fullname" . }}:50051'
type = 'gRPC'
name = '###ZARF_CONST_NAME###'
name = '###ZARF_CONST_NAME###'
12 changes: 6 additions & 6 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions zarf.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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###"

0 comments on commit 84d2d0d

Please sign in to comment.