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

go 1.20; controller-runtime v0.14.6 #95

Merged
merged 7 commits into from
Sep 4, 2023
Merged

go 1.20; controller-runtime v0.14.6 #95

merged 7 commits into from
Sep 4, 2023

Conversation

eguzki
Copy link
Contributor

@eguzki eguzki commented Sep 1, 2023

  • upgrade to Go 1.20
  • upgrade sigs.k8s.io/controller-runtime v0.14.6
  • lint: upgrade golangci-lint to v1.54.2
  • upgrade operator-sdk to v1.28.1
  • refactor: k8s.io/utils

Aligning to tech stack of https://github.com/Kuadrant/kuadrant-operator

@@ -105,24 +101,20 @@ func (r *LimitadorReconciler) Reconcile(eventCtx context.Context, req ctrl.Reque
return ctrl.Result{}, nil
}

func (r *LimitadorReconciler) reconcileSpec(ctx context.Context, limitadorObj *limitadorv1alpha1.Limitador) (ctrl.Result, error) {
func (r *LimitadorReconciler) reconcileSpec(ctx context.Context, limitadorObj *limitadorv1alpha1.Limitador) error {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I do not like this, but I was forced by the lint tool 😠

@codecov-commenter
Copy link

codecov-commenter commented Sep 1, 2023

Codecov Report

Merging #95 (18a255f) into main (beaa93e) will decrease coverage by 0.99%.
The diff coverage is 62.50%.

@@            Coverage Diff             @@
##             main      #95      +/-   ##
==========================================
- Coverage   51.83%   50.85%   -0.99%     
==========================================
  Files          13       13              
  Lines         897      879      -18     
==========================================
- Hits          465      447      -18     
+ Misses        394      391       -3     
- Partials       38       41       +3     
Flag Coverage Δ
unit 50.85% <62.50%> (-0.99%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
pkg/helpers/helpers.go 19.04% <ø> (+6.92%) ⬆️
controllers/limitador_controller.go 44.28% <50.00%> (-2.48%) ⬇️
pkg/limitador/image.go 100.00% <100.00%> (ø)
pkg/reconcilers/base_reconciler.go 34.54% <100.00%> (ø)

... and 1 file with indirect coverage changes

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

@eguzki eguzki requested a review from a team September 1, 2023 15:25
Copy link
Contributor

@KevFan KevFan left a comment

Choose a reason for hiding this comment

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

Looks good, I just have one comment 🧑‍💻

@eguzki
Copy link
Contributor Author

eguzki commented Sep 4, 2023

Updated with go mod tidy changes

Copy link
Contributor

@KevFan KevFan left a comment

Choose a reason for hiding this comment

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

Nice ! Looks good to me 🥇

@eguzki eguzki merged commit 35c6fb9 into main Sep 4, 2023
@eguzki eguzki deleted the go-1.20 branch September 4, 2023 13:53
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.

3 participants