Documentation
¶
Index ¶
- type Labeller
- func (l *Labeller) ForComponent(component consts.ComponentType, instanceGroup string) *Labeller
- func (l *Labeller) GetAnnotations() map[string]string
- func (l *Labeller) GetBalancerServiceAddress() string
- func (l *Labeller) GetBalancerServiceName() string
- func (l *Labeller) GetClusterDomain() string
- func (l *Labeller) GetClusterName() string
- func (l *Labeller) GetComponentLabel() string
- func (l *Labeller) GetComponentShortName() string
- func (l *Labeller) GetComponentTypeLabelValue(isInitJob bool) string
- func (l *Labeller) GetCypressPatchConfigMapName() string
- func (l *Labeller) GetCypressPatchFileName(name string) string
- func (l *Labeller) GetFullComponentLabel() string
- func (l *Labeller) GetFullComponentName() string
- func (l *Labeller) GetHeadlessServiceAddress() string
- func (l *Labeller) GetHeadlessServiceName() string
- func (l *Labeller) GetInitJobCompletedCondition(name string) string
- func (l *Labeller) GetInitJobConfigMapName(name string) string
- func (l *Labeller) GetInitJobName(name string) string
- func (l *Labeller) GetInitJobObjectMeta() metav1.ObjectMeta
- func (l *Labeller) GetInstanceAddressPort(index, port int) string
- func (l *Labeller) GetInstanceAddressWildcard() string
- func (l *Labeller) GetInstanceGroup() string
- func (l *Labeller) GetInstanceLabelValue(isInitJob bool) string
- func (l *Labeller) GetListOptions() []client.ListOption
- func (l *Labeller) GetMainConfigMapName() string
- func (l *Labeller) GetMetaLabelMap(isInitJob bool) map[string]string
- func (l *Labeller) GetMonitoringMetaLabelMap() map[string]string
- func (l *Labeller) GetMonitoringServiceName() string
- func (l *Labeller) GetNamespace() string
- func (l *Labeller) GetObjectMeta(name string) metav1.ObjectMeta
- func (l *Labeller) GetPartOfLabelValue() string
- func (l *Labeller) GetPodsRemovedCondition() string
- func (l *Labeller) GetPodsRemovingStartedCondition() string
- func (l *Labeller) GetPodsUpdatedCondition() string
- func (l *Labeller) GetPreChecksRunningCondition() string
- func (l *Labeller) GetReadyCondition() string
- func (l *Labeller) GetScalingDownCondition() string
- func (l *Labeller) GetScalingUpCondition() string
- func (l *Labeller) GetSecretName() string
- func (l *Labeller) GetSelectorLabelMap() map[string]string
- func (l *Labeller) GetServerStatefulSetName() string
- func (l *Labeller) GetSidecarConfigMapName(name string) string
- func (l *Labeller) GetWaitingOnDeleteUpdateCondition() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Labeller ¶
type Labeller struct {
Namespace string
// Name of YTsaurus cluster.
ClusterName string
// Name of resource which defines this component.
ResourceName string
ComponentType consts.ComponentType
// An optional name identifying a group of instances of the type above.
// Role for proxies, instance group name for nodes, may be empty.
InstanceGroup string
// K8s cluster domain, usually "cluster.local".
ClusterDomain string
Annotations map[string]string
// Do not include resource name into component name.
UseShortNames bool
}
Labeller defines component names, labels and addresses.
func (*Labeller) ForComponent ¶
func (l *Labeller) ForComponent(component consts.ComponentType, instanceGroup string) *Labeller
func (*Labeller) GetAnnotations ¶
func (*Labeller) GetBalancerServiceAddress ¶
func (*Labeller) GetBalancerServiceName ¶
func (*Labeller) GetClusterDomain ¶
func (*Labeller) GetClusterName ¶
func (*Labeller) GetComponentLabel ¶
GetComponentLabel Returns lower case hyphenated component type without name part.
func (*Labeller) GetComponentShortName ¶
func (*Labeller) GetComponentTypeLabelValue ¶
func (*Labeller) GetCypressPatchConfigMapName ¶
func (*Labeller) GetCypressPatchFileName ¶
func (*Labeller) GetFullComponentLabel ¶
GetFullComponentLabel Returns lower case hyphenated component type with name part.
func (*Labeller) GetFullComponentName ¶
GetFullComponentName Returns CamelCase component type with instance group.
func (*Labeller) GetHeadlessServiceAddress ¶
func (*Labeller) GetHeadlessServiceName ¶
func (*Labeller) GetInitJobCompletedCondition ¶
func (*Labeller) GetInitJobConfigMapName ¶
func (*Labeller) GetInitJobName ¶
func (*Labeller) GetInitJobObjectMeta ¶
func (l *Labeller) GetInitJobObjectMeta() metav1.ObjectMeta
func (*Labeller) GetInstanceAddressPort ¶
func (*Labeller) GetInstanceAddressWildcard ¶
func (*Labeller) GetInstanceGroup ¶
func (*Labeller) GetInstanceLabelValue ¶
func (*Labeller) GetListOptions ¶
func (l *Labeller) GetListOptions() []client.ListOption
func (*Labeller) GetMainConfigMapName ¶
func (*Labeller) GetMetaLabelMap ¶
func (*Labeller) GetMonitoringMetaLabelMap ¶
func (*Labeller) GetMonitoringServiceName ¶
func (*Labeller) GetNamespace ¶
func (*Labeller) GetObjectMeta ¶
func (l *Labeller) GetObjectMeta(name string) metav1.ObjectMeta
func (*Labeller) GetPartOfLabelValue ¶
func (*Labeller) GetPodsRemovedCondition ¶
func (*Labeller) GetPodsRemovingStartedCondition ¶
func (*Labeller) GetPodsUpdatedCondition ¶
func (*Labeller) GetPreChecksRunningCondition ¶
func (*Labeller) GetReadyCondition ¶
func (*Labeller) GetScalingDownCondition ¶
func (*Labeller) GetScalingUpCondition ¶
func (*Labeller) GetSecretName ¶
func (*Labeller) GetSelectorLabelMap ¶
func (*Labeller) GetServerStatefulSetName ¶
func (*Labeller) GetSidecarConfigMapName ¶
func (*Labeller) GetWaitingOnDeleteUpdateCondition ¶
Click to show internal directories.
Click to hide internal directories.