Documentation ¶
Index ¶
- func GenerateVKCSR(name string, csr []byte) *certificatesv1beta1.CertificateSigningRequest
- func GenerateVKCertificateBundle(name string) (csrPEM []byte, keyPEM []byte, err error)
- func WaitForApproval(client k8s.Interface, name string) ([]byte, error)
- func WatchCSR(clientset k8s.Interface, label string, resyncPeriod time.Duration)
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 ¶
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 ¶
WaitForApproval returns a CRT when available for a specific CSR resource. It timeouts after a while, if the CRT is not available.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.