Documentation
¶
Index ¶
- Constants
- func CollectProgress(ctx context.Context, progressCh <-chan interface{}, verbose bool) func() error
- func LoadVendorCheckYaml(vendorName util.K8sProvider) ([][]byte, error)
- func NewConfigCmd(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command
- func NewDescribeConfigCmd(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command
- func NewKubeBlocksCmd(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command
- func NewPreflightCmd(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command
- type InstallOptions
- type Options
- type PreflightOptions
- type UninstallOptions
Constants ¶
View Source
const ( // TODO: tidy up the versions when 0.9.2 released KBVersion092 = "v0.9.2-beta.16" KBVersion100 = "v1.0.0-beta.1" )
View Source
const ( ResourceScopeGlobal resourceScope = "global" ResourceScopeLocal resourceScope = "namespaced" )
View Source
const ( PreflightPattern = "data/%s_preflight.yaml" HostPreflightPattern = "data/%s_hostpreflight.yaml" PreflightMessage = "Kubernetes cluster preflight" BasePreflightPattern = "data/kubeblocks_base_preflight.yaml" BaseHostPreflightPattern = "data/kubeblocks_base_hostpreflight.yaml" )
Variables ¶
This section is empty.
Functions ¶
func CollectProgress ¶
func LoadVendorCheckYaml ¶
func LoadVendorCheckYaml(vendorName util.K8sProvider) ([][]byte, error)
func NewConfigCmd ¶
NewConfigCmd creates the config command
func NewDescribeConfigCmd ¶
func NewKubeBlocksCmd ¶
NewKubeBlocksCmd creates the kubeblocks command
func NewPreflightCmd ¶
Types ¶
type InstallOptions ¶
type InstallOptions struct {
Options
OldVersion string
Version string
Quiet bool
CreateNamespace bool
Check bool
ValueOpts values.Options
// ConfiguredOptions is the options that kubeblocks
PodAntiAffinity string
TopologyKeys []string
NodeLabels map[string]string
TolerationsRaw []string
// contains filtered or unexported fields
}
func (*InstallOptions) CompleteInstallOptions ¶
func (o *InstallOptions) CompleteInstallOptions() error
CompleteInstallOptions complete options for real installation of kubeblocks
func (*InstallOptions) Install ¶
func (o *InstallOptions) Install() error
func (*InstallOptions) PreCheck ¶
func (o *InstallOptions) PreCheck() error
func (*InstallOptions) PreCheckKBVersion ¶ added in v1.0.0
func (o *InstallOptions) PreCheckKBVersion() error
func (*InstallOptions) Upgrade ¶
func (o *InstallOptions) Upgrade() error
type Options ¶
type PreflightOptions ¶
type PreflightOptions struct {
genericiooptions.IOStreams
*preflight.PreflightFlags
ValueOpts values.Options
// contains filtered or unexported fields
}
PreflightOptions declares the arguments accepted by the preflight command
type UninstallOptions ¶
type UninstallOptions struct {
Factory cmdutil.Factory
Options
// AutoApprove if true, skip interactive approval
AutoApprove bool
RemoveNamespace bool
Quiet bool
// contains filtered or unexported fields
}
func (*UninstallOptions) PreCheck ¶
func (o *UninstallOptions) PreCheck() error
func (*UninstallOptions) Uninstall ¶
func (o *UninstallOptions) Uninstall() error
Click to show internal directories.
Click to hide internal directories.