Help us shape the future of Go! Take the 2026 Go Developer Survey

kubeblocks

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2026 License: AGPL-3.0 Imports: 66 Imported by: 0

Documentation

Index

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 CollectProgress(ctx context.Context, progressCh <-chan interface{}, verbose bool) func() error

func LoadVendorCheckYaml

func LoadVendorCheckYaml(vendorName util.K8sProvider) ([][]byte, error)

func NewConfigCmd

func NewConfigCmd(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command

NewConfigCmd creates the config command

func NewDescribeConfigCmd

func NewDescribeConfigCmd(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command

func NewKubeBlocksCmd

func NewKubeBlocksCmd(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command

NewKubeBlocksCmd creates the kubeblocks command

func NewPreflightCmd

func NewPreflightCmd(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command

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 Options struct {
	genericiooptions.IOStreams

	HelmCfg *helm.Config

	// Namespace is the current namespace the command running in
	Namespace  string
	Client     kubernetes.Interface
	Dynamic    dynamic.Interface
	Timeout    time.Duration
	Wait       bool
	WaitAddons bool
}

func (*Options) Complete

func (o *Options) Complete(f cmdutil.Factory, cmd *cobra.Command) error

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

func (*PreflightOptions) Preflight

func (p *PreflightOptions) Preflight(f cmdutil.Factory, args []string, opts values.Options) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL