cmd

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SortByNameKey  = "name"
	SortByCountKey = "count"
)

Variables

This section is empty.

Functions

func NewCmdEvictPod

func NewCmdEvictPod(streams genericclioptions.IOStreams, configFlags *genericclioptions.ConfigFlags) *cobra.Command

Types

type CreatePDBOptions

type CreatePDBOptions struct {
	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

func (*CreatePDBOptions) Complete

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

func (*CreatePDBOptions) GetPrinter

func (o *CreatePDBOptions) GetPrinter() (printers.ResourcePrinter, error)

func (*CreatePDBOptions) Run

func (o *CreatePDBOptions) Run() error

func (*CreatePDBOptions) Validate

func (o *CreatePDBOptions) Validate() error

type EvictPodOptions

type EvictPodOptions struct {
	genericclioptions.IOStreams

	Namespace          string
	PodName            string
	DryRun             bool
	Output             string
	GracePeriodSeconds int64
	// contains filtered or unexported fields
}

func NewEvictPodOptions

func NewEvictPodOptions(streams genericclioptions.IOStreams, configFlags *genericclioptions.ConfigFlags) *EvictPodOptions

func (*EvictPodOptions) Complete

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

func (*EvictPodOptions) GetPrinter

func (o *EvictPodOptions) GetPrinter() (printers.ResourcePrinter, error)

func (*EvictPodOptions) Run

func (o *EvictPodOptions) Run() error

func (*EvictPodOptions) Validate

func (o *EvictPodOptions) Validate() error

type PDBOptions

type PDBOptions struct {
	genericclioptions.IOStreams

	AllNamespaces bool
	Namespace     string
	PodName       string
	Output        string
	Template      string

	SortBy string
	// contains filtered or unexported fields
}

func (*PDBOptions) Complete

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

func (*PDBOptions) GetNamespace

func (o *PDBOptions) GetNamespace() string

func (*PDBOptions) GetPrinter

func (o *PDBOptions) GetPrinter() (printers.ResourcePrinter, error)

func (*PDBOptions) Run

func (o *PDBOptions) Run() error

func (*PDBOptions) Validate

func (o *PDBOptions) Validate() error

type PodPDBEntry

type PodPDBEntry struct {
	Pod  corev1.Pod
	Pdbs []policyv1.PodDisruptionBudget
}

func (*PodPDBEntry) OwnerName

func (e *PodPDBEntry) OwnerName() string

type PodPDBList

type PodPDBList struct {
	Items []PodPDBEntry
}

type PodsOptions

type PodsOptions struct {
	genericclioptions.IOStreams

	Namespace string
	PDBName   string
	Output    string
	Template  string

	OutputWide bool
	// contains filtered or unexported fields
}

TODO: add sort-by argument

func (*PodsOptions) Complete

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

func (*PodsOptions) GetPrinter

func (o *PodsOptions) GetPrinter() (printers.ResourcePrinter, error)

func (*PodsOptions) Run

func (o *PodsOptions) Run() error

func (*PodsOptions) Validate

func (o *PodsOptions) Validate() error

Jump to

Keyboard shortcuts

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