Documentation
¶
Index ¶
- func ComputeInstanceID(ls *v1alpha1.Landscaper) string
- func GetInstanceID(ls *v1alpha1.Landscaper) string
- func SetInstanceID(ls *v1alpha1.Landscaper, tenantID string)
- type Component
- func (c *Component) ClusterScopedDefaultResourceName() string
- func (c *Component) ClusterScopedResourceName(suffix string) string
- func (c *Component) DeploymentTemplateLabels() map[string]string
- func (c *Component) InfoLabels() map[string]string
- func (c *Component) Labels() map[string]string
- func (c *Component) NamespacedDefaultResourceName() string
- func (c *Component) NamespacedResourceName(suffix string) string
- func (c *Component) SelectorLabels() map[string]string
- func (c *Component) TopologyLabels() map[string]string
- func (c *Component) TopologySpreadConstraints() []corev1.TopologySpreadConstraint
- type Instance
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 (*Component) ClusterScopedDefaultResourceName ¶
ClusterScopedDefaultResourceName returns the default name for a cluster-scoped resource: "landscaper:<instance>:<component>", for example "landscaper:test0001-abcdefgh:manifest-deployer".
func (*Component) ClusterScopedResourceName ¶
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 (*Component) InfoLabels ¶
func (*Component) NamespacedDefaultResourceName ¶
func (*Component) NamespacedResourceName ¶
func (*Component) SelectorLabels ¶
func (*Component) TopologyLabels ¶
func (*Component) TopologySpreadConstraints ¶
func (c *Component) TopologySpreadConstraints() []corev1.TopologySpreadConstraint
Click to show internal directories.
Click to hide internal directories.