certificate

package
v0.0.0-...-85d9d8c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSelfSignedCertificate

func GenerateSelfSignedCertificate(host string, alternateIPs []net.IP, alternateDNS []string, maxAge time.Duration) ([]byte, []byte, error)

original code reference: https://github.com/kubernetes/client-go/blob/master/util/cert/cert.go

func GetCertificate

func GetCertificate(*tls.ClientHelloInfo) (*tls.Certificate, error)

func InitialiseCertificateSecret

func InitialiseCertificateSecret(ctx context.Context, client client.Client, log logr.Logger) error

func ReadCertificateSecret

func ReadCertificateSecret(ctx context.Context, client client.Client, log logr.Logger) error

Types

type Reconciler

type Reconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Log    logr.Logger
}

func NewCertificateReconciler

func NewCertificateReconciler(mgr manager.Manager) *Reconciler

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr ctrl.Manager, c controllers.RateLimiterConfig) error

Jump to

Keyboard shortcuts

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