identity

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeInstanceID

func ComputeInstanceID(ls *v1alpha1.Landscaper) string

func GetInstanceID

func GetInstanceID(ls *v1alpha1.Landscaper) string

func SetInstanceID

func SetInstanceID(ls *v1alpha1.Landscaper, tenantID string)

Types

type Component

type Component struct {
	Instance        // for example "test0001-abcdefgh"
	Version  string // for example "v1.0.0"
	Name     string // for example "manifest-deployer"
}

func NewComponent

func NewComponent(instance Instance, version, name string) *Component

func (*Component) ClusterScopedDefaultResourceName

func (c *Component) ClusterScopedDefaultResourceName() string

ClusterScopedDefaultResourceName returns the default name for a cluster-scoped resource: "landscaper:<instance>:<component>", for example "landscaper:test0001-abcdefgh:manifest-deployer".

func (*Component) ClusterScopedResourceName

func (c *Component) ClusterScopedResourceName(suffix string) string

ClusterScopedResourceName returns the name for a cluster-scoped resource with a given suffix: "landscaper:<instance>:<component>:<suffix>", for example "landscaper:test0001-abcdefgh:landscaper-rbac:user".

func (*Component) DeploymentTemplateLabels

func (c *Component) DeploymentTemplateLabels() map[string]string

func (*Component) InfoLabels

func (c *Component) InfoLabels() map[string]string

func (*Component) Labels

func (c *Component) Labels() map[string]string

func (*Component) NamespacedDefaultResourceName

func (c *Component) NamespacedDefaultResourceName() string

func (*Component) NamespacedResourceName

func (c *Component) NamespacedResourceName(suffix string) string

func (*Component) SelectorLabels

func (c *Component) SelectorLabels() map[string]string

func (*Component) TopologyLabels

func (c *Component) TopologyLabels() map[string]string

func (*Component) TopologySpreadConstraints

func (c *Component) TopologySpreadConstraints() []corev1.TopologySpreadConstraint

type Instance

type Instance string

Instance identifies a landscaper installation for an update or delete operation, e.g. "test0001-abcdefgh".

func (Instance) Namespace

func (i Instance) Namespace() string

Namespace is the namespace on the landscaper host resp. resource cluster where objects will be installed.

Jump to

Keyboard shortcuts

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