Documentation ¶
Index ¶
- func GetKubernetesVersion(clientset kubernetes.Interface) (*versionInfo, error)
- func SubmitCSR(ctx context.Context, config *cfg.Config, restClient *RestClient, ...) error
- func WatchCSR(ctx context.Context, restClient *RestClient, cfg *cfg.Config, ...) error
- func WriteCertificateToFile(cfg *cfg.Config, cert []byte, x509CSR *tls.X509CSR) error
- type RestClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKubernetesVersion ¶ added in v1.1.0
func GetKubernetesVersion(clientset kubernetes.Interface) (*versionInfo, error)
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.
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.
Click to show internal directories.
Click to hide internal directories.