tink icon indicating copy to clipboard operation
tink copied to clipboard

WIP: Add auto capabilities:

Open jacobweinstock opened this issue 1 year ago • 1 comments

Description

This adds the following auto capabilities:

discover: creates a Hardware object for each unknown worker. enrollment: creates Hardware and Workflow objects for each unknown worker. disabled: auto capabilities are disabled.

Why is this needed

Fixes: #

How Has This Been Tested?

How are existing users impacted? What migration steps/scripts do we need?

Checklist:

I have:

  • [ ] updated the documentation and/or roadmap (if required)
  • [ ] added unit or e2e tests
  • [ ] provided instructions on how to upgrade

jacobweinstock avatar Jun 03 '24 02:06 jacobweinstock

Codecov Report

Attention: Patch coverage is 3.77358% with 102 lines in your changes missing coverage. Please review.

Project coverage is 27.41%. Comparing base (3d8f7d2) to head (0f604ba). Report is 150 commits behind head on main.

Files with missing lines Patch % Lines
internal/server/auto.go 0.00% 36 Missing :warning:
internal/server/kubernetes_api_workflow.go 12.90% 27 Missing :warning:
cmd/tink-server/main.go 0.00% 23 Missing :warning:
internal/server/kubernetes_api.go 0.00% 16 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #946      +/-   ##
==========================================
- Coverage   28.04%   27.41%   -0.63%     
==========================================
  Files          70       71       +1     
  Lines        3484     3564      +80     
==========================================
  Hits          977      977              
- Misses       2445     2525      +80     
  Partials       62       62              

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov[bot] avatar Jun 03 '24 02:06 codecov[bot]

Auto enrollment is implemented here: https://github.com/tinkerbell/tinkerbell/pull/113 docs: https://github.com/tinkerbell/tinkerbell/blob/main/docs/technical/AUTO_ENROLLMENT.md

jacobweinstock avatar Jun 01 '25 16:06 jacobweinstock