config

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: Apache-2.0 Imports: 33 Imported by: 30

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonOptions added in v0.3.0

type CommonOptions struct {
	Debug     bool
	Trace     bool
	LogFormat string

	ProfilerAddress string
	KubeConfig      string
}

type Management

type Management struct {
	Apply             apply.Apply
	ControllerFactory controller.SharedControllerFactory

	VirtFactory              *kubevirt.Factory
	HarvesterFactory         *ctlharvesterv1.Factory
	LoggingFactory           *loggingv1.Factory
	CoreFactory              *corev1.Factory
	CniFactory               *cniv1.Factory
	AppsFactory              *appsv1.Factory
	BatchFactory             *batchv1.Factory
	RbacFactory              *rbacv1.Factory
	StorageFactory           *storagev1.Factory
	SnapshotFactory          *snapshotv1.Factory
	LonghornFactory          *longhornv1.Factory
	ProvisioningFactory      *provisioningv1.Factory
	CatalogFactory           *catalogv1.Factory
	RancherManagementFactory *rancherv3.Factory
	MonitoringFactory        *monitoringv1.Factory
	HelmFactory              *helmv1.Factory

	NetworkingFactory *networking.Factory
	UpgradeFactory    *upgrade.Factory
	ClusterFactory    *cluster.Factory

	ClientSet  *kubernetes.Clientset
	RestConfig *rest.Config
	// contains filtered or unexported fields
}

func (*Management) NewRecorder

func (s *Management) NewRecorder(componentName, namespace, nodeName string) record.EventRecorder

func (*Management) Start

func (s *Management) Start(threadiness int) error

type Options

type Options struct {
	Namespace       string
	Threadiness     int
	HTTPListenPort  int
	HTTPSListenPort int

	RancherEmbedded bool
	RancherURL      string
	HCIMode         bool
}

type Scaled

type Scaled struct {
	Ctx               context.Context
	ControllerFactory controller.SharedControllerFactory

	VirtFactory              *kubevirt.Factory
	HarvesterFactory         *ctlharvesterv1.Factory
	HarvesterCoreFactory     *ctlharvcorev1.Factory
	CoreFactory              *corev1.Factory
	AppsFactory              *appsv1.Factory
	BatchFactory             *batchv1.Factory
	RbacFactory              *rbacv1.Factory
	CniFactory               *cniv1.Factory
	LoggingFactory           *loggingv1.Factory
	SnapshotFactory          *snapshotv1.Factory
	StorageFactory           *storagev1.Factory
	LonghornFactory          *longhornv1.Factory
	RancherManagementFactory *rancherv3.Factory

	Management   *Management
	TokenManager dashboardapi.TokenManager
	// contains filtered or unexported fields
}

func ScaledWithContext

func ScaledWithContext(ctx context.Context) *Scaled

func SetupScaled

func SetupScaled(ctx context.Context, restConfig *rest.Config, opts *generic.FactoryOptions, namespace string) (context.Context, *Scaled, error)

func (*Scaled) Start

func (s *Scaled) Start(threadiness int) error

Jump to

Keyboard shortcuts

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