Skip to content

Zarf v0.71.1 wait.cluster no longer works with variables #4603

@benmountjoy111

Description

@benmountjoy111

Environment

Device and OS: MAC OS Tahoe 26.2
App version: v0.71.1
Kubernetes distro being used: v1.33.4+rke2r1
Other: n/A

Steps to reproduce

  1. Stand up a cluster and zarf init
  2. Create zarf package zarf package create . with this zarf.yaml:
kind: ZarfPackageConfig
metadata:
  name: test

variables:
- name: AGENT_TEST_VAR
  default: agent-hook

components:
  - name: test-123
    required: true
    actions:
      onDeploy:
        after:
          - description: Test using zarf variable
            wait:
              cluster:
                kind: pod
                name: "app=${ZARF_VAR_AGENT_TEST_VAR}"
                namespace: zarf
                condition: Ready
  1. zarf package deploy zarf-package-test-arm64.tar.zst --confirm

Expected result

zarf waits for pod's status (variable substitution works)

Actual Result

zarf always fails for pod's status (variable substitution does not work). Output:

2026-02-12 09:00:08 INF starting deploy package=test
2026-02-12 09:00:08 INF deploying component name=test-123
2026-02-12 09:00:08 INF running wait action description=wait for pod/app=${ZARF_VAR_AGENT_TEST_VAR} to be Ready
2026-02-12 09:00:08 INF waiting for pod/ with label `app=${ZARF_VAR_AGENT_TEST_VAR}` in namespace zarf to exist.
2026-02-12 09:05:08 ERR failed to deploy package: unable to deploy component "test-123": unable to run component after action: wait timed out

Visual Proof (screenshots, videos, text, etc)

See attached screenshot
Image

Severity/Priority

Additional Context

Came about when upgrading zarf to v0.71.1 and deploying uds-package-minio-operator (which has worked for a long time), but now this action fails https://github.com/uds-packages/minio-operator/blob/main/common/zarf.yaml#L63-L69

Metadata

Metadata

Assignees

Labels

bug 🐞Something isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions