Skip to content

fix: Stop pruning just-created workspace objects in default namespace - #12

Merged
Perseus985 merged 1 commit into
opendefensecloud:mainfrom
ntnn:fix-pruning
Jul 30, 2026
Merged

fix: Stop pruning just-created workspace objects in default namespace#12
Perseus985 merged 1 commit into
opendefensecloud:mainfrom
ntnn:fix-pruning

Conversation

@ntnn

@ntnn ntnn commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

The controller records object GVK, Namespace and Name before applying to the workspace.

If the object was missing the namespace the recorded identity had namespace="" and the returned identity namespace="default", resulting in the pruning pass deleting the object.

@ntnn ntnn changed the title Stop pruning just-created workspace objects in default namespace fix: Stop pruning just-created workspace objects in default namespace Jul 29, 2026
The controller records object GVK, Namespace and Name before applying to the workspace.

If the object was missing the namespace the recorded identity had
namespace="" and the returned identity namespace="default", resulting in
the pruning pass deleting the object.

Signed-off-by: Nelo-T. Wallus <red.brush9525@fastmail.com>

@Perseus985 Perseus985 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good catch. Thanks and welcome :)

The red Realese Drafter run can be ignored. We fixed that for upcoming contributions ^^

@Perseus985
Perseus985 merged commit b3762d0 into opendefensecloud:main Jul 30, 2026
11 of 13 checks passed
@ntnn
ntnn deleted the fix-pruning branch July 30, 2026 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants