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

Remove crd v1beta1 Support #3630

Merged
merged 19 commits into from
Sep 21, 2022
Merged

Conversation

STRRL
Copy link
Member

@STRRL STRRL commented Sep 14, 2022

What problem does this PR solve?

close #3577

What's changed and how it works?

  • remove manifests about CRD v1beta1
  • remove kubernetes 1.15 in e2e tests, append kubernetes 1.25 in e2e tests
  • bump the e2e test framework to 1.24, because the behavior changes about serviceaccount would break e2e tests on 1.24/1.25

Related changes

  • This change also requires further updates to the website (e.g. docs)
  • This change also requires further updates to the UI interface
  • Need to cheery-pick to release branches
    • release-2.3
    • release-2.2

Checklist

CHANGELOG

  • I have updated the CHANGELOG.md
  • I have labeled this PR with "no-need-update-changelog"

Tests

  • Unit test
  • E2E test
  • No code
  • Manual test (add steps below)

Side effects

  • Breaking backward compatibility

DCO

If you find the DCO check fails, please run commands like below (Depends on the actual situations. For example, if the failed commit isn't the most recent) to fix it:

git commit --amend --signoff
git push --force

@ti-chi-bot
Copy link
Member

ti-chi-bot commented Sep 14, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • Andrewmatilde

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@codecov
Copy link

codecov bot commented Sep 14, 2022

Codecov Report

Merging #3630 (2929f3f) into master (8fd92d1) will decrease coverage by 0.09%.
The diff coverage is 1.29%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3630      +/-   ##
==========================================
- Coverage   40.24%   40.14%   -0.10%     
==========================================
  Files         166      166              
  Lines       14160    14192      +32     
==========================================
  Hits         5698     5698              
- Misses       8027     8060      +33     
+ Partials      435      434       -1     
Impacted Files Coverage Δ
api/v1alpha1/common_types.go 0.00% <ø> (ø)
api/v1alpha1/dnschaos_type.go 0.00% <ø> (ø)
api/v1alpha1/networkchaos_types.go 0.00% <ø> (ø)
api/v1alpha1/physical_machine_chaos_types.go 46.15% <ø> (ø)
api/v1alpha1/physical_machine_chaos_webhook.go 54.47% <0.00%> (ø)
api/v1alpha1/podchaos_types.go 0.00% <ø> (ø)
api/v1alpha1/schedule_types.go 14.28% <ø> (ø)
api/v1alpha1/statuscheck_types.go 0.00% <ø> (ø)
api/v1alpha1/stresschaos_types.go 0.00% <ø> (ø)
api/v1alpha1/timechaos_types.go 0.00% <ø> (ø)
... and 30 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7e472f7...2929f3f. Read the comment docs.

@STRRL STRRL requested review from a team September 17, 2022 23:09
Signed-off-by: STRRL <im@strrl.dev>
remove 1.15.x, append 1.25.x

Signed-off-by: STRRL <im@strrl.dev>
Signed-off-by: STRRL <im@strrl.dev>
Signed-off-by: STRRL <im@strrl.dev>
Signed-off-by: STRRL <im@strrl.dev>
Signed-off-by: STRRL <im@strrl.dev>
Signed-off-by: STRRL <im@strrl.dev>
Signed-off-by: STRRL <im@strrl.dev>
Copy link
Member

@Andrewmatilde Andrewmatilde left a comment

Choose a reason for hiding this comment

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

Plz fix the ci.

@@ -175,6 +174,10 @@ func (r *hTTPChaosResolver) Annotations(ctx context.Context, obj *v1alpha1.HTTPC
return annotations, nil
}

func (r *hTTPChaosResolver) ClusterName(ctx context.Context, obj *v1alpha1.HTTPChaos) (string, error) {
Copy link
Member

Choose a reason for hiding this comment

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

It is strange here. I guess it is because the kube go mod we relied on changed.
You may need to turn the type of HTTPChaos.ClusterName to string here.

Copy link
Member Author

Choose a reason for hiding this comment

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

I have no idea about what ClusterName is 🤔. It has been here 13 months ago.

Copy link
Member Author

Choose a reason for hiding this comment

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

also cc @Hexilee

Copy link
Member Author

Choose a reason for hiding this comment

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

metadata.clusterName is deprecated in 1.24 and removed in 1.25, since it is event not used, I would remove it from the graphql.

ref:

Signed-off-by: STRRL <im@strrl.dev>
Signed-off-by: STRRL <im@strrl.dev>
Signed-off-by: STRRL <im@strrl.dev>
Signed-off-by: STRRL <im@strrl.dev>
Signed-off-by: STRRL <im@strrl.dev>
@STRRL STRRL added rebuild-build-env-image rebuild build-env image in this PR rebuild-dev-env-image rebuild dev-env image in this PR labels Sep 19, 2022
Signed-off-by: STRRL <im@strrl.dev>
the auto cni would let source IP as the 172.27.0.1, which breaks the
DNSChaos

Signed-off-by: STRRL <im@strrl.dev>
Signed-off-by: STRRL <im@strrl.dev>
Signed-off-by: STRRL <im@strrl.dev>
@STRRL
Copy link
Member Author

STRRL commented Sep 20, 2022

/cc @chaos-mesh/committers @chaos-mesh/maintainers
This PR is ready for review!

Copy link
Member

@Andrewmatilde Andrewmatilde left a comment

Choose a reason for hiding this comment

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

LGTM

@STRRL
Copy link
Member Author

STRRL commented Sep 21, 2022

/merge

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: c57e3dc

@ti-chi-bot ti-chi-bot merged commit e172c06 into chaos-mesh:master Sep 21, 2022
@ti-srebot ti-srebot mentioned this pull request Sep 21, 2022
11 tasks
@ti-srebot
Copy link
Contributor

cherry pick to release-2.4 in PR #3662

ti-chi-bot added a commit that referenced this pull request Sep 22, 2022
* feat: remove support for crd-v1beta1

Signed-off-by: STRRL <im@strrl.dev>

* test: skew kubernetes version in e2e test

remove 1.15.x, append 1.25.x

Signed-off-by: STRRL <im@strrl.dev>

* chore: Update Changelog

Signed-off-by: STRRL <im@strrl.dev>

* chore: bump minkube version in e2e test to 1.26.1

Signed-off-by: STRRL <im@strrl.dev>

* fix: use calico to replace broken flannel cni

Signed-off-by: STRRL <im@strrl.dev>

* fix: use cilium to instaed broken calico in e2e tests

Signed-off-by: STRRL <im@strrl.dev>

* ci: use default cni to bootstrap e2e test cluster

Signed-off-by: STRRL <im@strrl.dev>

* chore: bump dependency version to fix e2e test on 1.25

Signed-off-by: STRRL <im@strrl.dev>

* chore: make check

Signed-off-by: STRRL <im@strrl.dev>

* feat: bump api dependency version, remove clusterName

Signed-off-by: STRRL <im@strrl.dev>

* chore: remove unused methods

Signed-off-by: STRRL <im@strrl.dev>

* fix: leader-election: use configmapsleases

Signed-off-by: STRRL <im@strrl.dev>

* chore: update rbac for new leader election resouce

Signed-off-by: STRRL <im@strrl.dev>

* chore: make check

Signed-off-by: STRRL <im@strrl.dev>

* chore: use calico cni to fix e2e tests

the auto cni would let source IP as the 172.27.0.1, which breaks the
DNSChaos

Signed-off-by: STRRL <im@strrl.dev>

* chore: bump minikube to 1.27.0 to use calico with k8s 1.25.1

Signed-off-by: STRRL <im@strrl.dev>

* test: let e2e use priviledged level PSP

Signed-off-by: STRRL <im@strrl.dev>

* chore: make check

Signed-off-by: STRRL <im@strrl.dev>

Signed-off-by: STRRL <im@strrl.dev>
Co-authored-by: STRRL <im@strrl.dev>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
ti-chi-bot pushed a commit to chaos-mesh/website that referenced this pull request Oct 21, 2022
Update documentation on supported releases.
Version are based on chaos-mesh/chaos-mesh#3630

This PR is part of the 2.4.0 release:
https://github.com/chaos-mesh/chaos-mesh/blob/release-2.4/.github/workflows/e2e_test.yml#L107

Given that the lowest version tested is 1.20 - removing anyhing below it from the supported list

Signed-off-by: jekader <jekader@gmail.com>

Signed-off-by: jekader <jekader@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

remove crd v1beta1 support
5 participants