Skip to content

Conversation

@kartik-579
Copy link
Member

@kartik-579 kartik-579 commented Dec 28, 2022

Description

Add apis for node -

  1. Delete
  2. Cordon/Uncordon
  3. Taint esit
  4. Drain

Fixes #2812

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR requires documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have tested it for all user roles.
  • I have added all the required unit/api test cases.

Does this PR introduce a user-facing change?


@kartik-579 kartik-579 changed the title wip: added apis for node-[delete,cordon,drain] wip: added apis for node-[delete,cordon,drain, taint edit] Dec 29, 2022
return respMessage, err
}
//get node
node, err := k8sClientSet.CoreV1().Nodes().Get(context.Background(), request.Name, v1.GetOptions{})
Copy link
Contributor

Choose a reason for hiding this comment

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

propagate context from request in restHandler, it will help in tracing

@kartik-579 kartik-579 changed the title wip: added apis for node-[delete,cordon,drain, taint edit] feat: added support for node-[delete, cordon, drain, taint edit] Dec 31, 2022
@kartik-579 kartik-579 linked an issue Dec 31, 2022 that may be closed by this pull request
2 tasks
@kartik-579 kartik-579 merged commit b26f1f6 into main Jan 2, 2023
@kartik-579 kartik-579 deleted the k8s-node-api-add branch January 2, 2023 05:25
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.

Feature: Support node deletion, cordon, drain and taint editing

3 participants