server

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCommand

func RunCommand(opt *CleanerOptions) error

RunCommand executes one of the command from CleanerOptions

Types

type CleanerOptions

type CleanerOptions struct {
	Command               string
	WebhookConfigurations string
	ReleaseNamespace      string
	ControllerManagerName string
}

CleanerOptions holds configuration for cleaner jobs

func NewCleanerOptions

func NewCleanerOptions() *CleanerOptions

NewCleanerOptions creates and returns a new CleanerOptions

func (*CleanerOptions) AddFlags

func (c *CleanerOptions) AddFlags(fs *pflag.FlagSet)

AddFlags adds flags for a CleanerOptions to the specified FlagSet.

func (*CleanerOptions) Validate

func (c *CleanerOptions) Validate() error

Validate checks flag has been set and has a proper value

func (*CleanerOptions) WebhookConfigurationsName

func (c *CleanerOptions) WebhookConfigurationsName() []string

WebhookConfigurationsName returns webhook configuration names based on flags passed to application

Jump to

Keyboard shortcuts

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