Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigurationSecretRegex = regexp.MustCompile(
`^(tfstate-default|config|policy|cost)-(([a-z0-9]){8}-([a-z0-9]){4}-([a-z0-9]){4}-([a-z0-9]){4}-([a-z0-9]){12})$`,
)
ConfigurationSecretRegex is the regex for a configuration secret
View Source
var SecretPrefixes = []string{
"tfstate-default-",
"config-",
"policy-",
"cost-",
}
SecretPrefixes is a list of secret prefixes the controller uses
Functions ¶
func NewCleanCommand ¶
NewCleanCommand creates and returns a new clean command
func NewCommand ¶
NewCommand returns a new instance of the command
Types ¶
type CleanCommand ¶
type CleanCommand struct { cmd.Factory // ControllerNamespace is the namespace the controller is running in ControllerNamespace string // Force will force the deletion of the state Force bool }
CleanCommand is the options for the clean command
Click to show internal directories.
Click to hide internal directories.