subresource

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 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