Documentation
¶
Index ¶
- type FluxOCIBridgeOptions
- type FluxOCIWorker
- func (w *FluxOCIWorker) Apply(wctx api.BridgeWorkerContext, payload api.BridgeWorkerPayload) error
- func (w *FluxOCIWorker) Destroy(wctx api.BridgeWorkerContext, payload api.BridgeWorkerPayload) error
- func (w *FluxOCIWorker) ID() api.BridgeWorkerID
- func (w *FluxOCIWorker) Import(wctx api.BridgeWorkerContext, payload api.BridgeWorkerPayload) error
- func (w *FluxOCIWorker) Info(options api.InfoOptions) api.BridgeWorkerInfo
- func (w *FluxOCIWorker) Refresh(wctx api.BridgeWorkerContext, payload api.BridgeWorkerPayload) error
- func (w *FluxOCIWorker) WatchForApply(wctx api.BridgeWorkerContext, payload api.BridgeWorkerPayload) error
- func (w *FluxOCIWorker) WatchForDestroy(wctx api.BridgeWorkerContext, payload api.BridgeWorkerPayload) error
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 (w *FluxOCIWorker) Apply(wctx api.BridgeWorkerContext, payload api.BridgeWorkerPayload) error
func (*FluxOCIWorker) Destroy ¶
func (w *FluxOCIWorker) Destroy(wctx api.BridgeWorkerContext, payload api.BridgeWorkerPayload) error
func (*FluxOCIWorker) ID ¶
func (w *FluxOCIWorker) ID() api.BridgeWorkerID
func (*FluxOCIWorker) Import ¶
func (w *FluxOCIWorker) Import(wctx api.BridgeWorkerContext, payload api.BridgeWorkerPayload) error
func (*FluxOCIWorker) Info ¶
func (w *FluxOCIWorker) Info(options api.InfoOptions) api.BridgeWorkerInfo
func (*FluxOCIWorker) Refresh ¶
func (w *FluxOCIWorker) Refresh(wctx api.BridgeWorkerContext, payload api.BridgeWorkerPayload) error
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