Documentation ¶
Index ¶
- Constants
- func Download(fullURLFile, storagePath string) (string, error)
- func GCTestCert(ctx *cmdcontext.RWContext)
- func NewInstallCommand(ctx *cmdcontext.RWContext, streams genericclioptions.IOStreams) *cobra.Command
- func NewUninstallCommand(ctx *context.RWContext, streams genericclioptions.IOStreams) *cobra.Command
- type InstallOptions
- type UninstallOptions
Constants ¶
const ( IssuerName = "crypt-test" CertificateName = "default.test.cert" SecretName = "example-issuer-account-key" RWName = "test-for-risingwave" )
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" )
const (
UninstallExample = ` # uninstall the risingwave operator from the cluster
kubectl rw uninstall
`
)
Variables ¶
This section is empty.
Functions ¶
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) Run ¶
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