Documentation ¶
Index ¶
- type GenerateCert
- func (rc *GenerateCert) ClientCertGenerate(ctx context.Context, namespace string) error
- func (rc *GenerateCert) Do(ctx context.Context, namespace string) error
- func (rc *GenerateCert) LoadCASecret(ctx context.Context, namespace string) error
- func (rc *GenerateCert) UpdateNewCA(ctx context.Context, namespace string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenerateCert ¶
type GenerateCert struct { CertsDir string CaSecret string CAKey string CaCertConfig *certConfig RotateCACert bool CACronSchedule string NodeCertConfig *certConfig RotateNodeCert bool ClientCertConfig *certConfig RotateClientCert bool NodeAndClientCronSchedule string PublicServiceName string DiscoveryServiceName string ClusterDomain string ReadinessWait time.Duration PodUpdateTimeout time.Duration // contains filtered or unexported fields }
GenerateCert is the structure containing all the certificate related info
func NewGenerateCert ¶
func NewGenerateCert(cl client.Client) GenerateCert
func (*GenerateCert) ClientCertGenerate ¶
func (rc *GenerateCert) ClientCertGenerate(ctx context.Context, namespace string) error
ClientCertGenerate generates the custom user client only certificates and creates the secret.
func (*GenerateCert) Do ¶
func (rc *GenerateCert) Do(ctx context.Context, namespace string) error
Do func generates the various certificates required and then stores them in respective secrets.
func (*GenerateCert) LoadCASecret ¶
func (rc *GenerateCert) LoadCASecret(ctx context.Context, namespace string) error
LoadCASecret loads the CA secret and write the CA certificate and key to the CA cert directory.
func (*GenerateCert) UpdateNewCA ¶
func (rc *GenerateCert) UpdateNewCA(ctx context.Context, namespace string) error
Click to show internal directories.
Click to hide internal directories.