argocd

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: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgoCDOCIBridgeOptions added in v0.1.25

type ArgoCDOCIBridgeOptions struct {
	KubeContext       string `json:",omitempty"`
	ArgoCDNamespace   string `json:",omitempty"` // Namespace where ArgoCD Application will be created (default: "argocd")
	DestinationServer string `json:",omitempty"` // Target cluster API server URL (default: "https://kubernetes.default.svc")
	Project           string `json:",omitempty"` // ArgoCD project name (default: "default")
	SyncPolicy        string `json:",omitempty"` // "automated" or "manual" (default: "manual")
	PruneEnabled      bool   `json:",omitempty"` // Enable pruning of orphaned resources
	SelfHealEnabled   bool   `json:",omitempty"` // Enable self-healing (auto-sync on drift)
	OCIRepoURL        string `json:",omitempty"` // OCI registry URL - if empty, auto-constructed from OCIHost and unit info
	OCIHost           string `json:",omitempty"` // OCI registry host - optional, inferred from server URL if not set
	OCIPath           string `json:",omitempty"` // Path within OCI artifact (default: ".")
	DisableRepoCreds  bool   `json:",omitempty"` // Skip auto-generation of ArgoCD repo-creds Secret (default: false)
}

ArgoCDOCIBridgeOptions contains the configuration parameters for the ArgoCD OCI bridge worker.

DestinationNamespace is intentionally absent: the renderer bakes the source Application's spec.destination.namespace into the rendered manifests so the stored configuration is self-contained.

type ArgoCDOCIWorker

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

ArgoCDOCIWorker transforms Kubernetes manifests into ArgoCD Application CRDs using OCI registry as the source, then applies them using the parent's cliutils applier.

func NewArgoCDOCIWorker

func NewArgoCDOCIWorker(workerID, workerSecret string) *ArgoCDOCIWorker

NewArgoCDOCIWorker creates a new ArgoCDOCIWorker with properly initialized embedded KubernetesBridgeWorker (including applierType). workerID and workerSecret are used to auto-generate ArgoCD repo-creds Secrets.

func (*ArgoCDOCIWorker) Apply

func (*ArgoCDOCIWorker) Destroy

func (*ArgoCDOCIWorker) ID

func (*ArgoCDOCIWorker) Import

func (*ArgoCDOCIWorker) Info

func (*ArgoCDOCIWorker) Refresh

func (*ArgoCDOCIWorker) WatchForApply

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

func (*ArgoCDOCIWorker) WatchForDestroy

func (w *ArgoCDOCIWorker) 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
⌂ 换网址