mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-09-25 17:34:37 +00:00
WIP aggregated api for oidcclientsecretrequest
Signed-off-by: Margo Crawford <margaretc@vmware.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Copyright 2021 the Pinniped contributors. All Rights Reserved.
|
||||
// Copyright 2021-2022 the Pinniped contributors. All Rights Reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package groupsuffix
|
||||
@@ -8,6 +8,7 @@ import (
|
||||
|
||||
identityv1alpha1 "go.pinniped.dev/generated/latest/apis/concierge/identity/v1alpha1"
|
||||
loginv1alpha1 "go.pinniped.dev/generated/latest/apis/concierge/login/v1alpha1"
|
||||
oauthv1alpha1 "go.pinniped.dev/generated/latest/apis/supervisor/virtual/oauth/v1alpha1"
|
||||
)
|
||||
|
||||
type GroupData schema.GroupVersion
|
||||
@@ -32,3 +33,16 @@ func ConciergeAggregatedGroups(apiGroupSuffix string) (login, identity GroupData
|
||||
Version: identityv1alpha1.SchemeGroupVersion.Version,
|
||||
}
|
||||
}
|
||||
|
||||
func SupervisorAggregatedGroups(apiGroupSuffix string) (oauth GroupData) {
|
||||
oauthVirtualSupervisorAPIGroup, ok1 := Replace(oauthv1alpha1.GroupName, apiGroupSuffix)
|
||||
|
||||
if !ok1 {
|
||||
panic("static group input is invalid")
|
||||
}
|
||||
|
||||
return GroupData{
|
||||
Group: oauthVirtualSupervisorAPIGroup,
|
||||
Version: oauthv1alpha1.SchemeGroupVersion.Version,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user