Documentation
¶
Index ¶
- func EncodeCertPEM(cert *x509.Certificate) []byte
- func GenerateKubeconfig(conf Config) error
- func NewCertAndKey(caCert *x509.Certificate, caKey crypto.Signer, user string, groups []string, ...) (*x509.Certificate, crypto.Signer, error)
- func TryLoadKeyFromDisk(pkiPath string) (crypto.Signer, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeCertPEM ¶
func EncodeCertPEM(cert *x509.Certificate) []byte
EncodeCertPEM returns PEM-endcoded certificate data
func GenerateKubeconfig ¶
func NewCertAndKey ¶
Types ¶
type Config ¶
type Config struct { CACrtFile string // ca file, default is /etc/kubernetes/pki/ca.crt CAKeyFile string // ca key file, default is /etc/kubernetes/pki/ca.key OutPut string // kubconfig output file name default is ./kube/config User string Groups []string ClusterName string // default is kubernetes Apiserver string // default is https://apiserver.cluster.local:6443 DNSNames []string IPAddresses []net.IP }
Click to show internal directories.
Click to hide internal directories.