connectivitycheckcontroller

package
v0.0.0-...-201d816 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 29 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPodNetworkConnectivityCheckTemplate

func NewPodNetworkConnectivityCheckTemplate(address, namespace string, options ...func(*v1alpha1.PodNetworkConnectivityCheck)) *v1alpha1.PodNetworkConnectivityCheck

new PodNetworkConnectivityCheck whose name is '$(SOURCE)-to-$(TARGET)'. Use the WithSource and WithTarget option funcs to replace the '$(SOURCE)' and '$(TARGET)' tokens.

func WithSource

func WithSource(source string) func(*v1alpha1.PodNetworkConnectivityCheck)

WithSource option replaces the $(SOURCE) token in the name.

func WithTarget

func WithTarget(target string) func(*v1alpha1.PodNetworkConnectivityCheck)

WithTarget option replaces the $(TARGET) token in the name.

func WithTlsClientCert

func WithTlsClientCert(secretName string) func(*v1alpha1.PodNetworkConnectivityCheck)

WithTlsClientCert option specifies the name of the secret in the check namespace that contains a tls client certificate (and key) to use when performing the check.

Types

type ConnectivityCheckController

type ConnectivityCheckController interface {
	factory.Controller

	WithPodNetworkConnectivityCheckFn(podNetworkConnectivityCheckFn PodNetworkConnectivityCheckFunc) ConnectivityCheckController
	WithPodNetworkConnectivityCheckApplyFn(podNetworkConnectivityCheckApplyFn PodNetworkConnectivityCheckApplyFunc) ConnectivityCheckController
	WithReapOldConnectivityCheck(operatorcontrolplaneInformers operatorcontrolplaneinformers.SharedInformerFactory) ConnectivityCheckController
}

func NewConnectivityCheckController

func NewConnectivityCheckController(
	namespace string,
	operatorClient v1helpers.OperatorClient,
	operatorcontrolplaneClient *operatorcontrolplaneclient.Clientset,
	apiextensionsClient *apiextensionsclient.Clientset,
	apiextensionsInformers apiextensionsinformers.SharedInformerFactory,
	configInformers configinformers.SharedInformerFactory,
	triggers []factory.Informer,
	recorder events.Recorder,
	enabledByDefault bool,
) ConnectivityCheckController

type PodNetworkConnectivityCheckFunc

type PodNetworkConnectivityCheckFunc func(ctx context.Context, syncContext factory.SyncContext) ([]*v1alpha1.PodNetworkConnectivityCheck, error)

Jump to

Keyboard shortcuts

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