cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJanitorCommand

func NewJanitorCommand() *cobra.Command

NewJanitorCommand provides the base command when called without any subcommands.

Types

type FailedJobsOptions

type FailedJobsOptions struct {
	JanitorOptions
}

FailedJobsOptions embeds JanitorOptions struct.

func (*FailedJobsOptions) Run

func (o *FailedJobsOptions) Run(ctx context.Context, noHeader bool) error

Run lists stuck Jobs that cannot restart.

type JanitorOptions

type JanitorOptions struct {
	Streams              genericclioptions.IOStreams
	ConfigFlags          *genericclioptions.ConfigFlags
	ResourceBuilderFlags *genericclioptions.ResourceBuilderFlags
	// contains filtered or unexported fields
}

JanitorOptions holds user configuration options. setting up the CLI and the connection to the cluster.

func NewJanitorOptions

func NewJanitorOptions() JanitorOptions

NewJanitorOptions provides an instance of JanitorOptions with default values.

func (*JanitorOptions) Complete

func (o *JanitorOptions) Complete(factory cmdutil.Factory, cmd *cobra.Command) error

Complete sets all information required for working with Kubernetes.

func (*JanitorOptions) GetClient

func (o *JanitorOptions) GetClient() (*kubernetes.Clientset, error)

type PendingPVCsOptions

type PendingPVCsOptions struct {
	JanitorOptions
}

PendingPVCsOptions embeds JanitorOptions struct.

func (*PendingPVCsOptions) Run

func (o *PendingPVCsOptions) Run(ctx context.Context, noHeader bool) error

Run lists PersistentVolumeClaims that are in a Pending state.

type StatusPodsOptions

type StatusPodsOptions struct {
	JanitorOptions
}

StatusPodsOptions embeds JanitorOptions struct.

func (*StatusPodsOptions) Run

func (o *StatusPodsOptions) Run(ctx context.Context, noHeader bool) error

Run lists statuses of the Pods.

type UnclaimedPVsOptions

type UnclaimedPVsOptions struct {
	JanitorOptions
}

UnclaimedPVsOptions embeds JanitorOptions struct.

func (*UnclaimedPVsOptions) Run

func (o *UnclaimedPVsOptions) Run(ctx context.Context, noHeader bool) error

Run finds unclaimed PersistentVolumes.

type UnhealthyPodsOptions

type UnhealthyPodsOptions struct {
	JanitorOptions
}

UnhealthyPodsOptions embeds JanitorOptions struct.

func (*UnhealthyPodsOptions) Run

func (o *UnhealthyPodsOptions) Run(ctx context.Context, noHeader bool) error

Run finds pods that are unhealthy.

type UnreadyPodsOptions

type UnreadyPodsOptions struct {
	JanitorOptions
}

UnreadyPodsOptions embeds JanitorOptions struct.

func (*UnreadyPodsOptions) Run

func (o *UnreadyPodsOptions) Run(ctx context.Context, noHeader bool) error

Run finds pods in a not ready mode.

type UnscheduledPodsOptions

type UnscheduledPodsOptions struct {
	JanitorOptions
}

UnscheduledPodsOptions embeds JanitorOptions struct.

func (*UnscheduledPodsOptions) Run

func (o *UnscheduledPodsOptions) Run(ctx context.Context, noHeader bool) error

Run lists Pods waiting to be scheduled.

Jump to

Keyboard shortcuts

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