csr

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateVKCSR

func GenerateVKCSR(name string, csr []byte) *certificatesv1beta1.CertificateSigningRequest

GenerateCSR generate a certificates/v1beta1 CSR resource for a virtual-kubelet name and PEM CSR

func GenerateVKCertificateBundle

func GenerateVKCertificateBundle(name string) (csrPEM []byte, keyPEM []byte, err error)

GenerateVKCertificateBundle generates respectively a key and a CSR in PEM format compliant with the K8s kubelet-serving signer taking a name as input

func WaitForApproval

func WaitForApproval(client k8s.Interface, name string) ([]byte, error)

WaitForApproval returns a CRT when available for a specific CSR resource. It timeouts after a while, if the CRT is not available.

func WatchCSR

func WatchCSR(clientset k8s.Interface, label string, resyncPeriod time.Duration)

Types

This section is empty.

Jump to

Keyboard shortcuts

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