sealos icon indicating copy to clipboard operation
sealos copied to clipboard

docs(main): upgrade version for kubeadm

Open cuisongliu opened this issue 1 year ago β€’ 3 comments

πŸ€– Generated by Copilot at 496467c

Summary

πŸ§ͺπŸ³πŸš€

This pull request improves the sealos tool by fixing dependency issues, refactoring code, enhancing the kubeadm configuration logic, adding unit tests, and expanding the e2e tests for different runtime versions and features. It also deletes some unused files and updates some error messages.

Sing, O Muse, of the valiant deeds of sealos, the mighty tool That runs and applies the kubernetes clusters with skill and rule How they tested and refined their code with e2e_test_core workflow And added many features and fixes with kubeadm_config and go-dockerclient

Walkthrough

  • Add e2e tests for the apply command using docker and containerd as runtimes (link, link)
  • Add unit tests for the setFeatureGatesConfiguration function and the kubeadm configuration logic (link)
  • Add e2e tests for the run command using docker and containerd as runtimes, with different image sources and names (link, link)
  • Add e2e tests for the run command using containerd as the runtime and Kubernetes v1.19.0 as the version (link)
  • Update the feature gates configuration according to the Kubernetes version in the KubeadmRuntime struct (link, link, link)
  • Simplify the logic of the FetchDefaultKubeadmConfig and upgradeConfig functions by using the same default kubeadm configuration for all Kubernetes versions and the existing functions for decoding and updating the configuration (link, link, link, link, link, link)
  • Correct the kubeadm configuration for the controller manager by replacing experimental-cluster-signing-duration with cluster-signing-duration for Kubernetes v1.25.0 (link)
  • Add more unit tests to the matrix of the e2e_test_core workflow (link)
  • Update the versions of some dependencies in go.work.sum and test/e2e/go.mod to fix compatibility issues and security vulnerabilities, and to use the latest features (link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link)
  • Remove unused dependencies and packages from go.work.sum (link, link, link)
  • Remove unused files pkg/runtime/defaults/v125/default_kubeadm_config.go and pkg/runtime/defaults/v127/default_kubeadm_config.go (link, link)
  • Reorder the imports in test/e2e/apply_test.go to follow the gofmt style (link)
  • Remove the word "Compress" from the error messages in test/e2e/images_test.go to make them more consistent and clear (link, link)

cuisongliu avatar Jun 15 '23 14:06 cuisongliu

πŸ€– Generated by lychee action

Summary

Status Count
πŸ” Total 649
βœ… Successful 298
⏳ Timeouts 0
πŸ”€ Redirected 0
πŸ‘» Excluded 350
❓ Unknown 0
🚫 Errors 0

Full action output

Full Github Actions output

sealos-ci-robot avatar Jun 15 '23 14:06 sealos-ci-robot

Codecov Report

Patch and project coverage have no change.

Comparison is base (3161cbc) 72.97% compared to head (8974fdd) 72.97%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3371   +/-   ##
=======================================
  Coverage   72.97%   72.97%           
=======================================
  Files           8        8           
  Lines         618      618           
=======================================
  Hits          451      451           
  Misses        132      132           
  Partials       35       35           
Impacted Files Coverage Ξ”
pkg/apply/gen.go 48.78% <0.00%> (ΓΈ)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

codecov[bot] avatar Jun 15 '23 14:06 codecov[bot]

Whoa! Easy there, Partner!

This PR is too big. Please break it up into smaller PRs.

pull-request-size[bot] avatar Jun 16 '23 05:06 pull-request-size[bot]

/cherry-pick release-v4.2

cuisongliu avatar Jun 20 '23 03:06 cuisongliu

πŸ€– says: cherry pick action finished successfully πŸŽ‰!
See: https://github.com/labring/sealos/actions/runs/5318340108

sealos-ci-robot avatar Jun 20 '23 03:06 sealos-ci-robot