Documentation
¶
Index ¶
- func CreateCert(c *rundata.Cluster) error
- func CreateEncodeServiceAccountKeyAndPublicKey(keyType x509.PublicKeyAlgorithm) (encodedPrivatKey, encodedPublicKey []byte, err error)
- func CreatePKIAssets(node *rundata.Node, cfg *kubeadmapi.InitConfiguration, ...) error
- func CreateServiceAccountKeyAndPublicKey(keyType x509.PublicKeyAlgorithm) (crypto.Signer, crypto.PublicKey, error)
- func EncodeKubeConfig(config clientcmdapi.Config) ([]byte, error)
- func SendCert(c *rundata.Cluster) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCert ¶
func CreateEncodeServiceAccountKeyAndPublicKey ¶
func CreateEncodeServiceAccountKeyAndPublicKey(keyType x509.PublicKeyAlgorithm) (encodedPrivatKey, encodedPublicKey []byte, err error)
func CreatePKIAssets ¶
func CreatePKIAssets(node *rundata.Node, cfg *kubeadmapi.InitConfiguration, notAfterTime time.Duration, certTree rundata.CertificateTree) error
CreatePKIAssets will create all PKI assets necessary.
func CreateServiceAccountKeyAndPublicKey ¶
func CreateServiceAccountKeyAndPublicKey(keyType x509.PublicKeyAlgorithm) (crypto.Signer, crypto.PublicKey, error)
CreateServiceAccountKeyAndPublicKey creates new public/private key files for signing service account users.
func EncodeKubeConfig ¶
func EncodeKubeConfig(config clientcmdapi.Config) ([]byte, error)
EncodeKubeConfig serializes the config to yaml. Encapsulates serialization without assuming the destination is a file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.