certificatesigningcontroller

package
v0.1.48 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCertificateLoadingController

func NewCertificateLoadingController(
	rotatedSigningCASecretNamespace, rotatedSigningCASecretName string,
	kubeInformersForNamespaces v1helpers.KubeInformersForNamespaces,
	eventRecorder events.Recorder,
) (func(ctx context.Context) (*librarygocrypto.CA, error), factory.Controller)

func NewCertificateSigningController

func NewCertificateSigningController(
	hostedControlPlane *hypershiftv1beta1.HostedControlPlane,
	signer certificates.SignerClass,
	getCurrentCABundleContent func(context.Context) (*librarygocrypto.CA, error),
	kubeInformersForNamespaces v1helpers.KubeInformersForNamespaces,
	kubeClient kubernetes.Interface,
	eventRecorder events.Recorder,
	certTTL time.Duration,
) factory.Controller

Types

type CertificateLoadingController

type CertificateLoadingController struct {
	// contains filtered or unexported fields
}

func (*CertificateLoadingController) CurrentCA

CurrentCA provides the current value of the CA. This is a blocking call as the value being loaded may not exist at the time it's being requested.

func (*CertificateLoadingController) SetCA

func (c *CertificateLoadingController) SetCA(certPEM, keyPEM []byte) (bool, error)

SetCA unconditionally stores the current cert/key content

type CertificateSigningController

type CertificateSigningController struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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