Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

erdii
Copy link
Contributor

@erdii erdii commented Apr 24, 2025

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

This PR bumps the version of cel-go used throughout the codebase.

It enables end-users of kubernetes to use new features like quoted fields or first/last accessor helpers for lists.

It also enables projects that import both cel-go and k8s.io/apiserver or k8s.io/apiextensions-apiserver code to use the latest version of cel-go.

Which issue(s) this PR fixes:

Does not fix #128891

Special notes for your reviewer:

Does this PR introduce a user-facing change?

Bump cel-go dependency to v0.25.0. The changeset is available at: https://github.com/google/cel-go/compare/v0.23.2...v0.25.0

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 24, 2025
Copy link

linux-foundation-easycla bot commented Apr 24, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: erdii / name: Josh Gwosdz (7a24c4c)

@k8s-ci-robot k8s-ci-robot added do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Apr 24, 2025
@k8s-ci-robot
Copy link
Contributor

Welcome @erdii!

It looks like this is your first PR to kubernetes/kubernetes 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/kubernetes has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot
Copy link
Contributor

Hi @erdii. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. area/apiserver area/cloudprovider area/dependency Issues or PRs related to dependency changes sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. sig/auth Categorizes an issue or PR as relevant to SIG Auth. sig/cloud-provider Categorizes an issue or PR as relevant to SIG Cloud Provider. and removed do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Apr 24, 2025
@erdii
Copy link
Contributor Author

erdii commented Apr 24, 2025

/sig api-machinery

@k8s-ci-robot k8s-ci-robot added the sig/node Categorizes an issue or PR as relevant to SIG Node. label Apr 24, 2025
@github-project-automation github-project-automation bot moved this to Needs Triage in SIG Auth Apr 24, 2025
@k8s-ci-robot k8s-ci-robot added the wg/device-management Categorizes an issue or PR as relevant to WG Device Management. label Apr 24, 2025
@k8s-ci-robot k8s-ci-robot requested review from bart0sh, caesarxuchao and a team April 24, 2025 14:51
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 24, 2025
@dims
Copy link
Member

dims commented Apr 24, 2025

/approve cancel

@k8s-ci-robot k8s-ci-robot removed the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 24, 2025
@liggitt
Copy link
Member

liggitt commented Apr 25, 2025

/approve

can try targeted approval again on the next dep update

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 25, 2025
"//common/operators:go_default_library",
"//common/overloads:go_default_library",
"//common/types:go_default_library",
"@in_gopkg_yaml_v3//:go_default_library",
Copy link
Member

Choose a reason for hiding this comment

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

I think this update made yaml.v3 a dependency of cel-go, right as we merged #131454

The hack/unwanted-dependencies.json file needs updating

@BenTheElder
Copy link
Member

BenTheElder commented Apr 25, 2025

/approve
/lgtm-cancel
[cancelling lgtm until unwanted-dependencies.json is updated to prevent pointless retesting]

https://prow.k8s.io/view/gs/kubernetes-ci-logs/pr-logs/pull/131444/pull-kubernetes-dependencies/1915590712347332608

@erdii please add this to the yaml.v3 list in hack/unwanted-dependencies.json:

  	      "github.com/google/cadvisor",
+ 	      "github.com/google/cel-go",
  	      "github.com/google/gnostic-models",

@BenTheElder
Copy link
Member

targeted approval worked!
Screenshot 2025-04-24 at 7 50 11 PM

@k8s-triage-robot
Copy link

The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass.

This bot retests PRs for certain kubernetes repos according to the following rules:

  • The PR does have any do-not-merge/* labels
  • The PR does not have the needs-ok-to-test label
  • The PR is mergeable (does not have a needs-rebase label)
  • The PR is approved (has cncf-cla: yes, lgtm, approved labels)
  • The PR is failing tests required for merge

You can:

/retest

@pacoxu
Copy link
Member

pacoxu commented Apr 25, 2025

/lgtm cancel
for the #131444 (comment)

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 25, 2025
@erdii
Copy link
Contributor Author

erdii commented Apr 25, 2025

We tightly control rollouts of changes in accepted syntax and additional library functions usable in cel expressions from within kubernetes (otherwise the previous version of kube-apiserver can consider persisted CEL expressions invalid).

For the PR author, unless we take action to opt into the newer versions of the libraries, I don't think the quoted fields or first/last accessors you mentioned will be automatically available as a result of this bump

Understood! What would need to be done to make newer libraries available?

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: BenTheElder, erdii, liggitt

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

@erdii
Copy link
Contributor Author

erdii commented Apr 25, 2025

I've updated hack/unwanted-dependencies.json as requested.

@pacoxu
Copy link
Member

pacoxu commented Apr 25, 2025

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 25, 2025
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: b52963efe39eee1ed294f00d216fa77bd33121d0

@k8s-ci-robot k8s-ci-robot merged commit e9379e9 into kubernetes:master Apr 25, 2025
15 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.34 milestone Apr 25, 2025
@github-project-automation github-project-automation bot moved this from Needs Triage to Closed / Done in SIG Auth Apr 25, 2025
@erdii erdii deleted the update-cel-go branch April 25, 2025 09:27
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. area/apiserver area/cloudprovider area/dependency Issues or PRs related to dependency changes cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. sig/auth Categorizes an issue or PR as relevant to SIG Auth. sig/cloud-provider Categorizes an issue or PR as relevant to SIG Cloud Provider. sig/node Categorizes an issue or PR as relevant to SIG Node. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. triage/accepted Indicates an issue or PR is ready to be actively worked on. wg/device-management Categorizes an issue or PR as relevant to WG Device Management.
Projects
Archived in project
Archived in project
Development

Successfully merging this pull request may close these issues.

Adopting new libraries from cel-go
9 participants