Skip to content

Commit

Permalink
fix: remove extra values in helm rendered template (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
shydefoo authored Oct 12, 2023
1 parent e3aebd3 commit 46d015d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion charts/turing/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ maintainers:
- email: [email protected]
name: caraml-dev
name: turing
version: 0.3.2
version: 0.3.3
2 changes: 1 addition & 1 deletion charts/turing/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# turing

---
![Version: 0.3.2](https://img.shields.io/badge/Version-0.3.2-informational?style=flat-square)
![Version: 0.3.3](https://img.shields.io/badge/Version-0.3.3-informational?style=flat-square)
![AppVersion: 1.14.2](https://img.shields.io/badge/AppVersion-1.14.2-informational?style=flat-square)

Kubernetes-friendly multi-model orchestration and experimentation system.
Expand Down
23 changes: 11 additions & 12 deletions charts/turing/templates/_config.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,31 @@
{{- $rendered := index . 2}}
{{- if $rendered }}
{{- $tag := $rendered.releasedVersion}}
{{- $ensemblerTag := $rendered.ensemblerTag }}
{{- $ensmblerJobPrefix := "ghcr.io/caraml-dev/turing/pyfunc-ensembler-job-py" -}}
{{- $ensemblerTag := default $tag $rendered.ensemblerTag }}
{{- $ensemblerServiceTag := default $ensemblerTag $rendered.ensemblerServiceTag }}
{{- $ensemblerJobPrefix := "ghcr.io/caraml-dev/turing/pyfunc-ensembler-job-py" -}}
{{- $servicePrefix := "ghcr.io/caraml-dev/turing/pyfunc-ensembler-service-py" -}}
# Now we have access to the "real" root and current contexts
# just as if we were outside of include/define:
{{ with index . 1 }}
{{- if $.Values.config.BatchEnsemblingConfig.Enabled }}
BatchEnsemblingConfig:
ImageBuildingConfig:
DestinationRegistry: asia.gcr.io/gods-production/turing/ensemblers
BaseImageRef:
3.7.*: {{ printf "%s%s:%s" $ensmblerJobPrefix "3.7" $ensemblerTag }}
3.8.*: {{ printf "%s%s:%s" $ensmblerJobPrefix "3.8" $ensemblerTag }}
3.9.*: {{printf "%s%s:%s" $ensmblerJobPrefix "3.9" $ensemblerTag }}
3.10.*: {{ printf "%s%s:%s" $ensmblerJobPrefix "3.10" $ensemblerTag }}
3.7.*: {{ printf "%s%s:%s" $ensemblerJobPrefix "3.7" $ensemblerTag }}
3.8.*: {{ printf "%s%s:%s" $ensemblerJobPrefix "3.8" $ensemblerTag }}
3.9.*: {{printf "%s%s:%s" $ensemblerJobPrefix "3.9" $ensemblerTag }}
3.10.*: {{ printf "%s%s:%s" $ensemblerJobPrefix "3.10" $ensemblerTag }}
KanikoConfig:
BuildContextURI: {{ printf "%s/%s" "git://github.com/caraml-dev/turing.git#refs/tags" $tag }}
{{- end }}
EnsemblerServiceBuilderConfig:
ClusterName: products-production
ImageBuildingConfig:
BaseImageRef:
3.7.*: {{ printf "%s%s:%s" $servicePrefix "3.7" $ensemblerTag }}
3.8.*: {{ printf "%s%s:%s" $servicePrefix "3.8" $ensemblerTag }}
3.9.*: {{printf "%s%s:%s" $servicePrefix "3.9" $ensemblerTag }}
3.10.*: {{ printf "%s%s:%s" $servicePrefix "3.10" $ensemblerTag }}
3.7.*: {{ printf "%s%s:%s" $servicePrefix "3.7" $ensemblerServiceTag }}
3.8.*: {{ printf "%s%s:%s" $servicePrefix "3.8" $ensemblerServiceTag }}
3.9.*: {{printf "%s%s:%s" $servicePrefix "3.9" $ensemblerServiceTag }}
3.10.*: {{ printf "%s%s:%s" $servicePrefix "3.10" $ensemblerServiceTag }}
KanikoConfig: &kanikoConfig
BuildContextURI: {{ printf "%s/%s" "git://github.com/caraml-dev/turing.git#refs/tags" $tag }}
RouterDefaults:
Expand Down

0 comments on commit 46d015d

Please sign in to comment.