components

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewComponents

func NewComponents() (*dig.Container, error)

Returns a new pre-configured DI container.

func ProvideDiscoveryClient

func ProvideDiscoveryClient(restConfig *rest.Config) (
	discovery.DiscoveryInterface, error,
)

func ProvideDynamicCache

func ProvideDynamicCache(
	mgr ctrl.Manager,
	recorder *metrics.Recorder,
) (*dynamiccache.Cache, error)

func ProvideEnvironmentManager

func ProvideEnvironmentManager(
	client UncachedClient,
	discoveryClient discovery.DiscoveryInterface,
) *environment.Manager

func ProvideLogger

func ProvideLogger() logr.Logger

func ProvideManager

func ProvideManager(
	scheme *runtime.Scheme,
	restConfig *rest.Config,
	opts Options,
) (ctrl.Manager, error)

func ProvideMetricsRecorder

func ProvideMetricsRecorder() *metrics.Recorder

func ProvideRegistry

func ProvideRegistry(log logr.Logger, opts Options) *packageimport.Registry

func ProvideRestConfig

func ProvideRestConfig() (*rest.Config, error)

func ProvideScheme

func ProvideScheme() (*runtime.Scheme, error)

Types

type AllControllers

type AllControllers struct {
	dig.In

	ObjectSet        ObjectSetController
	ClusterObjectSet ClusterObjectSetController

	ObjectSetPhase        ObjectSetPhaseController
	ClusterObjectSetPhase ClusterObjectSetPhaseController

	ObjectDeployment        ObjectDeploymentController
	ClusterObjectDeployment ClusterObjectDeploymentController

	Package        PackageController
	ClusterPackage ClusterPackageController

	ObjectTemplate        ObjectTemplateController
	ClusterObjectTemplate ClusterObjectTemplateController
}

DI container to get all controllers.

func (AllControllers) List

func (ac AllControllers) List() []interface{}

func (AllControllers) SetupWithManager

func (ac AllControllers) SetupWithManager(mgr ctrl.Manager) error

type BootstrapControllers

type BootstrapControllers struct {
	dig.In

	ClusterPackage          ClusterPackageController
	ClusterObjectDeployment ClusterObjectDeploymentController
	ClusterObjectSet        ClusterObjectSetController
}

DI container to get only the controllers needed for self-bootstrap.

func (BootstrapControllers) List

func (bc BootstrapControllers) List() []interface{}

func (BootstrapControllers) SetupWithManager

func (bc BootstrapControllers) SetupWithManager(mgr ctrl.Manager) error

type ClusterObjectDeploymentController

type ClusterObjectDeploymentController struct {
	// contains filtered or unexported fields
}

Type alias for dependency injector to differentiate Cluster and non-cluster scoped *Generic<>Controllers.

func ProvideClusterObjectDeploymentController

func ProvideClusterObjectDeploymentController(
	mgr ctrl.Manager, log logr.Logger,
) ClusterObjectDeploymentController

type ClusterObjectSetController

type ClusterObjectSetController struct {
	// contains filtered or unexported fields
}

Type alias for dependency injector to differentiate Cluster and non-cluster scoped *Generic<>Controllers.

func ProvideClusterObjectSetController

func ProvideClusterObjectSetController(
	mgr ctrl.Manager, log logr.Logger,
	dc *dynamiccache.Cache,
	uncachedClient UncachedClient,
	recorder *metrics.Recorder,
) ClusterObjectSetController

type ClusterObjectSetPhaseController

type ClusterObjectSetPhaseController struct {
	// contains filtered or unexported fields
}

Type alias for dependency injector to differentiate Cluster and non-cluster scoped *Generic<>Controllers.

func ProvideClusterObjectSetPhaseController

func ProvideClusterObjectSetPhaseController(
	mgr ctrl.Manager, log logr.Logger,
	dc *dynamiccache.Cache,
	uncachedClient UncachedClient,
) ClusterObjectSetPhaseController

type ClusterObjectTemplateController

type ClusterObjectTemplateController struct {
	// contains filtered or unexported fields
}

