Documentation
¶
Index ¶
Constants ¶
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 ApplicationReconciler ¶
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 ¶
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 ¶
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 ¶
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