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
Click to show internal directories.
Click to hide internal directories.