Documentation ¶
Index ¶
- func FormatResourceForCLIWithNamespace(pncc *applyconfigv1alpha1.PodNetworkConnectivityCheckApplyConfiguration) string
- func NewPodNetworkConnectivityCheckTemplate(address, namespace string, ...) *v1alpha1.PodNetworkConnectivityCheck
- func WithSource(source string) func(*v1alpha1.PodNetworkConnectivityCheck)
- func WithTarget(target string) func(*v1alpha1.PodNetworkConnectivityCheck)
- func WithTlsClientCert(secretName string) func(*v1alpha1.PodNetworkConnectivityCheck)
- type ConnectivityCheckController
- type PodNetworkConnectivityCheckApplyFunc
- type PodNetworkConnectivityCheckFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatResourceForCLIWithNamespace ¶
func FormatResourceForCLIWithNamespace(pncc *applyconfigv1alpha1.PodNetworkConnectivityCheckApplyConfiguration) string
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 PodNetworkConnectivityCheckApplyFunc ¶
type PodNetworkConnectivityCheckApplyFunc func(ctx context.Context, syncContext factory.SyncContext) ([]*applyconfigv1alpha1.PodNetworkConnectivityCheckApplyConfiguration, error)
type PodNetworkConnectivityCheckFunc ¶
type PodNetworkConnectivityCheckFunc func(ctx context.Context, syncContext factory.SyncContext) ([]*v1alpha1.PodNetworkConnectivityCheck, error)
Click to show internal directories.
Click to hide internal directories.