Skip to content

Merge to main: SCHED-1158: [4.1 backport of #2931] Wait for namespace before installing SPO - #3018

Merged
asteny merged 3 commits into
mainfrom
merge-to-main-from/pr-3017/codex/backport-2931-spo-namespace-4.1
Sep 22, 2026
Merged

asteny merged 3 commits into
mainfrom
merge-to-main-from/pr-3017/codex/backport-2931-spo-namespace-4.1

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Merge back to main of the Pull Request #3017 by @asteny

Original PR Description

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.


You cannot skip this merge, but if you really don't want these changes (conflicts or doesn't make sense), just comment /revert-last-pr, and wait for the revert to come, then merge this PR (even if 0 changes).

aaroniscode and others added 2 commits September 21, 2026 09:52
Backport of #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]>
…espace-4.1

SCHED-1158: [4.1 backport of #2931] Wait for namespace before installing SPO
@github-actions github-actions Bot added the ignore-for-release Don't include this PR into changelog label Sep 22, 2026
@github-actions github-actions Bot added the ignore-for-release Don't include this PR into changelog label Sep 22, 2026
@asteny

asteny commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator

/revert-last-pr

…-spo-namespace-4.1"

This reverts commit b2568cb, reversing
changes made to 98e27e4.
@github-actions

Copy link
Copy Markdown
Contributor Author

Reverted changes from PR #3017 (commit b2568cb)

@asteny asteny closed this Sep 22, 2026
@asteny asteny reopened this Sep 22, 2026
@asteny
asteny enabled auto-merge September 22, 2026 08:38
@asteny
asteny merged commit 218874f into main Sep 22, 2026
15 checks passed
@asteny
asteny deleted the merge-to-main-from/pr-3017/codex/backport-2931-spo-namespace-4.1 branch September 22, 2026 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ignore-for-release Don't include this PR into changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants