Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Apply ¶
type Apply struct {
ApplyOptions
Phases phase.Phases
}
func NewApply ¶ added in v0.19.1
func NewApply(opts ApplyOptions) *Apply
NewApply creates a new Apply action. The list of phases can be modified via the Phases field, for example:
apply := NewApply(opts)
gatherK0sFacts := &phase.GatherK0sFacts{} // advisable to get the title from the phase itself instead of hardcoding the title.
apply.Phases.InsertBefore(gatherK0sFacts.Title(), &myCustomPhase{}) // insert a custom phase before the GatherK0sFacts phase
type ApplyOptions ¶ added in v0.19.1
type ApplyOptions struct {
// Manager is the phase manager
Manager *phase.Manager
// DisableDowngradeCheck skips the downgrade check
DisableDowngradeCheck bool
// Force allows forced installation in case of certain failures
Force bool
// NoWait skips waiting for the cluster to be ready
NoWait bool
// NoDrain skips draining worker nodes
NoDrain bool
// RestoreFrom is the path to a cluster backup archive to restore the state from
RestoreFrom string
// KubeconfigOut is a writer to write the kubeconfig to
KubeconfigOut io.Writer
// KubeconfigAPIAddress is the API address to use in the kubeconfig
KubeconfigAPIAddress string
// KubeconfigUser is the username to use in the kubeconfig
KubeconfigUser string
// KubeconfigCluster is the cluster name to use in the kubeconfig
KubeconfigCluster string
// ConfigPath is the path to the configuration file (used for kubeconfig command tip on success)
ConfigPath string
}
type ConfigEdit ¶
type ConfigEdit struct {
Config *v1beta1.Cluster
Stdout io.Writer
Stderr io.Writer
Stdin io.Reader
}
func (ConfigEdit) Run ¶
func (c ConfigEdit) Run() error
type ConfigStatus ¶
func (ConfigStatus) Run ¶
func (c ConfigStatus) Run() error
Click to show internal directories.
Click to hide internal directories.