mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-02-14 18:09:58 +00:00
19 lines
389 B
Go
19 lines
389 B
Go
// Copyright 2020-2021 Clastix Labs
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package utils
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
capsulev1beta2 "github.com/projectcapsule/capsule/api/v1beta2"
|
|
)
|
|
|
|
func GetOwnersWithKinds(tenant *capsulev1beta2.Tenant) (owners []string) {
|
|
for _, owner := range tenant.Spec.Owners {
|
|
owners = append(owners, fmt.Sprintf("%s:%s", owner.Kind.String(), owner.Name))
|
|
}
|
|
|
|
return
|
|
}
|