submarineragent

package
v0.0.0-...-28b56c0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyManifestWork

func ApplyManifestWork(required *workv1.ManifestWork, client workv1client.Interface, ctx context.Context) error

func ApplySubmarinerManifestWorks

func ApplySubmarinerManifestWorks(config *SubmarinerConfig, client workv1client.Interface, ctx context.Context) error

func NewSubmarinerAgentController

func NewSubmarinerAgentController(
	kubeClient kubernetes.Interface,
	dynamicClient dynamic.Interface,
	clusterClient clientset.Interface,
	manifestWorkClient workv1client.Interface,
	clusterInformer clusterinformerv1.ManagedClusterInformer,
	clusterSetInformer clusterinformerv1alpha1.ManagedClusterSetInformer,
	manifestWorkInformer workinformer.ManifestWorkInformer,
	recorder events.Recorder) factory.Controller

NewSubmarinerAgentController returns a submarinerAgentController instance

func RemoveSubmarinerManifestWorks

func RemoveSubmarinerManifestWorks(namespace string, client workv1client.Interface, ctx context.Context) error

Types

type SubmarinerConfig

type SubmarinerConfig struct {
	BrokerAPIServer string
	BrokerNamespace string
	BrokerToken     string
	BrokerCA        string
	IPSecPSK        string
	ClusterName     string
	ClusterCIDR     string
	ServiceCIDR     string
}

func NewSubmarinerConfig

func NewSubmarinerConfig(
	client kubernetes.Interface,
	dynamicClient dynamic.Interface,
	clusterName, brokeNamespace string) (*SubmarinerConfig, error)

Directories

Path Synopsis
Code generated for package bindata by go-bindata DO NOT EDIT.
Code generated for package bindata by go-bindata DO NOT EDIT.

Jump to

Keyboard shortcuts

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