fleet

package
v0.4.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GitRepoKind       = sourcev1beta2.GitRepositoryKind
	HelmRepoKind      = sourcev1beta2.HelmRepositoryKind
	OCIRepoKind       = sourcev1beta2.OCIRepositoryKind
	KustomizationKind = kustomizev1beta2.KustomizationKind
	HelmReleaseKind   = helmv2b1.HelmReleaseKind

	ApplicationLabel     = "apps.kurator.dev/app-name"
	ApplicationKind      = "Application"
	ApplicationFinalizer = "apps.kurator.dev"
)
View Source
const (
	ClusterKind         = "Cluster"
	AttachedClusterKind = "AttachedCluster"
)
View Source
const (
	FleetKind      = "Fleet"
	FleetFinalizer = "fleet.kurator.dev"
)
View Source
const (
	MonitoringNamespace         = "monitoring"
	PrometheusThanosServiceName = "prometheus-prometheus-thanos"

	NoneClusterIP = "None"
)
View Source
const (
	FleetNameLabel  = "fleet.kurator.dev/name"
	FleetPluginName = "fleet.kurator.dev/plugin"

	ManagedByLabel        = "app.kubernetes.io/managed-by"
	ManagedByFleetManager = "fleet-manager"
)
View Source
const FleetLabel = "fleet.kurator.dev/fleet-name"
View Source
const FleetWorkerClusterRoleBindingName = "fleet-worker"
View Source
const KarmadaCtlImage = "ghcr.io/kurator-dev/karmadactl:v0.1.0"
View Source
const RequeueAfter = 5 * time.Second
View Source
const ServiceAccountName = "fleet-manager-worker"

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationManager added in v0.4.0

type ApplicationManager struct {
	client.Client
	Scheme *runtime.Scheme
}

ApplicationManager reconciles an Application object

func (*ApplicationManager) Reconcile added in v0.4.0

func (a *ApplicationManager) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)

func (*ApplicationManager) SetupWithManager added in v0.4.0

func (a *ApplicationManager) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

SetupWithManager sets up the controller with the Manager.

type ClusterInterface added in v0.4.0

type ClusterInterface interface {
	IsReady() bool
	GetObject() client.Object
	GetSecretName() string
	GetSecretKey() string
}

TODO: rename to FleetCluster?

type ClusterKey added in v0.4.0

type ClusterKey struct {
	Kind string
	Name string
}

type FleetManager

type FleetManager struct {
	client.Client
	Scheme    *runtime.Scheme
	Manifests fs.FS
}

FleetManager reconciles a Cluster object

func (*FleetManager) Reconcile

func (f *FleetManager) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)

func (*FleetManager) SetupWithManager

func (f *FleetManager) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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