Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDoctorCmd ¶
NewDoctorCmd returns a cobra command wrapping DoctorOptions
Types ¶
type DoctorOptions ¶
type DoctorOptions struct { FetchedNamespaces []string // Doctor options DeploymentOnly bool FullScan bool Flags *genericclioptions.ConfigFlags CoreClient coreclient.CoreV1Interface RESTClient *restclient.RESTClient KubeCli *kubernetes.Clientset Args []string Config *restclient.Config }
DoctorOptions specify what the doctor is going to do
func NewDoctorOptions ¶
func NewDoctorOptions() *DoctorOptions
NewDoctorOptions new doctor options initializer
func (*DoctorOptions) Complete ¶
Complete populate default values from KUBECONFIG file, sets up the clients
func (*DoctorOptions) Validate ¶
func (o *DoctorOptions) Validate() error
Validate validate before the run that the namespace list cannot be empty(somehow?)
Click to show internal directories.
Click to hide internal directories.