Files
dokku/plugins/scheduler-k3s/templates/chart/keda-secret.yaml
T
Jose Diaz-Gonzalez fd2cfe8080 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.
2024-11-04 14:44:25 -05:00

24 lines
891 B
YAML

{{- if .Capabilities.APIVersions.Has "keda.sh/v1alpha1" -}}
{{- $config := index .Values.global.keda.authentications "AUTH_NAME" }}
---
apiVersion: v1
kind: Secret
metadata:
annotations:
app.kubernetes.io/version: {{ $.Values.global.deployment_id | quote }}
dokku.com/managed: "true"
{{ include "print.annotations" (dict "config" $.Values.global "key" "keda_secret") | indent 4 }}
labels:
app.kubernetes.io/instance: {{ $.Values.global.app_name }}-{{ $config.type }}
app.kubernetes.io/name: {{ $config.type }}
app.kubernetes.io/part-of: {{ $.Values.global.app_name }}
{{ include "print.labels" (dict "config" $.Values.global "key" "keda_secret") | indent 4 }}
name: kta-{{ $.Values.global.app_name }}-{{ $config.type }}
namespace: {{ $.Values.global.namespace }}
data:
{{- with $config.secrets }}
data:
{{- toYaml . | nindent 2 }}
{{- end }}
{{- end }}