Documentation ¶
Index ¶
Constants ¶
const (
CheckExternalNetworkName = "CheckExternalNetwork"
)
const (
CheckNodeNetworkName = "CheckNodeNetwork"
)
const (
CheckPodNetworkName = "CheckPodNetwork"
)
const (
CheckServiceNetworkName = "CheckServiceNetwork"
)
const (
CollectNetworkInfoName = "CollectNetworkInfo"
)
const (
InPodNetworkCheckRecommendedName = "inpod-networkcheck"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CheckExternalNetwork ¶
type CheckExternalNetwork struct { }
CheckExternalNetwork is a Diagnostic to check accessibility of external network within a pod
func (CheckExternalNetwork) CanRun ¶
func (d CheckExternalNetwork) CanRun() (bool, error)
CanRun is part of the Diagnostic interface; it determines if the conditions are right to run this diagnostic.
func (CheckExternalNetwork) Check ¶
func (d CheckExternalNetwork) Check() types.DiagnosticResult
Check is part of the Diagnostic interface; it runs the actual diagnostic logic
func (CheckExternalNetwork) Description ¶
func (d CheckExternalNetwork) Description() string
Description is part of the Diagnostic interface and just returns the diagnostic description.
func (CheckExternalNetwork) Name ¶
func (d CheckExternalNetwork) Name() string
Name is part of the Diagnostic interface and just returns name.
func (CheckExternalNetwork) Requirements ¶
func (d CheckExternalNetwork) Requirements() (client bool, host bool)
type CheckNodeNetwork ¶
type CheckNodeNetwork struct {
KubeClient kclientset.Interface
}
CheckNodeNetwork is a Diagnostic to check that pods in the cluster can access its own node
func (CheckNodeNetwork) CanRun ¶
func (d CheckNodeNetwork) CanRun() (bool, error)
CanRun is part of the Diagnostic interface; it determines if the conditions are right to run this diagnostic.
func (CheckNodeNetwork) Check ¶
func (d CheckNodeNetwork) Check() types.DiagnosticResult
Check is part of the Diagnostic interface; it runs the actual diagnostic logic
func (CheckNodeNetwork) Description ¶
func (d CheckNodeNetwork) Description() string
Description is part of the Diagnostic interface and just returns the diagnostic description.
func (CheckNodeNetwork) Name ¶
func (d CheckNodeNetwork) Name() string
Name is part of the Diagnostic interface and just returns name.
func (CheckNodeNetwork) Requirements ¶
func (d CheckNodeNetwork) Requirements() (client bool, host bool)
type CheckPodNetwork ¶
type CheckPodNetwork struct { KubeClient kclientset.Interface NetNamespacesClient networktypedclient.NetNamespacesGetter ClusterNetworkClient networktypedclient.ClusterNetworksGetter // contains filtered or unexported fields }
CheckPodNetwork is a Diagnostic to check communication between pods in the cluster.
func (CheckPodNetwork) CanRun ¶
func (d CheckPodNetwork) CanRun() (bool, error)
CanRun is part of the Diagnostic interface; it determines if the conditions are right to run this diagnostic.
func (CheckPodNetwork) Check ¶
func (d CheckPodNetwork) Check() types.DiagnosticResult
Check is part of the Diagnostic interface; it runs the actual diagnostic logic
func (CheckPodNetwork) Description ¶
func (d CheckPodNetwork) Description() string
Description is part of the Diagnostic interface and just returns the diagnostic description.
func (CheckPodNetwork) Name ¶
func (d CheckPodNetwork) Name() string
Name is part of the Diagnostic interface and just returns name.
func (CheckPodNetwork) Requirements ¶
func (d CheckPodNetwork) Requirements() (client bool, host bool)
type CheckServiceNetwork ¶
type CheckServiceNetwork struct { KubeClient kclientset.Interface NetNamespacesClient networktypedclient.NetNamespacesGetter ClusterNetworkClient networktypedclient.ClusterNetworksGetter // contains filtered or unexported fields }
CheckServiceNetwork is a Diagnostic to check communication between services in the cluster.
func (CheckServiceNetwork) CanRun ¶
func (d CheckServiceNetwork) CanRun() (bool, error)
CanRun is part of the Diagnostic interface; it determines if the conditions are right to run this diagnostic.
func (CheckServiceNetwork) Check ¶
func (d CheckServiceNetwork) Check() types.DiagnosticResult
Check is part of the Diagnostic interface; it runs the actual diagnostic logic
func (CheckServiceNetwork) Description ¶
func (d CheckServiceNetwork) Description() string
Description is part of the Diagnostic interface and just returns the diagnostic description.
func (CheckServiceNetwork) Name ¶
func (d CheckServiceNetwork) Name() string
Name is part of the Diagnostic interface and just returns name.
func (CheckServiceNetwork) Requirements ¶
func (d CheckServiceNetwork) Requirements() (client bool, host bool)
type CollectNetworkInfo ¶
type CollectNetworkInfo struct {
KubeClient kclientset.Interface
}
CollectNetworkInfo is a Diagnostic to collect network information in the cluster.
func (CollectNetworkInfo) CanRun ¶
func (d CollectNetworkInfo) CanRun() (bool, error)
CanRun is part of the Diagnostic interface; it determines if the conditions are right to run this diagnostic.
func (CollectNetworkInfo) Check ¶
func (d CollectNetworkInfo) Check() types.DiagnosticResult
Check is part of the Diagnostic interface; it runs the actual diagnostic logic
func (CollectNetworkInfo) Description ¶
func (d CollectNetworkInfo) Description() string
Description is part of the Diagnostic interface and just returns the diagnostic description.
func (CollectNetworkInfo) Name ¶
func (d CollectNetworkInfo) Name() string
Name is part of the Diagnostic interface and just returns name.
func (CollectNetworkInfo) Requirements ¶
func (d CollectNetworkInfo) Requirements() (client bool, host bool)
type NetworkPodDiagnosticsOptions ¶
type NetworkPodDiagnosticsOptions struct { // list of diagnostic names to limit what is run RequestedDiagnostics []string // LogOptions determine globally what the user wants to see and how. LogOptions *log.LoggerOptions // contains filtered or unexported fields }
NetworkPodDiagnosticsOptions holds values received from environment variables for the command to operate.
func (*NetworkPodDiagnosticsOptions) Complete ¶
func (o *NetworkPodDiagnosticsOptions) Complete(c *cobra.Command, args []string) (err error)
Complete fills in NetworkPodDiagnosticsOptions needed if the command is actually invoked.
func (*NetworkPodDiagnosticsOptions) Logger ¶
func (o *NetworkPodDiagnosticsOptions) Logger() *log.Logger
Logger returns the logger built according to options (must be Complete()ed)
func (NetworkPodDiagnosticsOptions) RunDiagnostics ¶
func (o NetworkPodDiagnosticsOptions) RunDiagnostics() error
RunDiagnostics builds diagnostics based on the options and executes them, returning a summary.