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

Cleanup supported k8s version in test-runner #1507

Merged
merged 1 commit into from
Jul 26, 2023

Conversation

chuangw6
Copy link
Member

@chuangw6 chuangw6 commented Jul 19, 2023

Changes

Step 1 for #1499

This commit

  • removes support for EOL k8s versions i.e. 1.20, 1.21, 1.22, 1.23.
  • updates support for k8s 1.24 to the latest patch - 1.24.15
  • updates support for k8s 1.25 to the latest patch - 1.25.11
  • adds support for latest k8s versions including 1.26 and 1.27.
  • updates MetalLB to v0.13.10 which doesn't deploy pod security policy which is not supported in k8s 1.25+.

References:

Signed-off-by: Chuang Wang chuangw@google.com

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

See the contribution guide
for more details.

@tekton-robot tekton-robot added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Jul 19, 2023
@tekton-robot tekton-robot requested review from bobcatfish and jerop July 19, 2023 20:18
@tekton-robot tekton-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 19, 2023
@chuangw6
Copy link
Member Author

/assign @lbernick

PTAL. Thanks!

@chuangw6
Copy link
Member Author

/test plumbing-unit-tests

@tekton-robot
Copy link
Contributor

@chuangw6: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

  • /test pull-dogfooding-mario-test
  • /test pull-tekton-plumbing-check-testgrid-config

In response to this:

/test plumbing-unit-tests

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Copy link
Member

@lbernick lbernick left a comment

Choose a reason for hiding this comment

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

/lgtm

Thanks Chuang! if you did any local testing, could you provide a gist with the results?

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 19, 2023
@vdemeester
Copy link
Member

vdemeester commented Jul 20, 2023

So the dogfooding cluster (from google cloud) is still running 1.24 (so it's.. still supported by someone). Same goes from supported version fo kubernetes version in OpenShift. In addition, tektoncd/pipeline has min kubernetes version set to 1.24, so I would really want to be able to make sure it works on 1.24 from our CI — until we bump the min version to 1.25 or 1.26, or …

/hold

cc @afrittoli

@tekton-robot tekton-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 20, 2023
@chuangw6 chuangw6 force-pushed the cleanup-test-runner branch from b30bd9a to d4acfb5 Compare July 20, 2023 22:03
@tekton-robot tekton-robot removed the lgtm Indicates that a PR is ready to be merged. label Jul 20, 2023
@chuangw6
Copy link
Member Author

/lgtm

Thanks Chuang! if you did any local testing, could you provide a gist with the results?

Yes. I've pushed the newly built test-runner image to docker hub and test the image on the pipeline repo. Here is the output. Looks like it works well.

@chuangw6
Copy link
Member Author

So the dogfooding cluster (from google cloud) is still running 1.24 (so it's.. still supported by someone). Same goes from supported version fo kubernetes version in OpenShift. In addition, tektoncd/pipeline has min kubernetes version set to 1.24, so I would really want to be able to make sure it works on 1.24 from our CI — until we bump the min version to 1.25 or 1.26, or …

/hold

cc @afrittoli

@vdemeester Thanks for the input! SGTM. Do WE have a plan/timeline for updating k8s version in dogfooding cluster and also other tools you just mentioned?

@afrittoli
Copy link
Member

So the dogfooding cluster (from google cloud) is still running 1.24 (so it's.. still supported by someone). Same goes from supported version fo kubernetes version in OpenShift. In addition, tektoncd/pipeline has min kubernetes version set to 1.24, so I would really want to be able to make sure it works on 1.24 from our CI — until we bump the min version to 1.25 or 1.26, or …
/hold
cc @afrittoli

@vdemeester Thanks for the input! SGTM. Do WE have a plan/timeline for updating k8s version in dogfooding cluster and also other tools you just mentioned?

I think that until Tekton supports 1.24 or until we setup k8s matrix testing we need to keep dogfooding to 1.24.

@chuangw6 chuangw6 force-pushed the cleanup-test-runner branch from d4acfb5 to 56b3edd Compare July 24, 2023 19:55
Step 1 for tektoncd#1499

This commit
- removes support for EOL k8s versions i.e. 1.20, 1.21, 1.22, 1.23.
- updates support for k8s 1.24 to the latest patch - 1.24.15
- updates support for k8s 1.25 to the latest patch - 1.25.11
- adds support for latest k8s versions including 1.26 and 1.27.
- updates MetalLB to v0.13.10 which doesn't deploy pod security policy which is not supported in k8s 1.25+.

References:
- https://github.com/kubernetes-sigs/kind/releases/tag/v0.20.0
- https://metallb.universe.tf/release-notes/#version-0-13-5

Signed-off-by: Chuang Wang <chuangw@google.com>
@chuangw6 chuangw6 force-pushed the cleanup-test-runner branch from 56b3edd to d8cda42 Compare July 24, 2023 19:56
@chuangw6
Copy link
Member Author

chuangw6 commented Jul 24, 2023

I added back the support for k8s 1.24 - the latest patch 1.24.15, and I have tested on 1.24 with the newly built image and it works fine.

So now the test runner image should support k8s 1.24, 1.25, 1.26 & 1.27. And in prow config (example), we can choose which k8s version we want to run on when using the test-runner image.

Also this PR updates the installation of the load-balancer MetalLB. The previous version we installed needs to install PodSecurityPolicy which has been deprecated since k8s 1.25.

Are we good to merge this PR now?

Copy link
Member

@lbernick lbernick left a comment

Choose a reason for hiding this comment

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

/lgtm

@@ -83,36 +83,25 @@ if [[ "${E2E_ENV}" != "" && ! -f "${E2E_ENV}" ]]; then
fi

# The version map correlated with this version of KinD
KIND_VERSION="v0.11.1"
Copy link
Member

Choose a reason for hiding this comment

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

do we still need this env var?

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 don't think it's used anywhere. Instead, the arg with same name defined in dockerfile is actually used.

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 24, 2023
Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

/lgtm

@dibyom
Copy link
Member

dibyom commented Jul 26, 2023

/approve

@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dibyom

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

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 26, 2023
@vdemeester
Copy link
Member

/hold cancel

@tekton-robot tekton-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants