Documentation ¶
Overview ¶
Package tls implements helpers for TLS certificates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertSecretBuilder ¶
CertSecretBuilder tracks the options set for a cert secret.
func CreateCertSecret ¶
func CreateCertSecret(name string) CertSecretBuilder
CreateCertSecret creates a secret containing a self-signed certificate and key. Additional parameters can be added to this call. The creation is started by calling 'Do'.
func (CertSecretBuilder) Do ¶
func (builder CertSecretBuilder) Do(client client.Client) (kubernetes.Secret, error)
Do creates the certificate secret.
func (CertSecretBuilder) WithCommonName ¶
func (builder CertSecretBuilder) WithCommonName(commonName string) CertSecretBuilder
WithCommonName sets the common name of the certificate.
func (CertSecretBuilder) WithNamespace ¶
func (builder CertSecretBuilder) WithNamespace(namespace string) CertSecretBuilder
WithNamespace sets the namespace in which the secret will be created.
Click to show internal directories.
Click to hide internal directories.