Documentation ¶
Index ¶
Constants ¶
const ( CertBytesValue = "tls.crt" KeyBytesValue = "tls.key" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FallbackCertificateManager ¶
type FallbackCertificateManager struct {
// contains filtered or unexported fields
}
func NewFallbackCertificateManager ¶
func NewFallbackCertificateManager(certManager certificate.Manager) *FallbackCertificateManager
NewFallbackCertificateManager returns a certificate manager which can fall back to a self signed certificate, if there is currently no kubevirt installation present on the cluster. This helps dealing with situations where e.g. readiness probes try to access an API which can't right now provide a fully managed certificate. virt-operator is the main recipient of this manager, since the certificate management infrastructure is not always already present when virt-operator gets created.
func (*FallbackCertificateManager) Current ¶
func (f *FallbackCertificateManager) Current() *tls.Certificate
func (*FallbackCertificateManager) ServerHealthy ¶
func (f *FallbackCertificateManager) ServerHealthy() bool
func (*FallbackCertificateManager) Start ¶
func (f *FallbackCertificateManager) Start()
func (*FallbackCertificateManager) Stop ¶
func (f *FallbackCertificateManager) Stop()
type FileCertificateManager ¶
type FileCertificateManager struct {
// contains filtered or unexported fields
}
func NewFileCertificateManager ¶
func NewFileCertificateManager(certBytesPath string, keyBytesPath string) *FileCertificateManager
func (*FileCertificateManager) Current ¶
func (s *FileCertificateManager) Current() *tls.Certificate
func (*FileCertificateManager) ServerHealthy ¶
func (f *FileCertificateManager) ServerHealthy() bool
func (*FileCertificateManager) Start ¶
func (f *FileCertificateManager) Start()
func (*FileCertificateManager) Stop ¶
func (f *FileCertificateManager) Stop()
type SecretCertificateManager ¶ added in v0.37.2
type SecretCertificateManager struct {
// contains filtered or unexported fields
}
func NewSecretCertificateManager ¶ added in v0.37.2
func NewSecretCertificateManager(name string, namespace string, store cache.Store) *SecretCertificateManager
NewSecretCertificateManager takes a secret store and the name and the namespace of a secret. If there is a newer version of the secret in the cache, the next Current() call will immediately wield it. It takes resource versions into account to be efficient.
func (*SecretCertificateManager) Current ¶ added in v0.37.2
func (s *SecretCertificateManager) Current() *tls.Certificate
func (*SecretCertificateManager) ServerHealthy ¶ added in v0.37.2
func (s *SecretCertificateManager) ServerHealthy() bool
func (*SecretCertificateManager) Start ¶ added in v0.37.2
func (s *SecretCertificateManager) Start()
func (*SecretCertificateManager) Stop ¶ added in v0.37.2
func (s *SecretCertificateManager) Stop()