subctl

package
v0.24.0-m0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 76 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultOperationTimeout   uint = 240
	DefaultConnectionTimeout  uint = 60
	DefaultConnectionAttempts uint = 2
)

Variables

View Source
var (
	DeployBroker           = deploy.Broker
	ReadBrokerInfoFromFile = broker.ReadInfoFromFile
	WriteBrokerInfoToFile  = broker.WriteInfoToFile
)
View Source
var (
	DiagnoseCNIConfig                        = diagnose.CNIConfig
	DiagnoseConnections                      = diagnose.Connections
	DiagnoseDeployments                      = diagnose.Deployments
	DiagnoseGlobalnetConfig                  = diagnose.GlobalnetConfig
	DiagnoseK8sVersion                       = diagnose.K8sVersion
	DiagnoseKubeProxyMode                    = diagnose.KubeProxyMode
	DiagnoseServiceDiscovery                 = diagnose.ServiceDiscovery
	DiagnoseFirewallIntraVxLANConfig         = diagnose.FirewallIntraVxLANConfig
	DiagnoseTunnelConfigAcrossClusters       = diagnose.TunnelConfigAcrossClusters
	DiagnoseNatDiscoveryConfigAcrossClusters = diagnose.NatDiscoveryConfigAcrossClusters
)
View Source
var JoinClusterToBroker = join.ClusterToBroker
View Source
var LatestReleaseURL = "https://api.github.com/repos/submariner-io/releases/releases/latest"
View Source
var NewInputPrompt = func(from survey.Prompt) survey.Prompt {
	return from
}
View Source
var NewReporter = cli.NewReporter
View Source
var RecoverData = broker.RecoverData
View Source
var RunVerify func(options VerifyOptions, fromClusterInfo, toClusterInfo, extraClusterInfo *cluster.Info,
	namespace string, specLabels []string) error
View Source
var UninstallAll = uninstall.All
View Source
var VersionCmd = &cobra.Command{
	Use:   "version",
	Short: "Get version information on subctl",
	Long: `This command shows the version tag, and git commit for your
subctl binary.`,
	Run: subctlVersion,
}

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func NewDeployBrokerCmd added in v0.23.1

func NewDeployBrokerCmd() *cobra.Command

NewDeployBrokerCmd returns the deploy-broker command.

func NewDiagnoseCmd added in v0.23.1

func NewDiagnoseCmd() *cobra.Command

func NewJoinCmd added in v0.22.0

func NewJoinCmd() *cobra.Command

func NewRecoverBrokerInfoCmd added in v0.23.1

func NewRecoverBrokerInfoCmd() *cobra.Command

NewRecoverBrokerInfoCmd returns the recover-broker-info command.

func NewUninstallCmd added in v0.23.1

func NewUninstallCmd() *cobra.Command

NewUninstallCmd returns the uninstall command.

func NewUpgradeCmd added in v0.23.1

func NewUpgradeCmd() *cobra.Command

func NewVerifyCmd added in v0.23.1

func NewVerifyCmd() *cobra.Command

Types

type DeployBrokerCommand added in v0.23.1

type DeployBrokerCommand struct {
	// contains filtered or unexported fields
}

type JoinCommand added in v0.22.0

type JoinCommand struct {
	// contains filtered or unexported fields
}

type RecoverBrokerCommand added in v0.23.1

type RecoverBrokerCommand struct {
	// contains filtered or unexported fields
}

type VerifyOptions added in v0.22.0

type VerifyOptions struct {
	VerboseConnectivityVerification   bool
	DisruptiveTests                   bool
	SkipConnectorSrcIPCheck           bool
	SkipIntraClusterConnectivityTests bool
	OperationTimeout                  uint
	ConnectionTimeout                 uint
	ConnectionAttempts                uint
	PacketSize                        uint
	JunitReport                       string
	VerifyOnly                        string
}

Jump to

Keyboard shortcuts

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