fluxcd

package
v0.0.0-...-eb5b319 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2025 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultKubeConfigKey is the Default key for kubeconfig
	// https://fluxcd.io/docs/components/helm/helmreleases/#remote-clusters--cluster-api
	DefaultKubeConfigKey = "value"

	// FluxAppTypeKey indicate the Type of this FluxApp
	// value is one of HelmRelease and Kustomization
	FluxAppTypeKey = "gitops.kubepshere.io/type"

	// FluxAppReadyNumKey represent how many HelmRelease or Kustomization
	// are ready in form of readyNumber/totalNumber
	FluxAppReadyNumKey = "gitops.kubesphere.io/ready-number"

	// FluxAppLastRevision is the revision of the last successfully applied source.
	FluxAppLastRevision = "gitops.kubesphere.io/last-revision"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppType

type AppType string

AppType stand for the GitOps Application Type

const (
	// HelmRelease stand for FluxCD HelmRelease Application Type
	HelmRelease AppType = "HelmRelease"
	// Kustomization stand for FluxCD Kustomization Application Type
	Kustomization AppType = "Kustomization"
)

type ApplicationReconciler

type ApplicationReconciler struct {
	client.Client
	// contains filtered or unexported fields
}

ApplicationReconciler is the reconciler of the FluxCD HelmRelease and FluxCD Kustomization

func (*ApplicationReconciler) GetGroupName

func (r *ApplicationReconciler) GetGroupName() string

GetGroupName returns the group name

func (*ApplicationReconciler) GetName

func (r *ApplicationReconciler) GetName() string

GetName returns the name of this reconciler

func (*ApplicationReconciler) Reconcile

func (r *ApplicationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)

Reconcile sync the Application with underlying FluxCD HelmRelease and FluxCD Kustomization CRD

func (*ApplicationReconciler) SetupWithManager

func (r *ApplicationReconciler) SetupWithManager(mgr manager.Manager) error

SetupWithManager setups the reconciler with a manager

type ApplicationStatusReconciler

type ApplicationStatusReconciler struct {
	client.Client
	// contains filtered or unexported fields
}

ApplicationStatusReconciler represents a controller to sync the status of FluxApplication (HelmRelease and Kustomization) to Kubesphere GitOps Application

func (*ApplicationStatusReconciler) GetName

func (r *ApplicationStatusReconciler) GetName() string

GetName returns the name of this controller

func (*ApplicationStatusReconciler) Reconcile

func (r *ApplicationStatusReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)

Reconcile is the entrypoint of the controller

func (*ApplicationStatusReconciler) SetupWithManager

func (r *ApplicationStatusReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager init the logger, recorder and filters

type GitRepositoryReconciler

type GitRepositoryReconciler struct {
	client.Client
	// contains filtered or unexported fields
}

GitRepositoryReconciler is the reconciler of the FluxCDGitRepository

func (*GitRepositoryReconciler) GetName

func (r *GitRepositoryReconciler) GetName() string

GetName returns the name of this reconciler

func (*GitRepositoryReconciler) Reconcile

func (r *GitRepositoryReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)

Reconcile maintains the FluxCDGitRepository against to the GitRepository

func (*GitRepositoryReconciler) SetupWithManager

func (r *GitRepositoryReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager setups the reconciler with a manager setup the logger, recorder

type MultiClusterReconciler

type MultiClusterReconciler struct {
	client.Client
	// contains filtered or unexported fields
}

MultiClusterReconciler represents a controller to sync cluster to ArgoCD cluster

func (*MultiClusterReconciler) GetName

func (r *MultiClusterReconciler) GetName() string

GetName returns the name of this controller

func (*MultiClusterReconciler) Reconcile

func (r *MultiClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)

Reconcile sync the cluster.kubesphere.io/clusters to kubeconfig secret in DevopsProject Namespaces where Flux Application(HelmRelease and Kustomization) exist.

func (*MultiClusterReconciler) SetupWithManager

func (r *MultiClusterReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager init the logger, recorder and filters

Jump to

Keyboard shortcuts

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