-
Notifications
You must be signed in to change notification settings - Fork 57
Show node's role in 'skuba cluster status' #928
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is fine.
Personally the entire community uses control-plane
and not master
anymore. I know the role stays that but we might want to think about changing the wording to be control-plane
or likewise.
But other then that this loos good.
Without getting into a discussion of the merits of words, I agree that getting rid of However, considering how important consistency is, making this change here means we have a bunch of documentation that should be updated, and also means we should change the parameter passed to role (or at least accept both monikers). Are we ready to invest the resources to suppress the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're potentially suppressing information the customer assigned to nodes in this output. Requesting changes pending resolution of #928 (comment)
so the role that is assigned as a label will stay so in the end. i'm fine with |
The output will be:
|
Changed to None if there is none of roles for the node
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm approving either way, but we really should avoid using "caasp" in things like the source code and examples. The public name is caas
; caasp
is supposed to be just internal (even though it's scattered all over the place). I would've preferred to see the fake label's name use skuba
, but that's really just me being unnecessarily picky. So, approved.
Do we have a bsc number for this? |
Sorry for being late. We had a holiday on Monday. The number is #1140530: https://bugzilla.suse.com/show_bug.cgi?id=1140530 |
Thanks. I see this is refered in https://github.com/SUSE/avant-garde/issues/545 which is already closed and in staging. All matches now. 👍 |
Why is this PR needed?
Does it fix an issue? addresses a business case?skuba cluster status should show if a node is a master or worker (Daimler and T-Systems requested this).
What does this PR do?
Sample output:
Anything else a reviewer needs to know?
This is the indication of master node from
kubectl get node -o json
."labels": {
"beta.kubernetes.io/arch": "amd64",
"beta.kubernetes.io/os": "linux",
"kubernetes.io/arch": "amd64",
"kubernetes.io/hostname": "master-0",
"kubernetes.io/os": "linux",
"node-role.kubernetes.io/master": ""
},
In the case of worker nodes, there is no label.
Info for QA
This is info for QA so that they can validate this. This is mandatory if this PR fixes a bug.
If this is a new feature, a good description in "What does this PR do" may be enough.
Related info
Info that can be relevant for QA:
Status BEFORE applying the patch
How can we reproduce the issue? How can we see this issue? Please provide the steps and the prove
this issue is not fixed.
Status AFTER applying the patch
How can we validate this issue is fixed? Please provide the steps and the prove this issue is fixed.
Docs
If docs need to be updated, please add a link to a PR to https://github.com/SUSE/doc-caasp.
At the time of creating the issue, this PR can be work in progress (set its title to [WIP]),
but the documentation needs to be finalized before the PR can be merged.
Merge restrictions
(Please do not edit this)
We are in v4-maintenance phase, so we will restrict what can be merged to prevent unexpected surprises: