Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Existing Namespace Not Found By Label #2204

Merged
merged 3 commits into from Mar 5, 2024

Conversation

manno
Copy link
Member

@manno manno commented Mar 4, 2024

Refers to #2195

Filter by kubernetes.io/metadata.name label

Use the label kubernetes.io/metadata.name, which is added by k8s to all
namespaces, instead of the helm "name" label. The helm "name" label
might be missing from pre-existing namespaces.

Switch fetchNamespace to Get instead of list

Was using List with a label, that's set by k8s to the name of the
namespace. Only returned the first result.
Testdata assumed label and namespace name could be different.

Use the label kubernetes.io/metadata.name, which is added by k8s to all
namespaces, instead of the helm "name" label. The helm "name" label
might be missing from pre-existing namespaces.
@manno manno requested a review from a team as a code owner March 4, 2024 11:52
@manno manno changed the base branch from master to release/v0.9 March 4, 2024 11:52
Was using List with a label, that's set by k8s to the name of the
namespace. Only returned the first result.
Testdata assumed label and namespace name could be different.
@manno manno force-pushed the fix-namespace-labels-missing branch from fd95f12 to b3981d7 Compare March 4, 2024 11:52
@manno manno changed the title Fix namespace labels missing Fix Existing Namespace Not Found By Label Mar 4, 2024
…t.go

Co-authored-by: Corentin Néau <tan.neau@suse.com>
@manno manno merged commit 5e078e2 into release/v0.9 Mar 5, 2024
11 checks passed
@manno manno deleted the fix-namespace-labels-missing branch March 5, 2024 11:44
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.

None yet

2 participants