-
Notifications
You must be signed in to change notification settings - Fork 819
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
GameServer remains "STATE:Creating" if not create serviceaccount #1370
Comments
This is documented here: So this is working as intended. |
@markmandel Thank you for the information!
|
Unfortunately we can't blanket move to Error state here, because there are very valid temporary reasons why this could fail (i.e. master is temporarily down), that will eventually rectify themselves. If we can find a way to capture that this is a failure due to RBAC issues though - I agree this would be a nice addition to report it in this way 👍 |
@markmandel Confirmed that "Forbidden" is returned if a failure occurs due to RBAC issues. That error handling code is as below.
As a execution result for "describe gameserver", I can confirm the RBAC problem as Events.
For reference, when handling Invalid error, it is as below.
|
Nice! That looks great!. If you have time, would love it if you submitted a PR with accompanying Unit and e2e tests! |
@markmandel |
No worries - also feel free to hop on Slack and join the #development channel - happy to talk through some of the details and give you a hand! |
@markmandel Should I close this issue? |
Updated labels, and closing. Thank you! 👍 |
What happened:
I created a GameServer in a namespace that does not create a serviceaccount for agones-sdk.(mistake operation)
As a result, GameServer remains
STATE: Creating
and I did not understand the cause even when I saw thekubectl describe
.$ kubectl describe gameserver ...
What you expected to happen:
I want a message that "error looking up serviceaccount for agones-sdk" displayed in the event of
kubectl describe
and theSTATE
becomesSTATE: error
How to reproduce it (as minimally and precisely as possible):
Create a GameServer without creating an serviceaccount for agones-sdk.
Anything else we need to know?:
I couldn't find the cause without looking at the agones-controller log.
Environment:
kubectl version
): v1.13.12-gke.30 (v1.13.5)I would be grateful if you could fixed this.
The text was updated successfully, but these errors were encountered: