Merge pull request #6687 from dokku/k3s-cluster-autoscaling

Correct issue where ClusterTriggerAuthentication objects were filtered based on prefix
This commit is contained in:
Jose Diaz-Gonzalez
2024-03-11 23:29:01 -04:00
committed by GitHub

View File

@@ -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,
}
}