funcs

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddAKODeploymentConfigAndClusterControllerToMgrFunc builder.AddToManagerFunc = func(mgr ctrlmgr.Manager) error {
	rec := &akodeploymentconfig.AKODeploymentConfigReconciler{
		Client: mgr.GetClient(),
		Log:    ctrl.Log.WithName("controllers").WithName("AKODeploymentConfig"),
		Scheme: mgr.GetScheme(),
	}
	builder.FakeAvi = aviclient.NewFakeAviClient()
	rec.SetAviClient(builder.FakeAvi)

	adcClusterReconciler := adccluster.NewReconciler(rec.Client, rec.Log, rec.Scheme)
	adcClusterReconciler.GetRemoteClient = adccluster.GetFakeRemoteClient
	rec.ClusterReconciler = adcClusterReconciler

	if err := rec.SetupWithManager(mgr); err != nil {
		return err
	}

	if err := (&cluster.ClusterReconciler{
		Client: mgr.GetClient(),
		Log:    ctrl.Log.WithName("controllers").WithName("Cluster"),
		Scheme: mgr.GetScheme(),
	}).SetupWithManager(mgr); err != nil {
		return err
	}

	return nil
}
View Source
var AddAllToSchemeFunc builder.AddToSchemeFunc = func(scheme *runtime.Scheme) (err error) {
	err = networkv1alpha1.AddToScheme(scheme)
	if err != nil {
		return err
	}
	err = akoov1alpha1.AddToScheme(scheme)
	if err != nil {
		return err
	}
	err = akov1alpha1.AddToScheme(scheme)
	if err != nil {
		return err
	}
	err = corev1.AddToScheme(scheme)
	if err != nil {
		return err
	}
	err = clusterv1.AddToScheme(scheme)
	if err != nil {
		return err
	}
	return nil
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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