-
Notifications
You must be signed in to change notification settings - Fork 69
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(cstor-webhook): allow scale down of pools when node doesn't exist in cluster #135
fix(cstor-webhook): allow scale down of pools when node doesn't exist in cluster #135
Conversation
… in cluster Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
|
…ered simultaneously Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
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
…he time where node doesn't exist in the cluster Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
expectedRsp: false, | ||
getCSPCObj: getCSPCObject, | ||
}, | ||
"Positive stripe expansion test when node name chaged": { |
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.
chaged -> changed ?
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
What does this PR does:
In case of scaling down a pool by removing a pool spec
from the CSPC when a pool spec node doesn't exist in
the cluster, the cStor-admission server reported an error
saying no node exists for a given node selector. This PR
fixes this bug.
Bug Description:
performed on the pool it was trying to get common pool specs from old
CSPC spec(CSPC exist in etcd) and new CSPC spec(modified CSPC
which needs to persist in etcd). common pool specs were figured out
by fetching hostName from node resource(node resource will be fetched
from etcd using nodeSelector on pool specs). In node doesn't exist
in the cluster then scaling down operation will be failed.
Issue fixed by this PR : #134
Signed-off-by: mittachaitu sai.chaithanya@mayadata.io