utils

package
v0.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NodeSelectorAnnotation = "scheduler.alpha.kubernetes.io/node-selector"
)

Variables

This section is empty.

Functions

func BuildNodeSelector added in v0.1.3

func BuildNodeSelector(tnt *capsulev1beta2.Tenant, nsAnnotations map[string]string) map[string]string

func GetOwnersWithKinds added in v0.1.0

func GetOwnersWithKinds(tenant *capsulev1beta2.Tenant) (owners []string)

func GetTypeLabel added in v0.2.0

func GetTypeLabel(t runtime.Object) (label string, err error)

func IsUnsupportedAPI added in v0.3.2

func IsUnsupportedAPI(err error) bool

Types

type UserGroupList

type UserGroupList interface {
	Find(needle string) (found bool)
}

func NewUserGroupList added in v0.0.5

func NewUserGroupList(groups []string) UserGroupList

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL