Skip to content

Conversation

@github-actions
Copy link

@github-actions github-actions bot commented Oct 1, 2025

Backport

This will backport the following commits from main to release/v2.4.x:

Questions ?

Please refer to the Backport tool documentation

`client.Client` and `kube.Ctl` treated `namespace` (`client.InNamespace`) as an
optional parameter. If not provided, it default to `"default"`.

This parameter has been missed multiple times across various places in our
codebase and resulted in latent errors, often because tests utilised the
default namespace.

This commit changes the signature of `Ctl.List` to require a `namespace string`
parameter to make it impossible to forget. It additionally adds it to a few
places (lifecycle client) that it was previously forgotten.

(cherry picked from commit 9e08d14)

# Conflicts:
#	charts/console/chart/client_test.go
#	charts/redpanda/chart_test.go
#	go.work.sum
#	operator/internal/controller/vectorized/cluster_controller_test.go
#	operator/internal/lifecycle/client.go
#	pkg/kube/ctl.go
#	pkg/kube/syncer.go
#	pkg/kube/syncer_test.go
@chrisseto chrisseto force-pushed the backport/release/v2.4.x/pr-1121 branch from dd437b0 to cf3d56b Compare October 2, 2025 19:43
@chrisseto chrisseto enabled auto-merge (rebase) October 2, 2025 19:44
@chrisseto chrisseto merged commit d355ad0 into release/v2.4.x Oct 2, 2025
11 checks passed
@RafalKorepta RafalKorepta deleted the backport/release/v2.4.x/pr-1121 branch December 12, 2025 15:40
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