builder

package
v0.0.0-...-52d723a Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	LabelRedisArch    = "redisarch"
	ManagedByLabel    = "managed-by"
	InstanceTypeLabel = "middleware.instance/type"
	InstanceNameLabel = "middleware.instance/name"

	PodNameLabelKey          = "statefulset.kubernetes.io/pod-name"
	PodAnnounceIPLabelKey    = "middleware.alauda.io/announce_ip"
	PodAnnouncePortLabelKey  = "middleware.alauda.io/announce_port"
	PodAnnounceIPortLabelKey = "middleware.alauda.io/announce_iport"

	AppLabel             = "redis-failover"
	HostnameTopologyKey  = "kubernetes.io/hostname"
	RestartAnnotationKey = "kubectl.kubernetes.io/restartedAt"

	ConfigSigAnnotationKey   = "middleware.alauda.io/config-sig"
	PasswordSigAnnotationKey = "middleware.alauda.io/secret-sig"

	S3SecretVolumeName = "s3-secret"
)

Variables

View Source
var MustQuoteRedisConfig = map[string]struct{}{
	"tls-protocols": {},
}
View Source
var MustUpperRedisConfig = map[string]struct{}{
	"tls-ciphers":      {},
	"tls-ciphersuites": {},
	"tls-protocols":    {},
}

Functions

func BuildMetricsRegex

func BuildMetricsRegex(regex []string) string

func GenerateCertName

func GenerateCertName(name string) string

GenerateCertName

func GenerateRedisTLSOptions

func GenerateRedisTLSOptions() string

func GetPodSecurityContext

func GetPodSecurityContext(secctx *corev1.PodSecurityContext) (podSec *corev1.PodSecurityContext)

func GetPullPolicy

func GetPullPolicy(policies ...corev1.PullPolicy) corev1.PullPolicy

func GetRedisSSLSecretName

func GetRedisSSLSecretName(name string) string

func GetSecurityContext

func GetSecurityContext(secctx *corev1.PodSecurityContext) (sec *corev1.SecurityContext)

func GetServiceDNSName

func GetServiceDNSName(serviceName, namespace string) string

GetServiceDNSName

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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