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