Documentation ¶
Overview ¶
Package flb contains controller logic for the flb
Index ¶
- Constants
- func IsFLBEnabled(svc *corev1.Service, kubeClient kubernetes.Interface) bool
- func IsFLBTLSSecret(secret *corev1.Secret) bool
- func IsServiceRefToValidTLSSecret(svc *corev1.Service, kubeClient kubernetes.Interface) (bool, error)
- func IsTLSEnabled(svc *corev1.Service) bool
- func IsValidTLSPort(svc *corev1.Service) (bool, error)
- func IsValidTLSSecret(secret *corev1.Secret) (bool, error)
- type TLSSecretMode
Constants ¶
View Source
const ( AuthAPIPath = "/api/auth/local" UpdateServiceAPIPath = "/api/l-4-lbs/updateservice" DeleteServiceAPIPath = "/api/l-4-lbs/updateservice/delete" CertAPIPath = "/api/updatecertificate" DeleteCertAPIPath = "/api/deleteCertificates" )
FLB API paths
Variables ¶
This section is empty.
Functions ¶
func IsFLBEnabled ¶ added in v1.1.0
func IsFLBEnabled(svc *corev1.Service, kubeClient kubernetes.Interface) bool
IsFLBEnabled checks if the service is enabled for flb
func IsFLBTLSSecret ¶ added in v1.2.1
IsFLBTLSSecret checks if the secret is a valid FLB TLS Secret by checking the label
func IsServiceRefToValidTLSSecret ¶ added in v1.2.1
func IsServiceRefToValidTLSSecret(svc *corev1.Service, kubeClient kubernetes.Interface) (bool, error)
IsServiceRefToValidTLSSecret checks if the service is referencing to a valid TLS Secret
func IsTLSEnabled ¶ added in v1.2.1
IsTLSEnabled checks if the service is enabled for TLS
func IsValidTLSPort ¶ added in v1.2.1
IsValidTLSPort checks if the service has valid TLS port
Types ¶
type TLSSecretMode ¶ added in v1.2.1
type TLSSecretMode string
const ( TLSSecretModeLocal TLSSecretMode = "local" TLSSecretModeRemote TLSSecretMode = "remote" )
func GetTLSSecretMode ¶ added in v1.2.1
func GetTLSSecretMode(svc *corev1.Service) TLSSecretMode
GetTLSSecretMode returns the TLS Secret Mode, default is Local
Click to show internal directories.
Click to hide internal directories.