Added two routes to get all and one admiralty targets from kube

This commit is contained in:
pb
2025-02-20 12:46:24 +01:00
parent 3c313171c3
commit d26f0d6b1b
3 changed files with 95 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ type Infrastructure interface {
CreateServiceAccount(ctx context.Context, ns string) error
CreateRoleBinding(ctx context.Context, ns string, roleBinding string, role string) error
CreateRole(ctx context.Context, ns string, role string, groups [][]string, resources [][]string, verbs [][]string) error
GetTargets(ctx context.Context) ([]string,error)
}
var _service = map[string]func() (Infrastructure, error){