Files
dokku/plugins/scheduler-k3s/templates/chart/keda-cluster-trigger-authentication.yaml
T
Jose Diaz-Gonzalez c0f01c58d6 feat: add initial support for interacting with ClusterTriggerAuthentication objects
These will be provisioned to the keda namespace and referenced by Triggers if they exist (as a fallback to app-specific values).
2024-03-06 03:39:11 -05:00

27 lines
848 B
YAML

{{- if .Capabilities.APIVersions.Has "keda.sh/v1alpha1" -}}
---
apiVersion: keda.sh/v1alpha1
kind: ClusterTriggerAuthentication
metadata:
annotations:
app.kubernetes.io/version: {{ $.Values.global.deploment_id | quote }}
dokku.com/managed: "true"
{{- if and $.Values.global.annotations $.Values.global.annotations.keda_trigger_authentication }}
{{- range $k, $v := $.Values.global.annotations.keda_trigger_authentication }}
{{ $k }}: {{ $v | quote }}
{{- end }}
{{- end }}
labels:
app.kubernetes.io/instance: {{ $.Values.type }}
app.kubernetes.io/name: {{ $.Values.type }}
app.kubernetes.io/part-of: cluster
name: {{ $.Values.type }}
spec:
secretTargetRef:
{{- range $k, $v := $.Values.secrets }}
- key: {{ $k }}
name: ckta-{{ $.Values.type }}
parameter: {{ $k }}
{{- end }}
{{- end }}