generators

package
v0.25.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// PodSelectorKey is the label key used as Pod selector
	PodSelectorKey = "deployment"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseOptionsV2

type BaseOptionsV2 struct {
	Component    string
	InstanceName string
	Namespace    string
	Labels       map[string]string
}

BaseOptions configures the generators for a component

func (*BaseOptionsV2) GetComponent

func (bo *BaseOptionsV2) GetComponent() string

GetComponent returns the name of the component

func (*BaseOptionsV2) GetInstanceName

func (bo *BaseOptionsV2) GetInstanceName() string

GetInstanceName returns the name of the custom resource instance

func (*BaseOptionsV2) GetKey

func (bo *BaseOptionsV2) GetKey() types.NamespacedName

Key returns a types.NamespacedName

func (*BaseOptionsV2) GetLabels

func (bo *BaseOptionsV2) GetLabels() map[string]string

GetLabels returns metadata labels

func (*BaseOptionsV2) GetNamespace

func (bo *BaseOptionsV2) GetNamespace() string

GetNamespace returns the custom resource namespace

func (*BaseOptionsV2) GetSelector

func (bo *BaseOptionsV2) GetSelector() map[string]string

GetSelector returns the LabelSelector struct that matches the labels in

Jump to

Keyboard shortcuts

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