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

Implementing cross cluster allocation request #757

Merged
merged 1 commit into from
May 7, 2019

Conversation

pooneh-m
Copy link
Contributor

@pooneh-m pooneh-m commented May 3, 2019

  1. Get secret that stores certificates.
  2. Call remote allocation server.

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: b289b99d-b508-4daf-a6b4-007c3e9692be

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

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: f43386c7-7774-4a03-8260-847a81b45739

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/GoogleCloudPlatform/agones.git pull/757/head:pr_757 && git checkout pr_757
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.10.0-36657de

return nil, errors.New(string(data))
}

err = json.Unmarshal(data, &gsaResult)
Copy link
Contributor

Choose a reason for hiding this comment

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

nit:

this can help avoid having to explicitly read data:

if err := json.NewUnmarshaler(response.Body).Decode(&gsaResult); err != nil {
  return nil, fmt.Errors("unable to parse request: %v", err)
}

Copy link
Contributor Author

@pooneh-m pooneh-m May 7, 2019

Choose a reason for hiding this comment

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

The problem is this would fail for error cases that does not decode to gsa. So it actually needs the two step deserialization.

Copy link
Contributor

Choose a reason for hiding this comment

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

not sure what's going on here, then

is it important to return data in error string? if so, can you add some comments?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The data is returned as an error string only for http status 4xx and 5xx. In that case the response body is expected to contain error and not GSA message. Therefore Decode(&gsaResult) would fail to parse the response body as GSA.
I'll add comment in the next PR since this is already merged.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: bf2d0b36-6a19-4e51-b9dc-19f98c8c9da3

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/GoogleCloudPlatform/agones.git pull/757/head:pr_757 && git checkout pr_757
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.10.0-b7951e2

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: f2245c0f-ad4e-455b-8eb5-325802d9bebc

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/GoogleCloudPlatform/agones.git pull/757/head:pr_757 && git checkout pr_757
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.10.0-7209fb3

@markmandel markmandel merged commit 93f0c3a into googleforgames:master May 7, 2019
@markmandel markmandel added this to the 0.10.0 milestone May 7, 2019
@markmandel markmandel added area/user-experience Pertaining to developers trying to use Agones, e.g. SDK, installation, etc kind/feature New features for Agones labels May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/user-experience Pertaining to developers trying to use Agones, e.g. SDK, installation, etc kind/feature New features for Agones
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants