pods

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JXEnvironmentLabel         = "env"
	JXGitOpsLabel              = "gitops.jenkins-x.io/pipeline"
	JxGitOperatorNamespaceName = "jx-git-operator"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Selector   string
	Namespace  string
	Age        time.Duration
	KubeClient kubernetes.Interface
}

Options containers the CLI options

func NewCmdGCPods

func NewCmdGCPods() (*cobra.Command, *Options)

NewCmdGCPods creates the command object

func (*Options) MatchesPod

func (o *Options) MatchesPod(pod *corev1.Pod) (bool, time.Duration)

MatchesPod returns true if this pod can be garbage collected

func (*Options) Run

func (o *Options) Run() ([]string, error)

Run implements this command

Jump to

Keyboard shortcuts

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