Populate Env Vars for GameServer init containers#4319
Populate Env Vars for GameServer init containers#4319markmandel merged 5 commits intoagones-dev:mainfrom
Conversation
markmandel
left a comment
There was a problem hiding this comment.
Thanks, we needed this!
/gcbrun
| func (c *Controller) addSDKServerEnvVars(gs *agonesv1.GameServer, pod *corev1.Pod) { | ||
| sdkEnvVars := sdkEnvironmentVariables(gs) | ||
| if sdkEnvVars == nil { | ||
| // If a gameserver was created before 1.1 when we started defaulting the grpc and http ports, |
There was a problem hiding this comment.
I wish I could remember why this is here 🤣
|
/gcbrun |
|
/gcbrun |
1 similar comment
|
/gcbrun |
|
Build Succeeded 🥳 Build Id: 519cc5be-20c0-4c48-ba44-b229fbda7957 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: |
|
Build Failed 😭 Build Id: c189e602-98ca-445d-a1a4-ee897ee0b993 Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
|
Build Succeeded 🥳 Build Id: 95b70e62-0bca-429c-bf2e-1511167673a7 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: |
* populate env variables for init containers * add newline * move addEnvVars function to global scope * remove newline
What type of PR is this?
/kind bug
What this PR does / Why we need it:
This MR adds code to populate environment variables for init containers defined in a
GameServerspec.This allows init containers to communicate with the SDK server during initialization, enabling use cases where setup logic needs to interact with Agones APIs before the main game server container starts.
Which issue(s) this PR fixes:
Closes #4241