Skip to content

Commit

Permalink
Support for Azure Workload Identity in Cosmos DB External Scaler
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Karpala <[email protected]>
  • Loading branch information
karpikpl committed Jun 11, 2024
1 parent 43b0f51 commit 012f277
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
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: ""

0 comments on commit 012f277

Please sign in to comment.