Documentation ¶
Overview ¶
Package kubeconfig provides Kubernetes config file generation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(in *GenerateInput, out io.Writer) error
Generate a kubeconfig for the cluster from the given Input.
func GenerateAdmin ¶
func GenerateAdmin(config GenerateAdminInput, out io.Writer) error
GenerateAdmin generates admin kubeconfig for the cluster.
Types ¶
type GenerateAdminInput ¶
type GenerateAdminInput interface { Name() string Endpoint() *url.URL IssuingCA() *x509.PEMEncodedCertificateAndKey AcceptedCAs() []*x509.PEMEncodedCertificate AdminKubeconfig() config.AdminKubeconfig }
GenerateAdminInput is the interface for the GenerateAdmin function.
This interface is implemented by config.Cluster().
type GenerateInput ¶
type GenerateInput struct { ClusterName string IssuingCA *x509.PEMEncodedCertificateAndKey AcceptedCAs []*x509.PEMEncodedCertificate CertificateLifetime time.Duration CommonName string Organization string Endpoint string Username string ContextName string }
GenerateInput are input parameters for Generate.
Click to show internal directories.
Click to hide internal directories.