Help us shape the future of Go! Take the 2026 Go Developer Survey

utils

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func BuildNodeSelector

func BuildNodeSelector(tnt *capsulev1beta2.Tenant, nsAnnotations map[string]string) map[string]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 IsUnsupportedAPI

func IsUnsupportedAPI(err error) bool

func MapMergeNoOverrite added in v0.11.0

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

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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