Type alias for dependency injector to differentiate Cluster and non-cluster scoped *Generic<>Controllers.

func ProvideClusterObjectTemplateController

func ProvideClusterObjectTemplateController(
	mgr ctrl.Manager, log logr.Logger,
	uncachedClient UncachedClient,
	dc *dynamiccache.Cache,
) ClusterObjectTemplateController

type ClusterPackageController

type ClusterPackageController struct {
	// contains filtered or unexported fields
}

Type alias for dependency injector to differentiate Cluster and non-cluster scoped *Generic<>Controllers.

func ProvideClusterPackageController

func ProvideClusterPackageController(
	mgr ctrl.Manager, log logr.Logger,
	registry *packageimport.Registry,
	recorder *metrics.Recorder,
	opts Options,
) ClusterPackageController

type HostedClusterController

type HostedClusterController struct {
	// contains filtered or unexported fields
}

Type alias for dependency injector to differentiate Cluster and non-cluster scoped *Generic<>Controllers.

func ProvideHostedClusterController

func ProvideHostedClusterController(
	mgr ctrl.Manager, log logr.Logger,
	opts Options,
) HostedClusterController

type ObjectDeploymentController

type ObjectDeploymentController struct {
	// contains filtered or unexported fields
}

Type alias for dependency injector to differentiate Cluster and non-cluster scoped *Generic<>Controllers.

func ProvideObjectDeploymentController

func ProvideObjectDeploymentController(
	mgr ctrl.Manager, log logr.Logger,
) ObjectDeploymentController

type ObjectSetController

type ObjectSetController struct {
	// contains filtered or unexported fields
}

Type alias for dependency injector to differentiate Cluster and non-cluster scoped *Generic<>Controllers.

func ProvideObjectSetController

func ProvideObjectSetController(
	mgr ctrl.Manager, log logr.Logger,
	dc *dynamiccache.Cache,
	uncachedClient UncachedClient,
	recorder *metrics.Recorder,
) ObjectSetController

type ObjectSetPhaseController

type ObjectSetPhaseController struct {
	// contains filtered or unexported fields
}

Type alias for dependency injector to differentiate Cluster and non-cluster scoped *Generic<>Controllers.

func ProvideObjectSetPhaseController

func ProvideObjectSetPhaseController(
	mgr ctrl.Manager, log logr.Logger,
	dc *dynamiccache.Cache,
	uncachedClient UncachedClient,
) ObjectSetPhaseController

type ObjectTemplateController

type ObjectTemplateController struct {
	// contains filtered or unexported fields
}

Type alias for dependency injector to differentiate Cluster and non-cluster scoped *Generic<>Controllers.

func ProvideObjectTemplateController

func ProvideObjectTemplateController(
	mgr ctrl.Manager, log logr.Logger,
	uncachedClient UncachedClient,
	dc *dynamiccache.Cache,
) ObjectTemplateController

type Options

type Options struct {
	MetricsAddr             string
	PPROFAddr               string
	Namespace               string
	EnableLeaderElection    bool
	ProbeAddr               string
	RemotePhasePackageImage string
	RegistryHostOverrides   string
	PackageHashModifier     *int32

	// sub commands
	SelfBootstrap       string
	SelfBootstrapConfig string
	PrintVersion        bool
	CopyTo              string
}

func ProvideOptions

func ProvideOptions() (opts Options, err error)

type PackageController

type PackageController struct {
	// contains filtered or unexported fields
}

Type alias for dependency injector to differentiate Cluster and non-cluster scoped *Generic<>Controllers.

func ProvidePackageController

func ProvidePackageController(
	mgr ctrl.Manager, log logr.Logger,
	registry *packageimport.Registry,
	recorder *metrics.Recorder,
	opts Options,
) PackageController

type UncachedClient

type UncachedClient struct{ client.Client }

func ProvideUncachedClient

func ProvideUncachedClient(
	restConfig *rest.Config, scheme *runtime.Scheme,
) (UncachedClient, error)

Jump to

Keyboard shortcuts

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