Documentation ¶
Index ¶
Constants ¶
const (
ConfigContextsName = "ConfigContexts"
)
const (
DiagnosticPodName = "DiagnosticPod"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigContext ¶
type ConfigContext struct { RawConfig *kclientcmdapi.Config ContextName string }
ConfigContext diagnostics (one per context) validate that the client config context is complete and has connectivity to the master.
func (ConfigContext) CanRun ¶
func (d ConfigContext) CanRun() (bool, error)
CanRun is part of the Diagnostic interface; it determines if the conditions are right to run this diagnostic.
func (ConfigContext) Check ¶
func (d ConfigContext) Check() types.DiagnosticResult
Check is part of the Diagnostic interface; it runs the actual diagnostic logic
func (ConfigContext) ContextClusterUser ¶ added in v1.1.1
func (d ConfigContext) ContextClusterUser() (string, bool)
ContextClusterUser returns user+cluster name, plus true if the context is defined
func (ConfigContext) Description ¶
func (d ConfigContext) Description() string
Description is part of the Diagnostic interface and provides a user-focused description of what the diagnostic does.
func (ConfigContext) Name ¶
func (d ConfigContext) Name() string
Name is part of the Diagnostic interface and just returns name.
type ConfigLoading ¶
type ConfigLoading struct { ConfFlagName string ClientFlags *flag.FlagSet // contains filtered or unexported fields }
ConfigLoading is a little special in that it is run separately as a precondition in order to determine whether we can run other dependent diagnostics.
func (*ConfigLoading) CanRun ¶
func (d *ConfigLoading) CanRun() (bool, error)
CanRun is part of the Diagnostic interface; it determines if the conditions are right to run this diagnostic.
func (*ConfigLoading) Check ¶
func (d *ConfigLoading) Check() types.DiagnosticResult
Check is part of the Diagnostic interface; it runs the actual diagnostic logic
func (*ConfigLoading) Description ¶
func (d *ConfigLoading) Description() string
Description is part of the Diagnostic interface and provides a user-focused description of what the diagnostic does.
func (*ConfigLoading) Name ¶
func (d *ConfigLoading) Name() string
Name is part of the Diagnostic interface and just returns name.
func (*ConfigLoading) SuccessfulLoad ¶
func (d *ConfigLoading) SuccessfulLoad() bool
SuccessfulLoad returns whether the client config was found
type DiagnosticPod ¶ added in v1.1.2
type DiagnosticPod struct { KubeClient kclientset.Clientset Namespace string Level int Factory *osclientcmd.Factory PreventModification bool ImageTemplate variable.ImageTemplate }
DiagnosticPod is a diagnostic that runs a diagnostic pod and relays the results.
func (*DiagnosticPod) CanRun ¶ added in v1.1.2
func (d *DiagnosticPod) CanRun() (bool, error)
CanRun is part of the Diagnostic interface; it determines if the conditions are right to run this diagnostic.
func (*DiagnosticPod) Check ¶ added in v1.1.2
func (d *DiagnosticPod) Check() types.DiagnosticResult
Check is part of the Diagnostic interface; it runs the actual diagnostic logic
func (*DiagnosticPod) Description ¶ added in v1.1.2
func (d *DiagnosticPod) Description() string
Description is part of the Diagnostic interface and provides a user-focused description of what the diagnostic does.
func (*DiagnosticPod) Name ¶ added in v1.1.2
func (d *DiagnosticPod) Name() string
Name is part of the Diagnostic interface and just returns name.