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

feat(playbook-k8s): node cordon, uncordon, drain #376

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

yashmehrotra
Copy link
Member

Fixes: #371

@yashmehrotra yashmehrotra requested a review from moshloop January 24, 2025 06:25
- {{` "{{- if .agent }}{{.agent.id}}{{ else }}local{{ end }}" `}}

actions:
- name: Drain node
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- name: Drain node
- name: Cordon node

parameters:
- name: delete_emptydir_data
label: 'Delete emptydir data'
type: text
Copy link
Member

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
Copy link
Member

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

Copy link
Member

@moshloop moshloop left a comment

Choose a reason for hiding this comment

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

See comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cordon/Uncordon/Drain kubernetes nodes
2 participants