kubelb

package
v1.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DefaultRouteStatus = "{}"
View Source
const EnvoyEndpointPattern = "%s-%s-ep-%d"
View Source
const EnvoyEndpointRoutePattern = "tenant-%s-route-%s-%s"
View Source
const EnvoyListenerPattern = "%v-%s"
View Source
const EnvoyResourceIdentifierPattern = "%s-%s-ep-%d-port-%d-%s"
View Source
const EnvoyRoutePortIdentifierPattern = "tenant-%s-route-%s-%s-svc-%s-port-%d-%s"
View Source
const LabelAppKubernetesComponent = "app.kubernetes.io/component" // database
View Source
const LabelAppKubernetesInstance = "app.kubernetes.io/instance" // mysql-abcxzy"
View Source
const LabelAppKubernetesManagedBy = "app.kubernetes.io/managed-by" // helm
View Source
const LabelAppKubernetesName = "app.kubernetes.io/name" // mysql
View Source
const LabelAppKubernetesPartOf = "app.kubernetes.io/part-of" // wordpress
View Source
const LabelAppKubernetesType = "app.kubernetes.io/type" // mysql
View Source
const LabelAppKubernetesVersion = "app.kubernetes.io/version" // 5.7.21
View Source
const LabelBridgeService = "bridge-service"
View Source
const LabelControllerName = "kubelb"
View Source
const LabelLoadBalancerName = "kubelb.k8c.io/lb-name"
View Source
const LabelLoadBalancerNamespace = "kubelb.k8c.io/lb-namespace"
View Source
const LabelManagedBy = "kubelb.k8c.io/managed-by"
View Source
const LabelOriginName = "kubelb.k8c.io/origin-name"
View Source
const LabelOriginNamespace = "kubelb.k8c.io/origin-ns"
View Source
const LabelOriginResourceKind = "kubelb.k8c.io/origin-resource-kind"
View Source
const LabelTenantName = "kubelb.k8c.io/tenant"
View Source
const NameSuffixLength = 4
View Source
const RouteServiceMapKey = "%s/%s"
View Source
const ServiceKind = "Service"

Variables

This section is empty.

Functions

func AddKubeLBLabels

func AddKubeLBLabels(labels map[string]string, name, namespace, gvk string) map[string]string

func GenerateName

func GenerateName(appendUID bool, uid, name, namespace string) string

func GetName

func GetName(obj client.Object) string

func GetNamespace

func GetNamespace(obj client.Object) string

func LoadBalancerIsDesiredState

func LoadBalancerIsDesiredState(actual, desired *kubelbiov1alpha1.LoadBalancer) bool

func MapLoadBalancer

func MapLoadBalancer(userService *corev1.Service, clusterEndpoints []string, useAddressesReference bool, clusterName string) *kubelbiov1alpha1.LoadBalancer

func PropagateAnnotations

func PropagateAnnotations(loadbalancer map[string]string, annotations kubelbv1alpha1.AnnotationSettings) map[string]string

Types

This section is empty.

Jump to

Keyboard shortcuts

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