raw

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAgentClientCfg

func CreateAgentClientCfg(
	ctx context.Context,
	k8sClientset kubernetes.Interface,
	antreaClientset antrea.Interface,
	kubeconfig *rest.Config,
	nodeName string,
	insecure bool,
) (*rest.Config, error)

func CreateAgentClientCfgFromObjects added in v1.13.0

func CreateAgentClientCfgFromObjects(
	ctx context.Context,
	k8sClientset kubernetes.Interface,
	kubeconfig *rest.Config,
	node *corev1.Node,
	agentInfo *v1beta1.AntreaAgentInfo,
	insecure bool,
) (*rest.Config, error)

func CreateControllerClientCfg

func CreateControllerClientCfg(
	ctx context.Context,
	k8sClientset kubernetes.Interface,
	antreaClientset antrea.Interface,
	kubeconfig *rest.Config,
	insecure bool,
) (*rest.Config, error)

func GetControllerCACert added in v1.13.0

func GetControllerCACert(ctx context.Context, client kubernetes.Interface) ([]byte, error)

func GetNodeAddrs added in v1.13.0

func GetNodeAddrs(node *corev1.Node) (*ip.DualStackIPs, error)

func ResolveKubeconfig

func ResolveKubeconfig(cmd *cobra.Command) (*rest.Config, error)

func SetupClients

func SetupClients(kubeconfig *rest.Config) (*kubernetes.Clientset, *antrea.Clientset, error)

func SetupLocalKubeconfig added in v1.13.0

func SetupLocalKubeconfig(kubeconfig *rest.Config)

Types

This section is empty.

Jump to

Keyboard shortcuts

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