deletenamespace

package
v0.0.0-...-5a14af6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ArgSubCommand string

ArgSubCommand is used to populate command line argments for the ArgSubCommand.

Functions

func FillCobraCommand

func FillCobraCommand(cmd *cobra.Command)

FillCobraCommand assigns default parameters for this command to the Cobra command.

Types

type NamespaceDeleting

type NamespaceDeleting interface {
	Delete(parms Parms) error
}

NamespaceDeleting deletes the namespace and waits for the results up to a timeout period.

func NewNamespaceDeleting

func NewNamespaceDeleting() (NamespaceDeleting, error)

NewNamespaceDeleting uses local kubernetes configuration files in $HOME/.kub/config to connect to Kubernetes and passess back a NamespaceDeleting.

type Parms

type Parms struct {
	Namespace                     string `validate:"min=2" arg:"required=true,shortname=n" help:"Kubernetes namespace to install into."`
	TimeoutSeconds                int    `arg:"shortname=t,defaultValue=720" help:"Number of seconds to wait until the kubernetes commands give up."`
	QueryForAllPodsRunningSeconds int    `arg:"shortname=q,defaultValue=2" help:"Number of seconds to wait until querying to see if all pods are running."`
}

Parms are the parameters for the command.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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