internal/concierge/impersonator: handle custom login API group

Signed-off-by: Andrew Keesler <akeesler@vmware.com>
This commit is contained in:
Andrew Keesler
2021-02-15 18:00:10 -05:00
parent 25bc8dd8a9
commit fdd8ef5835
10 changed files with 529 additions and 353 deletions

View File

@@ -267,6 +267,7 @@ func execCredentialForImpersonationProxy(
tokenExpiry *metav1.Time,
) (*clientauthv1beta1.ExecCredential, error) {
// TODO maybe de-dup this with conciergeclient.go
// TODO reuse code from internal/testutil/impersonationtoken here to create token
var kind string
switch strings.ToLower(conciergeAuthenticatorType) {
case "webhook":