-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat(playbook-k8s): node cordon, uncordon, drain #376
base: main
Are you sure you want to change the base?
Conversation
- {{` "{{- if .agent }}{{.agent.id}}{{ else }}local{{ end }}" `}} | ||
|
||
actions: | ||
- name: Drain 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.
- name: Drain node | |
- name: Cordon node |
parameters: | ||
- name: delete_emptydir_data | ||
label: 'Delete emptydir data' | ||
type: text |
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.
these should be bools
- Kubernetes::Node | ||
|
||
parameters: | ||
- name: selector |
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 don't think select makes sense here, because we have already selected the node config item
Dry run on a cordon is probably also overkill - For a drain yeh it makes sense
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.
See comments
Fixes: #371