subresource

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CompoundNameSeparator concatenate child resource name and parent resource name
	CompoundNameSeparator = "@"
	// DefaultParentResourceName indicates the default parent resource name to use when not explicitly specified
	DefaultParentResourceName = "default"
)

Variables

This section is empty.

Functions

func GetParentResourceNameFromLabelSelector

func GetParentResourceNameFromLabelSelector(sel labels.Selector, parentResourceKey string) string

GetParentResourceNameFromLabelSelector retrieve parent resource key from label selector

Types

type CompoundName

type CompoundName struct {
	ParentResourceName string
	SubResourceName    string
}

CompoundName the combination for resource name

func NewCompoundName

func NewCompoundName(name string) *CompoundName

NewCompoundName decode names into parent resource part and subresource part

func (*CompoundName) String

func (in *CompoundName) String() string

String .

Jump to

Keyboard shortcuts

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