Documentation ¶
Index ¶
- Constants
- Variables
- func BuildMetricsRegex(regex []string) string
- func GenerateCertName(name string) string
- func GenerateRedisTLSOptions() string
- func GetPodSecurityContext(secctx *corev1.PodSecurityContext) (podSec *corev1.PodSecurityContext)
- func GetPullPolicy(policies ...corev1.PullPolicy) corev1.PullPolicy
- func GetRedisSSLSecretName(name string) string
- func GetSecurityContext(secctx *corev1.PodSecurityContext) (sec *corev1.SecurityContext)
- func GetServiceDNSName(serviceName, namespace string) string
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 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 GetSecurityContext ¶
func GetSecurityContext(secctx *corev1.PodSecurityContext) (sec *corev1.SecurityContext)
func GetServiceDNSName ¶
GetServiceDNSName
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.