Enabled a way to include custom auth metadata info on the clusters endpoint

Signed-off-by: Andres Mauricio Gomez P <andmagom@outlook.com>
This commit is contained in:
Andres Mauricio Gomez P
2024-01-09 18:45:25 -05:00
parent e1120241c7
commit a77559663c
20 changed files with 743 additions and 472 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[];
}
@@ -151,6 +151,7 @@ export interface AuthenticationStrategy {
authConfig: KubernetesRequestAuth,
): Promise<KubernetesCredential>;
validateCluster(authMetadata: AuthMetadata): Error[];
presentAuthMetadata(authMetadata: AuthMetadata): AuthMetadata;
}
/**