Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ spec:
metadata:
labels:
{{- include "external-scaler-azure-cosmos-db.labels" . | indent 8 }}
{{- if .Values.podIdentity.azureWorkload.enabled }}
azure.workload.identity/use: "true"
{{- end }}
spec:
containers:
- name: {{ .Chart.Name }}
Expand All @@ -25,3 +28,6 @@ spec:
resources:
{{- .Values.resources | toYaml | nindent 12 }}
terminationGracePeriodSeconds: 10
{{- if .Values.serviceAccount.name }}
serviceAccountName: {{ .Values.serviceAccount.name }}
{{- end }}
11 changes: 11 additions & 0 deletions external-scaler-azure-cosmos-db/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,14 @@ resources:
limits:
cpu: 100m
memory: 512Mi

podIdentity:
azureWorkload:
# -- Set to true to enable Azure Workload Identity usage.
# See https://keda.sh/docs/concepts/authentication/#azure-workload-identity
# This will be set as a label on the deployment.
enabled: false

serviceAccount:
# -- The name of the service account to use.
name: ""