Skip to content

Commit

Permalink
Merge pull request #6687 from dokku/k3s-cluster-autoscaling
Browse files Browse the repository at this point in the history
Correct issue where ClusterTriggerAuthentication objects were filtered based on prefix
  • Loading branch information
josegonzalez committed Mar 12, 2024
2 parents 7df3e62 + 0134cd9 commit 0e1c3d5
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions plugins/scheduler-k3s/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -700,15 +700,10 @@ func getKedaValues(ctx context.Context, clientset KubernetesClient, appName stri

globalAuths := map[string]KedaAuthentication{}
for _, item := range items {
if !strings.HasPrefix(item.Name, "global-auth-") {
continue
}

authType := strings.TrimPrefix(item.Name, "global-auth-")
globalAuths[authType] = KedaAuthentication{
globalAuths[item.Name] = KedaAuthentication{
Name: item.Name,
Kind: KedaAuthenticationKind_ClusterTriggerAuthentication,
Type: authType,
Type: item.Name,
}
}

Expand Down

0 comments on commit 0e1c3d5

Please sign in to comment.