openyurtio / openyurt

OpenYurt - Extending your native Kubernetes to edge(project under CNCF)
https://openyurt.io
Apache License 2.0
1.7k stars 401 forks source link

Apply OpenYurt to support K8s v1.28 #2047

Closed rambohe-ch closed 4 months ago

rambohe-ch commented 4 months ago

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line: /kind bug /kind documentation /kind enhancement /kind good-first-issue /kind feature /kind question /kind design /sig ai /sig iot /sig network /sig storage

/kind feature

What this PR does / why we need it:

  1. upgrade k8s.io/xxx to v0.28.9
  2. upgrade controller-runtime to v0.16.5
  3. upgrade go version from v1.18 to v1.20
  4. upgrade kind to v0.22.0 to local up K8s v1.28 cluster.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?

other Note

sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed

Issues
15 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.1% Duplication on New Code

See analysis details on SonarCloud

codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 62.05924% with 269 lines in your changes are missing coverage. Please review.

Project coverage is 55.51%. Comparing base (37addb5) to head (8c5712e).

Files Patch % Lines
pkg/util/iptables/iptables.go 55.31% 40 Missing and 2 partials :warning:
pkg/util/iptables/testing/fake.go 76.12% 26 Missing and 11 partials :warning:
pkg/util/iptables/testing/parse.go 80.68% 26 Missing and 2 partials :warning:
...r/controller/csrapprover/csrapprover_controller.go 11.76% 15 Missing :warning:
...ebhook/yurtappset/v1beta1/yurtappset_validation.go 30.00% 14 Missing :warning:
.../daemonpodupdater/daemon_pod_updater_controller.go 0.00% 12 Missing :warning:
...rdinator/delegatelease/delegatelease_controller.go 0.00% 9 Missing :warning:
...rvice/gateway_internal_service_enqueue_handlers.go 0.00% 8 Missing :warning:
...n/gatewaypickup/gateway_pickup_enqueue_handlers.go 0.00% 8 Missing :warning:
...service/gateway_public_service_enqueue_handlers.go 0.00% 8 Missing :warning:
... and 35 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2047 +/- ## ========================================== + Coverage 55.37% 55.51% +0.14% ========================================== Files 185 186 +1 Lines 17821 18057 +236 ========================================== + Hits 9869 10025 +156 - Misses 6934 7006 +72 - Partials 1018 1026 +8 ``` | [Flag](https://app.codecov.io/gh/openyurtio/openyurt/pull/2047/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openyurtio) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/openyurtio/openyurt/pull/2047/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openyurtio) | `55.51% <62.05%> (+0.14%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openyurtio#carryforward-flags-in-the-pull-request-comment) to find out more.

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