Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyStack = errors.New("stack is empty")
View Source
var HelmChartVersion = "3.0.0"
Functions ¶
func CleanupCluster ¶ added in v0.19.0
Types ¶
type CleanupFunc ¶ added in v0.19.0
CleanupFunc is a function supposed to be called while a GitOps Run session is terminating. Each component creating resources on the cluster should return such a function that is then added to the CleanupFuncs stack by the orchestrating code and removed from it and executed during shutdown.
type CleanupFuncs ¶ added in v0.19.0
type CleanupFuncs struct {
// contains filtered or unexported fields
}
CleanupFuncs is a stack holding CleanupFunc references that are used to roll up all resources created during an GitOps Run session as soon as the session is terminated.
func (*CleanupFuncs) Pop ¶ added in v0.19.0
func (c *CleanupFuncs) Pop() (CleanupFunc, error)
Pop implements the stack's Pop operation, returning and removing the top CleanupFunc from the stack.
func (*CleanupFuncs) Push ¶ added in v0.19.0
func (c *CleanupFuncs) Push(f CleanupFunc)
Push implements the stack's Push operation, adding the given CleanupFunc to the top of the stack.
type RunCommandFlags ¶ added in v0.9.2
type RunCommandFlags struct { FluxVersion string AllowK8sContext []string Components []string ComponentsExtra []string Timeout time.Duration PortForward string // port forward specifier, e.g. "port=8080:8080,resource=svc/app" RootDir string DecryptionKeyFile string // Dashboard DashboardPort string DashboardHashedPassword string SkipDashboardInstall bool DashboardImage string // Session SessionName string SessionNamespace string NoSession bool SkipResourceCleanup bool NoBootstrap bool // Global flags. Namespace string KubeConfig string // Flags, created by genericclioptions. Context string // Hidden session name for the sub-process HiddenSessionName string }
Click to show internal directories.
Click to hide internal directories.