Skip to content

fix(deploy): override actions wait commands#4531

Open
brandtkeller wants to merge 7 commits intomainfrom
4388-wait-ns-override
Open

fix(deploy): override actions wait commands#4531
brandtkeller wants to merge 7 commits intomainfrom
4388-wait-ns-override

Conversation

@brandtkeller
Copy link
Member

Description

Currently namespace overrides only detects and/or modifies charts and manifests. This PR adds support for actions wait definitions.

Related Issue

Fixes #4388

Checklist before merging

Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
@netlify
Copy link

netlify bot commented Jan 20, 2026

Deploy Preview for zarf-docs canceled.

Name Link
🔨 Latest commit 1cd2d3b
🔍 Latest deploy log https://app.netlify.com/projects/zarf-docs/deploys/69ab488577a88a0008ec1a89

@codecov
Copy link

codecov bot commented Jan 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/api/v1alpha1/component.go 49.36% <100.00%> (+30.99%) ⬆️
src/api/v1alpha1/package.go 55.38% <100.00%> (+22.82%) ⬆️
src/pkg/packager/packager.go 77.96% <100.00%> (+2.04%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@brandtkeller brandtkeller marked this pull request as ready for review January 20, 2026 22:10
@brandtkeller brandtkeller requested review from a team as code owners January 20, 2026 22:10
Copy link
Member

@AustinAbro321 AustinAbro321 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functionality looks good, some comments on architecture

return slices.Collect(maps.Keys(uniqueNamespaces))
}

// UpdateAllComponentNamespaces updates all existing chart/manifest namespaces to the provided one
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that we're taking the stance that it's a bug that wait actions are not updated. I'd be in favor of either removing it or adding "original" as a parameter instead of a separate "UpdateAllComponentNamespacesByName".

Another option to avoid a breaking change would to deprecate this function and point to UpdateAllComponentNamespacesByName

}

// UpdateAllComponentNamespacesByName updates all matching namespaces to the provided one
func (pkg ZarfPackage) UpdateAllComponentNamespacesByName(original, target string) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel that pkg/packager may be a better place for this function. We're de-coupling the function from the logic of namespace overrides. For instance, charts or manifest namespaces won't be updated if they don't equal the original. In practice this won't ever happen, though I can see why this might be added to this function given that it's in the data layer.

Still, this feels like a code smell to me, I think we might be better served by moving this function to the logic layer (pkg/packager), given that it's use case is tightly coupled to the namespace overrides logic. Having the function at this layer will also reduce duplication as we introduce new API versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

bug: namespace override is not applied to component "wait" actions

2 participants