generator

package
v0.0.0-...-b4459d8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL