install

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IssuerName      = "crypt-test"
	CertificateName = "default.test.cert"
	SecretName      = "example-issuer-account-key"
	RWName          = "test-for-risingwave"
)
View Source
const (
	TimeOut           = 5
	OperatorNamespace = "risingwave-operator-system"
	OperatorName      = "risingwave-operator-controller-manager"

	TemDir = "/tmp/kubectl-rw"

	RisingWaveUrlTemplate = "https://github.com/risingwavelabs/risingwave-operator/releases/download/%s/risingwave-operator.yaml"

	CertManagerUrl = "https://github.com/cert-manager/cert-manager/releases/download/v1.9.1/cert-manager.yaml"
)
View Source
const (
	UninstallExample = `  # uninstall the risingwave operator from the cluster
  kubectl rw uninstall
`
)

Variables

This section is empty.

Functions

func Download

func Download(fullURLFile, storagePath string) (string, error)

func GCTestCert

func GCTestCert(ctx *cmdcontext.RWContext)

func NewInstallCommand

func NewInstallCommand(ctx *cmdcontext.RWContext, streams genericclioptions.IOStreams) *cobra.Command

NewInstallCommand creates the installation command which can install the operator in the kubernetes cluster.

func NewUninstallCommand

func NewUninstallCommand(ctx *context.RWContext, streams genericclioptions.IOStreams) *cobra.Command

NewUninstallCommand creates the uninstallation command of the operator.

Types

type InstallOptions

type InstallOptions struct {
	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

InstallOptions contains the options to the installation command.

func NewInstallOptions

func NewInstallOptions(streams genericclioptions.IOStreams) *InstallOptions

NewInstallOptions returns a InstallOptions.

func (*InstallOptions) Complete

func (o *InstallOptions) Complete(ctx *cmdcontext.RWContext, cmd *cobra.Command, args []string) error

func (*InstallOptions) Run

func (o *InstallOptions) Run(ctx *cmdcontext.RWContext, cmd *cobra.Command, args []string) error

Run will run the command as followed: 1. check cert-manager 2. install cert-manager or give the installation guide 3. wait cert-manager ready 4. install risingwave operator.

type UninstallOptions

type UninstallOptions struct {
	genericclioptions.IOStreams
}

UninstallOptions contains the options for the uninstallation command.

func NewUninstallOptions

func NewUninstallOptions(streams genericclioptions.IOStreams) *UninstallOptions

NewUninstallOptions returns a UninstallOptions.

func (*UninstallOptions) Complete

func (o *UninstallOptions) Complete(ctx *context.RWContext, cmd *cobra.Command, args []string) error

func (*UninstallOptions) Run

func (o *UninstallOptions) Run(ctx *context.RWContext, cmd *cobra.Command, args []string) error

Run will run the command as followed: 1. ensure the latest risingwave file exists. 2. delete the resource by the risingwave file. TODO: need record which versions installed. TODO: need to ensure no instances running before uninstall. Issue: https://github.com/risingwavelabs/risingwave-operator/issues/184

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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