Skip to content

SCHED-1158: [4.1 backport of #2931] Wait for namespace before installing SPO - #3017

Merged
asteny merged 1 commit into
nebius:soperator-release-4.1from
aaroniscode:codex/backport-2931-spo-namespace-4.1
Sep 22, 2026
Merged

asteny merged 1 commit into
nebius:soperator-release-4.1from
aaroniscode:codex/backport-2931-spo-namespace-4.1

Conversation

@aaroniscode

Copy link
Copy Markdown
Contributor

Summary

Backport of #2931 — SCHED-1158: wait for namespace before installing SPO to soperator-release-4.1.

The Security Profiles Operator HelmRelease can start before its target namespace exists, causing installation failures and potentially exhausting remediation attempts. The original fix merged into main but is absent from the 4.1 release branch, including 4.1.8 and 4.1.9.

This backport carries the original two-file change:

  • Make the Security Profiles Operator HelmRelease depend on the namespace HelmRelease.
  • Add the original Helm unit test asserting that dependency.

Original PR: #2931
Original commit: 463d739

Testing

  • Confirmed the added regression test fails before the template fix (unknown path spec.dependsOn).
  • All Helm unit tests pass after the fix: 283 tests, 53 suites, 17 charts, using the repository-pinned helm-unittest 0.8.2.
  • helm lint and rendering with a custom release name pass.
  • make sync-version-from-scratch UNSTABLE=false completed successfully. An unrelated generated-mock import-formatting change was excluded; this PR changes only the original two files.
  • git diff --check passes.
  • No live deployment or cluster mutation performed.

Release Notes

Fix a deployment race where the Security Profiles Operator could install before its namespace was ready. No configuration changes or migrations are required.

Backport of nebius#2931.

Original commit: 463d739

Make the Security Profiles Operator HelmRelease wait for the namespace HelmRelease and carry over the original regression test.

Co-authored-by: Barys Serankou <[email protected]>
@asteny
asteny enabled auto-merge September 22, 2026 08:16
@asteny
asteny merged commit b2568cb into nebius:soperator-release-4.1 Sep 22, 2026
21 of 22 checks passed
github-actions Bot added a commit that referenced this pull request Sep 22, 2026
…-spo-namespace-4.1"

This reverts commit b2568cb, reversing
changes made to 98e27e4.
@aaroniscode
aaroniscode deleted the codex/backport-2931-spo-namespace-4.1 branch September 22, 2026 18:30

This branch was successfully deployed

1 active deployment
fork-ci — d3d2d025 Deployed Sep 21, 2026 by aaroniscode via Authorize #8174
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants