cert

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCert

func CreateCert(c *rundata.Cluster) error

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.

func SendCert

func SendCert(c *rundata.Cluster) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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