cluster

package
v0.0.0-...-ce0d5dd Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultProfileName = "default"
)
View Source
const (
	YAMLSeparator = "\n---\n"
)

Variables

View Source
var InstallerScope = log.RegisterScope("installer")

Functions

func AddFlags

func AddFlags(cmd *cobra.Command, rootArgs *RootArgs)

func GenDOPFromProfile

func GenDOPFromProfile(profileOrPath, fileOverlayYAML string, setFlags []string, allowUnknownField bool, l clog.Logger) (string, *dopv1alpha1.DubboOperator, error)

func Install

func Install(kubeClient kube.CLIClient, rootArgs *RootArgs, iArgs *installArgs, cl clog.Logger, stdOut io.Writer, p Printer) error

func InstallCmd

func InstallCmd(ctx cli.Context) *cobra.Command

func InstallCmdWithArgs

func InstallCmdWithArgs(ctx cli.Context, rootArgs *RootArgs, iArgs *installArgs) *cobra.Command

func ManifestCmd

func ManifestCmd(ctx cli.Context) *cobra.Command

func OptionDeterminate

func OptionDeterminate(msg string, writer io.Writer) bool

func ParseYAMLfilenames

func ParseYAMLfilenames(filenames []string, l clog.Logger) (overlayYAML string, profile string, err error)

func ProfileCmd

func ProfileCmd(ctx cli.Context) *cobra.Command

func ReadLayeredYAMLs

func ReadLayeredYAMLs(filenames []string) (string, error)

func Uninstall

func Uninstall(cmd *cobra.Command, ctx cli.Context, rootArgs *RootArgs, uiArgs *uninstallArgs) error

func UninstallCmd

func UninstallCmd(ctx cli.Context) *cobra.Command

func UpgradeCmd

func UpgradeCmd(ctx cli.Context) *cobra.Command

Types

type Printer

type Printer interface {
	Printf(string, ...any)
	Println(string)
}

func NewPrinterForWriter

func NewPrinterForWriter(w io.Writer) Printer

func NewPtrForWtr

func NewPtrForWtr(w io.Writer) Printer

type RootArgs

type RootArgs struct {
	DryRun bool
	RootFlags
}

type RootFlags

type RootFlags struct{}

Jump to

Keyboard shortcuts

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