kubectlk8s.io/kubectl/pkg/cmd/certificates Index | Files

package certificates

import "k8s.io/kubectl/pkg/cmd/certificates"

Index

Functions

func NewCmdCertificate

func NewCmdCertificate(restClientGetter genericclioptions.RESTClientGetter, ioStreams genericiooptions.IOStreams) *cobra.Command

NewCmdCertificate returns `certificate` Cobra command

func NewCmdCertificateApprove

func NewCmdCertificateApprove(restClientGetter genericclioptions.RESTClientGetter, ioStreams genericiooptions.IOStreams) *cobra.Command

NewCmdCertificateApprove returns the `certificate approve` Cobra command

func NewCmdCertificateDeny

func NewCmdCertificateDeny(restClientGetter genericclioptions.RESTClientGetter, ioStreams genericiooptions.IOStreams) *cobra.Command

NewCmdCertificateDeny returns the `certificate deny` Cobra command

Types

type CertificateOptions

type CertificateOptions struct {
	resource.FilenameOptions

	PrintFlags *genericclioptions.PrintFlags
	PrintObj   printers.ResourcePrinterFunc

	genericiooptions.IOStreams
	// contains filtered or unexported fields
}

CertificateOptions declares the arguments accepted by the certificate command

func NewCertificateOptions

func NewCertificateOptions(ioStreams genericiooptions.IOStreams, operation string) *CertificateOptions

NewCertificateOptions creates CertificateOptions struct for `certificate` command

func (*CertificateOptions) Complete

func (o *CertificateOptions) Complete(restClientGetter genericclioptions.RESTClientGetter, cmd *cobra.Command, args []string) error

Complete loads data from the command environment

func (*CertificateOptions) RunCertificateApprove

func (o *CertificateOptions) RunCertificateApprove(force bool) error

RunCertificateApprove approves a certificate signing request

func (*CertificateOptions) RunCertificateDeny

func (o *CertificateOptions) RunCertificateDeny(force bool) error

RunCertificateDeny denies a certificate signing request

func (*CertificateOptions) Validate

func (o *CertificateOptions) Validate() error

Validate checks if the provided `certificate` arguments are valid

Source Files

certificates.go

Version
v0.32.3 (latest)
Published
Mar 12, 2025
Platform
linux/amd64
Imports
19 packages
Last checked
6 days ago

Tools for package owners.