calico

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientFromConfig added in v0.2.0

func ClientFromConfig(path string) (*clientset.Clientset, error)

ClientFromConfig returns a calico client (clientset) from the kubeconfig path or from the in-cluster service account environment.

func CreateOrUpdateGlobalNetworkSet

func CreateOrUpdateGlobalNetworkSet(client *clientset.Clientset, name string, labels map[string]string, nets []string) error

CreateOrUpdateGlobalNetworkSet will try to get a globalNetworkSet and update if exists, otherwise create a new one

func DeleteGlobalNetworkSet

func DeleteGlobalNetworkSet(client *clientset.Clientset, name string) error

DeleteGlobalNetworkSet will try to delete a GlobalNetworkSet

func GlobalNetworkSetList

func GlobalNetworkSetList(client *clientset.Clientset, labels map[string]string) ([]v3.GlobalNetworkSet, error)

GlobalNetworkSetList returns a list of sets that can match all the passed labels (AND matching)

Types

This section is empty.

Jump to

Keyboard shortcuts

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