-
Notifications
You must be signed in to change notification settings - Fork 49
Adding License Testing for Tiered Storage #233
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
Conversation
594c9a2
to
c367818
Compare
c367818
to
ba1d725
Compare
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,
Just a suggestion to do a squash to combine these
tasks: | ||
- name: Check cluster health | ||
ansible.builtin.shell: | | ||
{{ rpk_bin }} cluster health | grep -i 'healthy:' | tr -d '[:space:]' | awk -F ':' '{print tolower($2)}' |
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.
Probably better to do something like this and check the return code of grep, rather than trying to parse out the true/false status.
rpk cluster health | grep -q -i 'healthy.*false'
returns 0 if one or more lines matched the regex. returns 1 if zero lines matched.
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.
(though, it would be better if rpk cluster health set a return code of 0 or 1 depending on cluster health state, then we could check the return code directly -- don't think that support exists right now)
Adds an operation to apply license separately + testing related to it.