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 genericclioptions.IOStreams) *cobra.Command
- func NewDescribeConfigCmd(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- func NewKubeBlocksCmd(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- func NewPreflightCmd(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- type InstallOptions
- type Options
- type PreflightOptions
- type UninstallOptions
Constants ¶
View Source
const ( ResourceScopeGlobal resourceScope = "global" ResourceScopeLocal resourceScope = "namespaced" )
View Source
const ( PreflightPattern = "data/%s_preflight.yaml" HostPreflightPattern = "data/%s_hostpreflight.yaml" PreflightMessage = "Run a preflight to check that the environment meets the requirement for KubeBlocks. It takes 10~20 seconds." )
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 Version string Monitor bool Quiet bool CreateNamespace bool Check bool ValueOpts values.Options }
func (*InstallOptions) Install ¶
func (o *InstallOptions) Install() error
func (*InstallOptions) PreCheck ¶
func (o *InstallOptions) PreCheck() error
func (*InstallOptions) Upgrade ¶
func (o *InstallOptions) Upgrade() error
type Options ¶
type PreflightOptions ¶
type PreflightOptions struct { genericclioptions.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.