flux

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FluxOCIBridgeOptions added in v0.1.25

type FluxOCIBridgeOptions struct {
	KubeContext      string // Kubernetes context name to use (defaults to current context)
	WaitTimeout      string
	FluxNamespace    string // Namespace where Flux CRs will be created (default: "flux-system")
	TargetNamespace  string // Helm units only: spec.targetNamespace on the generated HelmRelease. Ignored for Kustomization units.
	Interval         string // Flux reconcile interval (default: "10m")
	OCIRepoURL       string // OCI registry URL - if empty, auto-constructed from OCIHost and unit info
	OCIHost          string // OCI registry host - optional, inferred from server URL if not set
	OCIPath          string // Path within OCI artifact (default: ".")
	Prune            bool   // Enable pruning of orphaned resources (default: true)
	DisableRepoCreds bool   // Skip auto-generation of OCI credentials Secret (default: false)
}

FluxOCIBridgeOptions contains the configuration parameters for the Flux OCI bridge worker.

TargetNamespace is retained only for the Helm path: Flux HelmRelease's spec.targetNamespace is an install-time directive that lives on the CR, not in the chart's templates, so the bridge still needs a place to put it. For Kustomization units, manifests carry their own metadata.namespace and this field is unused.

type FluxOCIWorker

type FluxOCIWorker struct {
	kubernetes.KubernetesBridgeWorker
	// contains filtered or unexported fields
}

FluxOCIWorker transforms Kubernetes manifests into Flux OCIRepository + Kustomization CRs using OCI registry as the source, then applies them using the parent's Kubernetes applier.

func NewFluxOCIWorker

func NewFluxOCIWorker(workerID, workerSecret string) *FluxOCIWorker

NewFluxOCIWorker creates a new FluxOCIWorker with properly initialized embedded kubernetes.KubernetesBridgeWorker. workerID and workerSecret are used to auto-generate OCI credential Secrets for Flux.

func (*FluxOCIWorker) Apply

func (*FluxOCIWorker) Destroy

func (*FluxOCIWorker) ID

func (*FluxOCIWorker) Import

func (*FluxOCIWorker) Info

func (*FluxOCIWorker) Refresh

func (*FluxOCIWorker) WatchForApply

func (w *FluxOCIWorker) WatchForApply(wctx api.BridgeWorkerContext, payload api.BridgeWorkerPayload) error

func (*FluxOCIWorker) WatchForDestroy

func (w *FluxOCIWorker) WatchForDestroy(wctx api.BridgeWorkerContext, payload api.BridgeWorkerPayload) error

Jump to

Keyboard shortcuts

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