transformer

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	K8sNameLabelKey     = "app.kubernetes.io/name"
	K8sInstanceLabelKey = "app.kubernetes.io/instance"

	XlineK8sNameLabelValue      = "xline-cluster"
	XlineK8sManagedByLabelValue = "xline-operator"
)
View Source
const (
	XlinePort = 2379
	DataDir   = "/usr/local/xline/data-dir"
)

Variables

This section is empty.

Functions

func GetMemberTopology

func GetMemberTopology(stsRef types.NamespacedName, svcName string, replicas int) string

func GetServiceKey

func GetServiceKey(xlineClusterName types.NamespacedName) types.NamespacedName

func GetStatefulSetKey

func GetStatefulSetKey(xlineClusterName types.NamespacedName) types.NamespacedName

func GetXlineInstanceLabels

func GetXlineInstanceLabels(xlineClusterName types.NamespacedName) map[string]string

func MakeResourceLabels

func MakeResourceLabels(xlineName string) map[string]string

MakeResourceLabels make the k8s label meta for the managed resource

func MakeService

func MakeService(cr *xapi.XlineCluster, scheme *runtime.Scheme) *corev1.Service

func MakeStatefulSet

func MakeStatefulSet(cr *xapi.XlineCluster, scheme *runtime.Scheme) *appv1.StatefulSet

Types

This section is empty.

Jump to

Keyboard shortcuts

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