subcmd

package
v0.0.0-...-97dd610 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TestInstallFlag and TestCli are uses for black box testing
	TestInstallFlag bool
	TestCli         client.Client
)
View Source
var (
	// todo: think about a efficient way to change selectors and ports when yaml files change
	// ports are coming from /deploy/charts and /deploy/kubernetes
	ComponentPortMap = map[operator.ComponentName]int{
		operator.Admin:      8080,
		operator.Grafana:    3000,
		operator.Nacos:      8848,
		operator.Prometheus: 9090,
		operator.Skywalking: 8080,
		operator.Zipkin:     9411,
	}
	// selectors are coming from /deploy/charts and /deploy/kubernetes
	ComponentSelectorMap = map[operator.ComponentName]string{
		operator.Admin:      "app.kubernetes.io/name=dubbo-admin",
		operator.Grafana:    "app.kubernetes.io/name=grafana",
		operator.Nacos:      "app.kubernetes.io/name=nacos",
		operator.Prometheus: "app=prometheus",
		operator.Skywalking: "app=skywalking, component=ui",
		operator.Zipkin:     "app.kubernetes.io/name=zipkin",
	}
)

Functions

func ConfigDashboardAdminCmd

func ConfigDashboardAdminCmd(baseCmd *cobra.Command)

func ConfigDashboardGrafanaCmd

func ConfigDashboardGrafanaCmd(baseCmd *cobra.Command)

func ConfigDashboardNacosCmd

func ConfigDashboardNacosCmd(baseCmd *cobra.Command)

func ConfigDashboardPrometheusCmd

func ConfigDashboardPrometheusCmd(baseCmd *cobra.Command)

func ConfigDashboardSkywalkingCmd

func ConfigDashboardSkywalkingCmd(baseCmd *cobra.Command)

func ConfigDashboardZipkinCmd

func ConfigDashboardZipkinCmd(baseCmd *cobra.Command)

func ConfigManifestDiffCmd

func ConfigManifestDiffCmd(baseCmd *cobra.Command)

func ConfigManifestGenerateCmd

func ConfigManifestGenerateCmd(baseCmd *cobra.Command)

func ConfigManifestInstallCmd

func ConfigManifestInstallCmd(baseCmd *cobra.Command)

func ConfigManifestUninstallCmd

func ConfigManifestUninstallCmd(baseCmd *cobra.Command)

func ConfigProfileDiffCmd

func ConfigProfileDiffCmd(baseCmd *cobra.Command)

func ConfigProfileListCmd

func ConfigProfileListCmd(baseCmd *cobra.Command)

Types

type DashboardCommonArgs

type DashboardCommonArgs struct {
	KubeConfigPath string
	// selected cluster info of kubeconfig
	Context string
	// contains filtered or unexported fields
}

type ManifestDiffArgs

type ManifestDiffArgs struct {
	CompareDir bool
}

type ManifestGenerateArgs

type ManifestGenerateArgs struct {
	FileNames    []string
	ChartsPath   string
	ProfilesPath string
	OutputPath   string
	SetFlags     []string
}

type ManifestInstallArgs

type ManifestInstallArgs struct {
	ManifestGenerateArgs
	KubeConfigPath string
	// selected cluster info of kubeconfig
	Context string
}

type ManifestUninstallArgs

type ManifestUninstallArgs struct {
	ManifestGenerateArgs
	KubeConfigPath string
	// selected cluster info of kubeconfig
	Context string
}

type ProfileDiffArgs

type ProfileDiffArgs struct {
	ProfilesPath string
}

type ProfileListArgs

type ProfileListArgs struct {
	ProfilesPath string
}

Jump to

Keyboard shortcuts

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