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 = "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 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 }
func (*InstallOptions) CompleteInstallOptions ¶ added in v0.6.0
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) 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.