Merge pull request #22177 from andmagom/kubernetes/CustomAuthMetaToFrontend

Feature: Clusters endpoint is able to return Custom auth metadata info
This commit is contained in:
Jamie Klassen
2024-01-18 09:34:00 -05:00
committed by GitHub
20 changed files with 293 additions and 61 deletions
+2
View File
@@ -25,6 +25,8 @@ export interface AuthenticationStrategy {
authConfig: KubernetesRequestAuth,
): Promise<KubernetesCredential>;
// (undocumented)
presentAuthMetadata(authMetadata: AuthMetadata): AuthMetadata;
// (undocumented)
validateCluster(authMetadata: AuthMetadata): Error[];
}
@@ -152,6 +152,7 @@ export interface AuthenticationStrategy {
authConfig: KubernetesRequestAuth,
): Promise<KubernetesCredential>;
validateCluster(authMetadata: AuthMetadata): Error[];
presentAuthMetadata(authMetadata: AuthMetadata): AuthMetadata;
}
/**