Skip to content
This repository was archived by the owner on Dec 2, 2025. It is now read-only.

Conversation

@chrisdoherty4
Copy link
Member

@chrisdoherty4 chrisdoherty4 commented May 9, 2023

Summary

Hegel originally integrated with Kubernetes by using a tink repo defined client that handled the client construction for a service. The implementation leveraged the controller-runtime manager data structure that comes with a lot more than whats needed by a service. Consequently, it needs to mute features such as metrics endpoints etc.

This change switches to the cluster object which is much lighter weight and focus' on representing a cluster (with caching of obects) instead of a fully fledged controller manager.

Other notes

go mod tidy cleaned up a bunch of dependencies probably left from the Go v1.20 update.

Issues

Closes #195

@codecov
Copy link

codecov bot commented May 9, 2023

Codecov Report

Merging #256 (82e826b) into main (b089130) will increase coverage by 1.64%.
The diff coverage is 77.41%.

❗ Current head 82e826b differs from pull request most recent head 4bda0aa. Consider uploading reports for the commit 4bda0aa to get more accurate results

@@            Coverage Diff             @@
##             main     #256      +/-   ##
==========================================
+ Coverage   76.21%   77.85%   +1.64%     
==========================================
  Files          17       18       +1     
  Lines         412      429      +17     
==========================================
+ Hits          314      334      +20     
+ Misses         87       82       -5     
- Partials       11       13       +2     
Impacted Files Coverage Δ
internal/backend/backend.go 53.57% <0.00%> (+1.84%) ⬆️
internal/backend/kubernetes/index.go 77.77% <77.77%> (ø)
internal/backend/kubernetes/backend.go 61.00% <80.95%> (+3.85%) ⬆️

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Hegel originally integrated with Kubernetes by using a tink repo defined
client that handled the client construction for a service. The
implementation leveraged the controller-runtime manager data structure
that comes with a lot more than whats needed by a service. Consequently,
it needs to mute features such as metrics endpoints etc.

This change switches to the cluster object which is much lighter weight
and focus' on representing a cluster (with caching of obects) instead of
a fully fledged controller manager.

Signed-off-by: Chris Doherty <[email protected]>
@chrisdoherty4 chrisdoherty4 added the ready-to-merge Signal to Mergify to merge the PR. label May 9, 2023
@mergify mergify bot merged commit bbf9e13 into tinkerbell:main May 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

ready-to-merge Signal to Mergify to merge the PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Break away from the Tink repositories Manager

2 participants