fix: correct issue where ClusterTriggerAuthentication objects were filtered based on prefix
The prefix no longer matters since they are global to the cluster.
This commit is contained in:
@@ -700,15 +700,10 @@ func getKedaValues(ctx context.Context, clientset KubernetesClient, appName stri
|
|||||||
|
|
||||||
globalAuths := map[string]KedaAuthentication{}
|
globalAuths := map[string]KedaAuthentication{}
|
||||||
for _, item := range items {
|
for _, item := range items {
|
||||||
if !strings.HasPrefix(item.Name, "global-auth-") {
|
globalAuths[item.Name] = KedaAuthentication{
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
authType := strings.TrimPrefix(item.Name, "global-auth-")
|
|
||||||
globalAuths[authType] = KedaAuthentication{
|
|
||||||
Name: item.Name,
|
Name: item.Name,
|
||||||
Kind: KedaAuthenticationKind_ClusterTriggerAuthentication,
|
Kind: KedaAuthenticationKind_ClusterTriggerAuthentication,
|
||||||
Type: authType,
|
Type: item.Name,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user