clusterutils

package
v0.0.0-...-1827873 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HashedUsernameSectionMaxLength = 10
)
View Source
const OtterizeClusterUIDKeyName = "clusteruid"
View Source
const OtterizeClusterUIDResourceName = "otterize-cluster-uid"

Variables

This section is empty.

Functions

func BuildHashedUsername

func BuildHashedUsername(workloadName, namespace, clusterUID string) string

func GetClusterUID

func GetClusterUID(ctx context.Context) (string, error)

GetClusterUID Fetches cluster ID from the config map created in the Otterize namespace

func GetOrCreateClusterUID

func GetOrCreateClusterUID(ctx context.Context) string

func KubernetesToPostgresName

func KubernetesToPostgresName(kubernetesName string) string

KubernetesToPostgresName translates a name with Kubernetes conventions to Postgres conventions

func SetClusterUID

func SetClusterUID(ctx context.Context) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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