kubernetes/cmd/kubeadm/app/cmd/certs.go

var genericCertRenewLongDesc

var allLongDesc

var expirationLongDesc

var certificateKeyLongDesc

var generateCSRLongDesc

var generateCSRExample

// newCmdCertsUtility returns main command for certs phase
func newCmdCertsUtility(out io.Writer) *cobra.Command {}

type genCSRConfig

func newGenCSRConfig() *genCSRConfig {}

func (o *genCSRConfig) addFlagSet(flagSet *pflag.FlagSet) {}

// load merges command line flag values into kubeadm's config.
// Reads Kubeadm config from a file (if present)
// else use dynamically generated default config.
// This configuration contains the DNS names and IP addresses which
// are encoded in the control-plane CSRs.
func (o *genCSRConfig) load() (err error) {}

// newCmdGenCSR returns cobra.Command for generating keys and CSRs
func newCmdGenCSR(out io.Writer) *cobra.Command {}

// runGenCSR contains the logic of the generate-csr sub-command.
func runGenCSR(out io.Writer, config *genCSRConfig) error {}

// newCmdCertificateKey returns cobra.Command for certificate key generate
func newCmdCertificateKey() *cobra.Command {}

// newCmdCertsRenewal creates a new `cert renew` command.
func newCmdCertsRenewal(out io.Writer) *cobra.Command {}

type renewFlags

func getRenewSubCommands(out io.Writer, kdir string) []*cobra.Command {}

func addRenewFlags(cmd *cobra.Command, flags *renewFlags) {}

func renewCert(kdir string, internalcfg *kubeadmapi.InitConfiguration, handler *renewal.CertificateRenewHandler) error {}

func getInternalCfg(cfgPath string, client kubernetes.Interface, cfg kubeadmapiv1.ClusterConfiguration, printer output.Printer, logPrefix string) (*kubeadmapi.InitConfiguration, error) {}

// fetchCertificateExpirationInfo returns the certificate expiration info for the given renewal manager
func fetchCertificateExpirationInfo(rm *renewal.Manager) (*outputapiv1alpha3.CertificateExpirationInfo, error) {}

var clientSetFromFile

// newCmdCertsExpiration creates a new `cert check-expiration` command.
func newCmdCertsExpiration(out io.Writer, kdir string) *cobra.Command {}

type expirationFlags

func addExpirationFlags(cmd *cobra.Command, flags *expirationFlags) {}

type certTextPrinter

// PrintObj is an implementation of ResourcePrinter.PrintObj for plain text output
func (p *certTextPrinter) PrintObj(obj runtime.Object, writer io.Writer) error {}

type certTextPrintFlags

// ToPrinter returns a kubeadm printer for the text output format
func (tpf *certTextPrintFlags) ToPrinter(outputFormat string) (output.Printer, error) {}