utils

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func BuildNodeSelector

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

func GetOwnersWithKinds

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

func GetTypeLabel

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

func IsNamespaceSelectedBySelector added in v0.9.0

func IsNamespaceSelectedBySelector(ns *corev1.Namespace, selector *metav1.LabelSelector) (bool, error)

func IsTenantOwnerReference added in v0.7.0

func IsTenantOwnerReference(or metav1.OwnerReference) bool

func IsUnsupportedAPI

func IsUnsupportedAPI(err error) bool

func MapMergeNoOverrite added in v0.11.0

func MapMergeNoOverrite(dst, src map[string]string)

func PoolResourceQuotaName added in v0.10.0

func PoolResourceQuotaName(quota *capsulev1beta2.ResourcePool) string

Types

type UserGroupList

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

func NewUserGroupList

func NewUserGroupList(groups []string) UserGroupList

Jump to

Keyboard shortcuts

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