How k4kratik/argo-workflows works
“Big Picture” Layers
a. Client Layer: Represent the multiple ways users interact with the system. This includes:
• The UI (the “ui” directory contains the React–based dashboard),
• CLI tools (found under “cmd/argo” and “cmd/argoexec”),
• Client libraries in multiple languages (Golang, Java, and Python under “sdks”).
c. Workflow Management Core:
• Workflow Controller(s): Represented by “cmd/workflow-controller” and its supporting packages under “workflow/controller”. This component watches Kubernetes CRDs, schedules tasks, manages node state, and enforces policies (timeouts, retries, etc.).
• Executors: These components (found in “server”, “workflow/executor”, and related OS‐specific implementations) are responsible for running individual steps within a workflow.
d. Persistence and Archival:
• Artifact and Workflow Archive: You have folders such as “persist/sqldb” for archiving past executions, along with separate servers for archived workflows (“server/workflowarchive”).
e. Plugin & Extension Services:
• Cluster Workflow Templates, Cron Workflow Servers (“server/clusterworkflowtemplate”, “server/cronworkflow”) and event/sensor components (under “server/event”, “server/sensor”) add additional orchestration and trigger support.
f. Supporting Utilities:
• Common libraries (in “util/*”, “pkg/*” and many “workflow/*” packages) that offer shared functionality like logging, authentication (in “server/auth”), configuration, and metrics (see “workflow/metrics” and “util/telemetry”).
Out Component Relationships
• Additionally, include an “Infrastructure & Deployment” group which represents the Kubernetes CRDs (from the “manifests” directory) that define Argo’s deployment (e.g., workflow-controller, argo-server, RBAC rules).
Architectural Patterns and Design Principles
• That many internal libraries (e.g., “workflow/controller/indexes”, “workflow/util”) support efficient caching, topological sorting, and graph traversal needed to orchestrate complex DAGs of tasks.
Detailing Essential Elements
• Every component is labeled clearly with its name and function.
• The client front end (UI, CLI, SDKs)
• The API server and authentication mechanisms
• The workflow-control plane (controllers, executors, event/sensor triggers)
• The persistence and archival layer
• The Kubernetes cluster that hosts and orchestrates all these services