Skip to main content
Version: v1.0.0-rc.1 (pre-release)

ClusterWorkflowPlane

A ClusterWorkflowPlane is a cluster-scoped variant of WorkflowPlane that represents the infrastructure layer responsible for executing workflow workloads in OpenChoreo. Unlike the namespace-scoped WorkflowPlane, a ClusterWorkflowPlane is a cluster-scoped resource, making it suitable for shared workflow plane infrastructure scenarios.

OpenChoreo uses agent-based communication where the control plane communicates with the workflow plane cluster through a WebSocket agent running in the ClusterWorkflowPlane cluster. The cluster agent establishes a secure WebSocket connection to the control plane's cluster gateway.

API Version​

openchoreo.dev/v1alpha1

Resource Definition​

Metadata​

ClusterWorkflowPlanes are cluster-scoped resources (no namespace).

apiVersion: openchoreo.dev/v1alpha1
kind: ClusterWorkflowPlane
metadata:
name: <clusterworkflowplane-name>

Spec Fields​

FieldTypeRequiredDefaultDescription
planeIDstringNoCR nameIdentifies the logical plane this CR connects to. Must match clusterAgent.planeId Helm value.
clusterAgentClusterAgentConfigYes-Configuration for cluster agent-based communication
secretStoreRefSecretStoreRefNo-Reference to External Secrets Operator ClusterSecretStore in the ClusterWorkflowPlane
observabilityPlaneRefObservabilityPlaneRefNo-Reference to a ClusterObservabilityPlane resource for monitoring and logging

PlaneID​

The planeID identifies the logical plane this ClusterWorkflowPlane CR connects to. Multiple ClusterWorkflowPlane CRs can share the same planeID to connect to the same physical cluster while maintaining separate configurations.

Validation Rules:

  • Maximum length: 63 characters
  • Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$ (lowercase alphanumeric, hyphens allowed)
  • Examples: "shared-workflow", "ci-cluster", "us-west-2"
PlaneID Consistency

The planeID in the ClusterWorkflowPlane CR must match the clusterAgent.planeId Helm value configured during workflow plane installation. If not specified, it defaults to the CR name for backwards compatibility.

ClusterAgentConfig​

Configuration for cluster agent-based communication with the workflow plane cluster. The cluster agent establishes a WebSocket connection to the control plane's cluster gateway.

FieldTypeRequiredDefaultDescription
clientCAValueFromYes-CA certificate to verify the agent's client certificate (base64-encoded PEM)

SecretStoreRef​

Reference to an External Secrets Operator ClusterSecretStore.

FieldTypeRequiredDefaultDescription
namestringYes-Name of the ClusterSecretStore in the ClusterWorkflowPlane

ObservabilityPlaneRef​

Reference to a ClusterObservabilityPlane for monitoring and logging.

FieldTypeRequiredDefaultDescription
kindstringNoClusterObservabilityPlaneMust be ClusterObservabilityPlane. ClusterWorkflowPlane can only reference cluster-scoped observability planes.
namestringYes-Name of the ClusterObservabilityPlane resource
Resolution Behavior
  • ClusterWorkflowPlane can only reference a ClusterObservabilityPlane (not a namespace-scoped ObservabilityPlane). This is enforced by API validation.
  • If observabilityPlaneRef is omitted, the controller attempts to find a ClusterObservabilityPlane named "default". If no default exists, observability is not configured.
  • If the referenced ClusterObservabilityPlane is not found, the controller returns an error and the ClusterWorkflowPlane will not become ready.

ValueFrom​

Common pattern for referencing secrets or providing inline values. Either secretKeyRef or value should be specified.

FieldTypeRequiredDefaultDescription
secretKeyRefSecretKeyReferenceNo-Reference to a secret key
valuestringNo-Inline value (not recommended for sensitive data)

SecretKeyReference​

Reference to a specific key in a Kubernetes secret.

FieldTypeRequiredDefaultDescription
namestringYes-Name of the secret
namespacestringNo*-Namespace of the secret (required for cluster-scoped resources)
keystringYes-Key within the secret

Status Fields​

FieldTypeDefaultDescription
observedGenerationinteger0The generation observed by the controller
conditions[]Condition[]Standard Kubernetes conditions tracking the ClusterWorkflowPlane state
agentConnectionAgentConnectionStatus-Tracks the status of cluster agent connections

AgentConnectionStatus​

FieldTypeDefaultDescription
connectedbooleanfalseWhether any cluster agent is currently connected
connectedAgentsinteger0Number of cluster agents currently connected
lastConnectedTimetimestamp-When an agent last successfully connected
lastDisconnectedTimetimestamp-When the last agent disconnected
lastHeartbeatTimetimestamp-When the control plane last received any communication from an agent
messagestring-Additional information about the agent connection status

Examples​

Basic ClusterWorkflowPlane Configuration​

This example shows a minimal ClusterWorkflowPlane configuration.

apiVersion: openchoreo.dev/v1alpha1
kind: ClusterWorkflowPlane
metadata:
name: shared-workflowplane
spec:
planeID: "shared-workflow"
clusterAgent:
clientCA:
secretKeyRef:
name: workflowplane-agent-ca
namespace: openchoreo-system
key: ca.crt

ClusterWorkflowPlane with Secret Store​

This example demonstrates using External Secrets Operator for managing secrets.

apiVersion: openchoreo.dev/v1alpha1
kind: ClusterWorkflowPlane
metadata:
name: secure-workflowplane
spec:
planeID: "secure-workflow"
clusterAgent:
clientCA:
secretKeyRef:
name: agent-ca-cert
namespace: openchoreo-system
key: ca.crt
secretStoreRef:
name: vault-backend

ClusterWorkflowPlane with Observability​

This example shows a ClusterWorkflowPlane linked to a ClusterObservabilityPlane for monitoring workflow jobs.

apiVersion: openchoreo.dev/v1alpha1
kind: ClusterWorkflowPlane
metadata:
name: monitored-workflowplane
spec:
planeID: "prod-ci"
clusterAgent:
clientCA:
secretKeyRef:
name: workflowplane-agent-ca
namespace: openchoreo-system
key: ca.crt
secretStoreRef:
name: default
observabilityPlaneRef:
kind: ClusterObservabilityPlane
name: production-observability

Annotations​

ClusterWorkflowPlanes support the following annotations:

AnnotationDescription
openchoreo.dev/display-nameHuman-readable name for UI display
openchoreo.dev/descriptionDetailed description of the ClusterWorkflowPlane