k8s

package
v1.11.0-cni-plu...-8f3027a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SubmitCSR

func SubmitCSR(ctx context.Context, config *cfg.Config, restClient *RestClient, x509CSR *tls.X509CSR) error

SubmitCSR Submits a CSR in order to obtain a signed certificate for this pod.

func WatchCSR

func WatchCSR(ctx context.Context, restClient *RestClient, cfg *cfg.Config, x509CSR *tls.X509CSR) error

WatchCSR Watches the CSR resource for updates and writes results to the certificate location (which should be mounted as an emptyDir)

func WriteCertificateToFile

func WriteCertificateToFile(cfg *cfg.Config, cert []byte, x509CSR *tls.X509CSR) error

WriteCertificateToFile writes TLS key, cert and cacert to the mount location specified in the config parameter.

Types

type RestClient

type RestClient struct {
	RestConfig            *rest.Config
	Clientset             kubernetes.Interface
	APIRegistrationClient v1beta1.ApiregistrationV1beta1Interface
}

func NewRestClient

func NewRestClient() (*RestClient, error)

GetRestClient returns a bundle of K8s REST client interfaces.

Jump to

Keyboard shortcuts

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