fix: correctly pull the deployment id from an app's helm values when executing dokku run under the k3s scheduler

- Fix the internal identifier of deployment_id -> deployment_id
- Add tests for both enter and run.
This commit is contained in:
Jose Diaz-Gonzalez committed 2024-11-04 14:44:25 -05:00
1 parent ef061ef32b
commit fd2cfe8080
10 files changed
+35 -18

No files matched your search

@@ -6,7 +6,7 @@ apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
annotations:
app.kubernetes.io/version: {{ $.Values.global.deploment_id | quote }}
app.kubernetes.io/version: {{ $.Values.global.deployment_id | quote }}
dokku.com/managed: "true"
{{ include "print.annotations" (dict "config" $.Values.global "key" "keda_scaled_object") | indent 4 }}
{{ include "print.annotations" (dict "config" $config "key" "keda_scaled_object") | indent 4 }}