in_pod

package
v3.11.0-alpha.0+incomp... Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2018 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CheckExternalNetworkName = "CheckExternalNetwork"
)
View Source
const (
	CheckNodeNetworkName = "CheckNodeNetwork"
)
View Source
const (
	CheckPodNetworkName = "CheckPodNetwork"
)
View Source
const (
	CheckServiceNetworkName = "CheckServiceNetwork"
)
View Source
const (
	CollectNetworkInfoName = "CollectNetworkInfo"
)
View Source
const (
	InPodNetworkCheckRecommendedName = "inpod-networkcheck"
)

Variables

This section is empty.

Functions

func NewCommandNetworkPodDiagnostics

func NewCommandNetworkPodDiagnostics(name string, out io.Writer) *cobra.Command

NewCommandNetworkPodDiagnostics is the command for running network diagnostics.

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

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

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

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

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

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

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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