fluxcd

package
v0.1.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FluxComponent

type FluxComponent interface {
	juggler.Component

	BuildSourceRepository(ctx context.Context) (SourceAdapter, error)
	BuildManifesto(ctx context.Context) (Manifesto, error)
}

type FluxReconciler

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

func NewFluxReconciler

func NewFluxReconciler(logger logr.Logger, localClient client.Client, remoteClient client.Client) *FluxReconciler

func (*FluxReconciler) Install

func (r *FluxReconciler) Install(ctx context.Context, component juggler.Component) error

func (*FluxReconciler) KnownTypes

func (r *FluxReconciler) KnownTypes() []reflect.Type

KnownTypes implements juggler.ComponentReconciler.

func (*FluxReconciler) Observe

func (*FluxReconciler) PreInstall

func (r *FluxReconciler) PreInstall(ctx context.Context, component juggler.Component) error

PreInstall implements juggler.ComponentReconciler.

func (*FluxReconciler) PreUninstall

func (r *FluxReconciler) PreUninstall(ctx context.Context, component juggler.Component) error

func (*FluxReconciler) PreUpdate

func (r *FluxReconciler) PreUpdate(ctx context.Context, component juggler.Component) error

PreUpdate implements juggler.ComponentReconciler.

func (*FluxReconciler) RegisterType

func (r *FluxReconciler) RegisterType(comps ...FluxComponent)

func (*FluxReconciler) Uninstall

func (r *FluxReconciler) Uninstall(ctx context.Context, component juggler.Component) error

func (*FluxReconciler) Update

func (r *FluxReconciler) Update(ctx context.Context, component juggler.Component) error

type FluxResource

type FluxResource interface {
	GetObject() client.Object
	GetObjectKey() client.ObjectKey
	GetHealthiness() juggler.ResourceHealthiness

	Reconcile(desired FluxResource) error
	ApplyDefaults()
}

type GitRepositoryAdapter

type GitRepositoryAdapter struct {
	Source *sourcev1.GitRepository
}

GitRepositoryAdapter implements SourceAdapter

func (*GitRepositoryAdapter) ApplyDefaults

func (g *GitRepositoryAdapter) ApplyDefaults()

func (*GitRepositoryAdapter) Empty

Empty implements SourceAdapter.

func (*GitRepositoryAdapter) GetHealthiness

func (g *GitRepositoryAdapter) GetHealthiness() juggler.ResourceHealthiness

GetHealthiness implements SourceAdapter.

func (*GitRepositoryAdapter) GetObject

func (g *GitRepositoryAdapter) GetObject() client.Object

GetObject returns the GitRepository as a client.Object to be used with the client.Client or alike interfaces

func (*GitRepositoryAdapter) GetObjectKey

func (g *GitRepositoryAdapter) GetObjectKey() client.ObjectKey

GetObjectKey returns the GitRepository as a client.ObjectKey to be used with client.Client.Get

func (*GitRepositoryAdapter) Reconcile

func (g *GitRepositoryAdapter) Reconcile(desired FluxResource) error

Reconcile implements SourceAdapter.

type HelmReleaseManifesto

type HelmReleaseManifesto struct {
	Manifest *helmv2.HelmRelease
}

func (*HelmReleaseManifesto) ApplyDefaults

func (h *HelmReleaseManifesto) ApplyDefaults()

func (*HelmReleaseManifesto) Empty

func (h *HelmReleaseManifesto) Empty() Manifesto

Empty implements Manifesto.

func (*HelmReleaseManifesto) GetHealthiness

func (h *HelmReleaseManifesto) GetHealthiness() juggler.ResourceHealthiness

GetHealthiness implements Manifesto.

func (*HelmReleaseManifesto) GetObject

func (h *HelmReleaseManifesto) GetObject() client.Object

func (*HelmReleaseManifesto) GetObjectKey

func (h *HelmReleaseManifesto) GetObjectKey() client.ObjectKey

func (*HelmReleaseManifesto) Reconcile

func (h *HelmReleaseManifesto) Reconcile(desired FluxResource) error

Reconcile implements Manifesto.

type HelmRepositoryAdapter

type HelmRepositoryAdapter struct {
	Source *sourcev1.HelmRepository
}

HelmRepositoryAdapter implements SourceAdapter

func (*HelmRepositoryAdapter) ApplyDefaults

func (h *HelmRepositoryAdapter) ApplyDefaults()

func (*HelmRepositoryAdapter) Empty

Empty implements SourceAdapter.

func (*HelmRepositoryAdapter) GetHealthiness

GetHealthiness implements SourceAdapter.

func (*HelmRepositoryAdapter) GetObject

func (h *HelmRepositoryAdapter) GetObject() client.Object

GetObject returns the HelmRepository as a client.Object to be used with the client.Client or alike interfaces

func (*HelmRepositoryAdapter) GetObjectKey

func (h *HelmRepositoryAdapter) GetObjectKey() client.ObjectKey

GetObjectKey returns the HelmRepository as a client.ObjectKey to be used with client.Client.Get

func (*HelmRepositoryAdapter) Reconcile

func (h *HelmRepositoryAdapter) Reconcile(desired FluxResource) error

Reconcile implements SourceAdapter.

type Manifesto

type Manifesto interface {
	FluxResource

	// Empty returns a new adapter that wraps the same type.
	// It contains an empty (non-nil) client.Object retaining only the name and namespace.
	// This is useful when working with controllerutil.CreateOrUpdate(...).
	Empty() Manifesto
}

type SourceAdapter

type SourceAdapter interface {
	FluxResource

	// Empty returns a new adapter that wraps the same type.
	// It contains an empty (non-nil) client.Object retaining only the name and namespace.
	// This is useful when working with controllerutil.CreateOrUpdate(...).
	Empty() SourceAdapter
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