Skip to content

Comments

e2e: use PatchNamespace for regression test cases#2197

Open
burgerdev wants to merge 2 commits intomainfrom
burgerdev/add-namespace
Open

e2e: use PatchNamespace for regression test cases#2197
burgerdev wants to merge 2 commits intomainfrom
burgerdev/add-namespace

Conversation

@burgerdev
Copy link
Member

Not sure why we did not use the function back when we wrote the regression tests, maybe it was not there yet. I needed to fix the switch statement to make it deal with ReplicationController and ReplicaSet, but inly introduced a test case for the former because the latter is somewhat deprecated anyway.

@burgerdev burgerdev requested a review from sespiros February 19, 2026 15:36
@burgerdev burgerdev added the no changelog PRs not listed in the release notes label Feb 19, 2026
Copy link
Contributor

@sespiros sespiros left a comment

Choose a reason for hiding this comment

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

Docs mention that ReplicationController is the legacy API superseded by ReplicaSet so maybe add a test for that too for good measure (and either keep or remove the other one).

@burgerdev burgerdev force-pushed the burgerdev/add-namespace branch from dfb4046 to 8ed029c Compare February 19, 2026 19:50
@burgerdev
Copy link
Member Author

Thanks for spotting that. Naturally, it turned out that we were still not covering all pod-generating resources, so I added a few more tests.

@burgerdev burgerdev requested a review from sespiros February 19, 2026 19:51
@burgerdev burgerdev force-pushed the burgerdev/add-namespace branch from 8ed029c to 5278d30 Compare February 20, 2026 08:44
Copy link
Contributor

@sespiros sespiros left a comment

Choose a reason for hiding this comment

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

nice, thanks. Approving with a suggested minor addition.

"cronjob": {resource: cronjob},
"daemonset": {resource: daemonset},
"pod": {resource: pod},
"replicationController": {resource: replicationController},
Copy link
Contributor

Choose a reason for hiding this comment

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

is it necessary to test here for replicationSet and statefulSet too?

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

Labels

no changelog PRs not listed in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants