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

refactor(allocation): Reimplement the Validate method using "field.ErrorList" #3259

Merged
merged 4 commits into from
Jul 14, 2023

Conversation

aimuz
Copy link
Collaborator

@aimuz aimuz commented Jul 12, 2023

Signed-off-by: aimuz mr.imuz@gmail.com

What type of PR is this?

Uncomment only one /kind <> line, press enter to put that in a new line, and remove leading whitespace from that line:

/kind breaking
/kind bug
/kind cleanup
/kind documentation
/kind feature
/kind hotfix

/kind breaking

What this PR does / Why we need it:

ref: #3239
ref: #3255

Which issue(s) this PR fixes:

Closes #

Special notes for your reviewer:

@github-actions github-actions bot added the kind/breaking Breaking change label Jul 12, 2023
@roberthbailey roberthbailey requested review from markmandel and igooch and removed request for aLekSer and roberthbailey July 12, 2023 03:57
@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 80bb142b-9989-4610-a8f3-80e92e296f42

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: a80ce7b5-444b-4692-912d-cb64f8415504

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: e06f6dd4-8ffe-440f-87e9-8f421767e59e

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 553fe32b-9c57-4a87-b196-66fd0fe4ecae

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: e13d7bf4-51c9-4197-98cf-a45e69639b9f

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: aef9c633-2dc5-4f78-ad38-41ca31e02c94

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/3259/head:pr_3259 && git checkout pr_3259
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.registry=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.34.0-dev-559e801-amd64

Message: "Feature CountsAndLists must be enabled if Counters or Lists are specified",
Field: field,
})
allErrs = append(allErrs, field.Forbidden(fldPath.Child("counters"), "Feature CountsAndLists must be enabled if Counters or Lists are specified"))
Copy link
Collaborator

Choose a reason for hiding this comment

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

How specific do you want the field path to be? Here there may be the case that "lists" is the field path.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@igooch
Yes, I only processed the counters field, the lists field should have been processed as well, I ignored it

thank you very much

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@igooch done

…rorList"

Signed-off-by: aimuz <mr.imuz@gmail.com>
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 92eca973-3de0-46c7-a3bf-6b83b0c2ffed

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/3259/head:pr_3259 && git checkout pr_3259
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.registry=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.34.0-dev-a99a9fe-amd64

@aimuz aimuz requested a review from igooch July 13, 2023 06:36
@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aimuz, igooch, markmandel

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

@markmandel markmandel enabled auto-merge (squash) July 13, 2023 22:30
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 530902ae-bd20-4601-988b-969a7f284df7

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/3259/head:pr_3259 && git checkout pr_3259
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.registry=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.34.0-dev-8cd66cb-amd64

@google-oss-prow google-oss-prow bot removed the lgtm label Jul 14, 2023
@google-oss-prow
Copy link

New changes are detected. LGTM label has been removed.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 706115f9-bf37-424f-95ca-5f13f43985c7

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/3259/head:pr_3259 && git checkout pr_3259
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.registry=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.34.0-dev-398ca76-amd64

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 5bcd5397-a20f-47ca-8008-c4d3c3f840bf

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/3259/head:pr_3259 && git checkout pr_3259
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.registry=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.34.0-dev-b3757f6-amd64

@markmandel markmandel merged commit 3bf636b into googleforgames:main Jul 14, 2023
2 checks passed
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.

5 participants