-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Report
Keda Core: 2.17.2
Issue: while using Azure AD Workload Identity
in Keda it receives an error error parsing azure Pipelines metadata: sources must contain at least one TokenCredential
.
Config:
- TriggerAuthentication:
apiVersion: keda.sh/v1alpha1
kind: TriggerAuthentication
metadata:
name: azure-workload-identity
spec:
podIdentity:
provider: azure-workload
identityId: xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx
identityTenantId: xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx
- ScaledObject:
apiVersion: keda.sh/v1alpha1
kind: ScaledJob
metadata:
name: shrijan-scaledjob
spec:
jobTargetRef:
parallelism: 1
completions: 1
activeDeadlineSeconds: 600
backoffLimit: 0
template:
... # describes the [job template](https://kubernetes.io/docs/concepts/workloads/controllers/job)
triggers:
- metadata:
demands: demand1, demand2
organizationURLFromEnv: AZP_URL
poolName: my-pool
requireAllDemands: "true"
type: azure-pipelines
authenticationRef:
name: azure-workload-identity
Expected Behavior
ScaledJob must be in ready state with azure-workload-identity as authentication .
Actual Behavior
NAME MIN MAX READY ACTIVE PAUSED TRIGGERS AUTHENTICATIONS AGE
shrijan-scaledjob 0 40 False Unknown Unknown azure-pipelines azure-workload-identity 1s
Steps to Reproduce the Problem
- Create a TriggerAuthentication with
podIdentity
referencing the Azure AD Workload Identity. - Create a ScaledJob referencing the above TriggerAuthentication in its
authenticationRef
.
Logs from KEDA operator
2025-09-26T10:28:33Z ERROR Failed to ensure ScaledJob is correctly created {"controller": "scaledjob", "controllerGroup": "keda.sh", "controllerKind": "ScaledJob", "ScaledJob": {"name":"shrijan-scaledjob","namespace":"default"}, "namespace": "default", "name": "shrijan-scaledjob", "reconcileID": "e9f5e540-5aa0-4af1-9acc-3d6a2b4a3f69", "error": "error parsing azure Pipelines metadata: sources must contain at least one TokenCredential"}
github.com/kedacore/keda/v2/controllers/keda.(*ScaledJobReconciler).Reconcile
/workspace/controllers/keda/scaledjob_controller.go:153
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile
/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:116
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler
/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:303
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem
/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:263
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2
/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:224
KEDA Version
2.17.2
Kubernetes Version
1.32
Platform
Amazon Web Services
Scaler Details
azure-pipeline
Anything else?
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
To Triage