plugin

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDoctorCmd

func NewDoctorCmd() *cobra.Command

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

func (o *DoctorOptions) Complete(cmd *cobra.Command, args []string, argsLenAtDash int) error

Complete populate default values from KUBECONFIG file, sets up the clients

func (*DoctorOptions) Run

func (o *DoctorOptions) Run() error

Run doctor run

func (*DoctorOptions) Validate

func (o *DoctorOptions) Validate() error

Validate validate before the run that the namespace list cannot be empty(somehow?)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL