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

Flaky: Allocator bad tls certificate #995

Merged
merged 2 commits into from
Aug 13, 2019

Conversation

markmandel
Copy link
Member

This should fix the bad tls e2e test failures, as it will force a reload of the allocator deployment - which will load the most up to date generated ssl certificate.

This is the same implementation that is in place for the controller as well for its webhook ssl certificates.

@markmandel markmandel added kind/cleanup Refactoring code, fixing up documentation, etc area/tests Unit tests, e2e tests, anything to make sure things don't break labels Aug 13, 2019
@markmandel
Copy link
Member Author

/cc @cyriltovena

annotations:
{{- if .Values.agones.allocator.generateTLS }}
revision/tls-cert: {{ .Release.Revision | quote }}
{{- end }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Actually can you explain how this annotation is causing restart?
Should annotations be inside the if statement?

Copy link
Member Author

Choose a reason for hiding this comment

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

So this puts an annotation on each pod of the deployment - with the Helm revision number.

When you update helm with a new install, the revision number increases. Since there is now a new annotation on each underlying pod in the Deployment, kubernetes will do a rolling update to the new deployment, thus restarting everything.

annotations could also be in the if statement. Should work either way (it'll be an empty annotation block otherwise). I don't mind to be honest - if you feel like it should include the annotations block, I'll change it 👍

Copy link
Contributor

@pooneh-m pooneh-m Aug 13, 2019

Choose a reason for hiding this comment

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

Thanks for the explanation and thank you so much for the fix :)

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 2d07642c-1c9f-4122-bece-95ce3f157a54

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

This should fix the bad tls e2e test failures, as it will force
a reload of the allocator deployment - which will load the most
up to date generated ssl certificate.

This is the same implementation that is in place for the controller
as well for its webhook ssl certificates.
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: d9572719-3ddf-488b-b713-c99bee67d8ea

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/995/head:pr_995 && git checkout pr_995
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.0.0-0cf6a86

@markmandel
Copy link
Member Author

@googlebot rescan

Are you alive my bot friend?

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 1161ee7a-0aad-4c44-a201-6b1352e980af

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/995/head:pr_995 && git checkout pr_995
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.0.0-39fb2ce

@markmandel markmandel merged commit c5fa6ef into googleforgames:master Aug 13, 2019
@markmandel markmandel deleted the flaky/allocator-tls branch August 13, 2019 20:12
@markmandel markmandel added this to the 1.0.0 milestone Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/tests Unit tests, e2e tests, anything to make sure things don't break kind/cleanup Refactoring code, fixing up documentation, etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants