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 "keadm get nodes -A" printing namespaces while nodes without namespaces actually #3346

Merged
merged 1 commit into from
Nov 25, 2021

Conversation

jidalong
Copy link
Member

@jidalong jidalong commented Nov 23, 2021

What type of PR is this?
/kind bug

What this PR does / why we need it:
When excute “keadm get nodes/node -A/--all-namespaces ”,keadm may not print the namespace with null while in original k8s,the resource of node does not have any namespaces.
before:
image
after this PR, not print NAMESPACE column anymore:
image

Which issue(s) this PR fixes:

Fixes #3345

Does this PR introduce a user-facing change?:
NONE


@kubeedge-bot kubeedge-bot added the kind/bug Categorizes issue or PR as related to a bug. label Nov 23, 2021
@kubeedge-bot kubeedge-bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Nov 23, 2021
@jidalong jidalong changed the title fix keadm get nodes -A printing namespaces while nodes without namespaces actually fix "keadm get nodes -A" printing namespaces while nodes without namespaces actually Nov 23, 2021
Signed-off-by: jidalong <jidalong@cmss.chinamobile.com>
@gy95
Copy link
Member

gy95 commented Nov 23, 2021

LGTM

Copy link
Member

@fisherxu fisherxu left a comment

Choose a reason for hiding this comment

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

/approve

@kubeedge-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fisherxu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubeedge-bot kubeedge-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 23, 2021
@zc2638
Copy link
Member

zc2638 commented Nov 25, 2021

/lgtm

@kubeedge-bot kubeedge-bot added the lgtm Indicates that a PR is ready to be merged. label Nov 25, 2021
@kubeedge-bot kubeedge-bot merged commit 29f58f2 into kubeedge:master Nov 25, 2021
@jidalong jidalong deleted the kubeadmnode branch November 25, 2021 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

keadm get nodes -A print namespace while node resource whithout namespace actually
5 participants