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

Implement Refresh Worker Certificates Logic #65

Merged
merged 8 commits into from
Oct 25, 2024

Conversation

mateoflorido
Copy link
Member

Important

This pull request is dependent on k8s-snap #713

Overview

This update implements the logic to handle certificate refresh for worker nodes.

Changes

  • Added functionality to refresh certificates for worker nodes.
  • Refactored the Workload Cluster API to support certificate refreshing.

@mateoflorido mateoflorido requested a review from a team as a code owner October 7, 2024 04:36
Copy link
Contributor

@HomayoonAlimohammadi HomayoonAlimohammadi left a comment

Choose a reason for hiding this comment

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

Thanks a lot @mateoflorido! Wonderful job! Almost LGTM, just left some minor comments and questions.

pkg/ck8s/workload_cluster.go Outdated Show resolved Hide resolved
pkg/ck8s/workload_cluster.go Show resolved Hide resolved
pkg/ck8s/workload_cluster.go Outdated Show resolved Hide resolved
pkg/ck8s/workload_cluster.go Show resolved Hide resolved
pkg/ck8s/workload_cluster.go Outdated Show resolved Hide resolved
pkg/ck8s/workload_cluster.go Outdated Show resolved Hide resolved
Copy link
Member

@berkayoz berkayoz left a comment

Choose a reason for hiding this comment

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

Great work, did an initial pass. We should document/comment well here since the flow is a bit more complex than normal.

pkg/ck8s/workload_cluster.go Outdated Show resolved Hide resolved
pkg/ck8s/workload_cluster.go Show resolved Hide resolved
@mateoflorido mateoflorido force-pushed the KU-1602/refresh-worker-certs branch from 6adb9af to 78f1b48 Compare October 15, 2024 23:20
Copy link
Contributor

@HomayoonAlimohammadi HomayoonAlimohammadi left a comment

Choose a reason for hiding this comment

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

Amazing job! Thanks a lot @mateoflorido! LGTM, Just some very minor comments.

bootstrap/controllers/certificates_controller.go Outdated Show resolved Hide resolved
pkg/ck8s/workload_cluster.go Show resolved Hide resolved
pkg/ck8s/workload_cluster.go Show resolved Hide resolved
pkg/ck8s/workload_cluster.go Outdated Show resolved Hide resolved
pkg/ck8s/workload_cluster.go Outdated Show resolved Hide resolved
pkg/ck8s/workload_cluster.go Outdated Show resolved Hide resolved

var seconds int

eg, ctx := errgroup.WithContext(ctx)
Copy link
Contributor

Choose a reason for hiding this comment

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

Really liked this use of errgroup! Amazing!

Copy link
Member

@berkayoz berkayoz left a comment

Choose a reason for hiding this comment

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

LGTM, seems like @HomayoonAlimohammadi covered most of the comments.

bootstrap/controllers/certificates_controller.go Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
@mateoflorido mateoflorido force-pushed the KU-1602/refresh-worker-certs branch from 2f8511d to 5887593 Compare October 18, 2024 00:09
@bschimke95
Copy link
Contributor

LGTM @mateoflorido but as also discussed yesterday with @HomayoonAlimohammadi I'd like to have a test for this before we merge this.

@mateoflorido mateoflorido marked this pull request as draft October 18, 2024 14:41
@mateoflorido mateoflorido force-pushed the KU-1602/refresh-worker-certs branch 2 times, most recently from c2989e9 to 5624b82 Compare October 24, 2024 23:21
@mateoflorido mateoflorido force-pushed the KU-1602/refresh-worker-certs branch from 025c319 to cdb76e0 Compare October 25, 2024 00:00
@mateoflorido mateoflorido marked this pull request as ready for review October 25, 2024 01:11
@mateoflorido mateoflorido force-pushed the KU-1602/refresh-worker-certs branch from 16d76aa to a84806a Compare October 25, 2024 03:10
Copy link
Contributor

@bschimke95 bschimke95 left a comment

Choose a reason for hiding this comment

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

LGTM, amazing work @mateoflorido

@bschimke95 bschimke95 merged commit d7c73a4 into main Oct 25, 2024
9 checks passed
@mateoflorido mateoflorido deleted the KU-1602/refresh-worker-certs branch October 25, 2024 10:58
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.

4 participants