Skip to content

Commit

Permalink
Resolve authenticationRef for CRD target ref (kedacore#1339)
Browse files Browse the repository at this point in the history
Signed-off-by: Lionel Villard <villard@us.ibm.com>
Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
  • Loading branch information
lionelvillard authored and arschles committed Nov 30, 2020
1 parent 654a4cd commit 8d2d58f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/scaling/scale_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,11 @@ func (h *scaleHandler) buildScalers(withTriggers *kedav1alpha1.WithTriggers, pod
authParams["awsRoleArn"] = serviceAccount.Annotations[kedav1alpha1.PodIdentityAnnotationEKS]
} else if podIdentity == kedav1alpha1.PodIdentityProviderAwsKiam {
authParams["awsRoleArn"] = podTemplateSpec.ObjectMeta.Annotations[kedav1alpha1.PodIdentityAnnotationKiam]
} else {
authParams, _ := resolver.ResolveAuthRef(h.client, logger, trigger.AuthenticationRef, nil, withTriggers.Namespace)
config.AuthParams = authParams
}

config := &scalers.ScalerConfig{
Name: withTriggers.Name,
Namespace: withTriggers.Namespace,
Expand Down

0 comments on commit 8d2d58f

Please sign in to comment.