Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Name of the ConfigMap that will hold the CA certificate that signs the TLS // certificate of antrea-controller. CAConfigMapName = "antrea-ca" CAConfigMapKey = "ca.crt" )
View Source
const ( // The names of the files that should contain the CA certificate and the TLS key pair. CACertFile = "ca.crt" TLSCertFile = "tls.crt" TLSKeyFile = "tls.key" )
Variables ¶
This section is empty.
Functions ¶
func GetAntreaServerNames ¶ added in v0.8.0
func GetAntreaServerNames() []string
GetAntreaServerNames returns the DNS names that the TLS certificate will be signed with.
func GetCAConfigMapNamespace ¶ added in v0.8.0
func GetCAConfigMapNamespace() string
Types ¶
type CACertController ¶
type CACertController struct {
// contains filtered or unexported fields
}
CACertController is responsible for taking the CA certificate from the caContentProvider and publishing it to the ConfigMap and the APIServices.
func ApplyServerCert ¶
func ApplyServerCert(selfSignedCert bool, client kubernetes.Interface, aggregatorClient clientset.Interface, secureServing *options.SecureServingOptionsWithLoopback) (*CACertController, error)
func (*CACertController) Enqueue ¶
func (c *CACertController) Enqueue()
Enqueue will be called after CACertController is registered as a listener of CA cert change.
func (*CACertController) Run ¶
func (c *CACertController) Run(workers int, stopCh <-chan struct{})
Run starts the CACertController and blocks until stopCh is closed.
func (*CACertController) RunOnce ¶
func (c *CACertController) RunOnce() error
RunOnce runs a single sync step to ensure that we have a valid starting configuration.
Click to show internal directories.
Click to hide internal directories.