commands

package
v0.2.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckClickHousePod

func CheckClickHousePod(clientset kubernetes.Interface) error

func CheckSparkOperatorPod

func CheckSparkOperatorPod(clientset kubernetes.Interface) error

func ConstStrToPointer

func ConstStrToPointer(constStr string) *string

func CreateK8sClient

func CreateK8sClient(kubeconfig string) (kubernetes.Interface, error)

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 GetServiceAddr

func GetServiceAddr(clientset kubernetes.Interface, serviceName string) (string, int, error)

func PolicyRecoPreCheck

func PolicyRecoPreCheck(clientset kubernetes.Interface) error

func ResolveKubeConfig

func ResolveKubeConfig(cmd *cobra.Command) (string, error)

func StartPortForward

func StartPortForward(kubeconfig string, service string, servicePort int, listenAddress string, listenPort int) (*portforwarder.PortForwarder, error)

Types

type SparkResourceArgs

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

Jump to

Keyboard shortcuts

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