fix: ensure fleet autoscaler policy are namespaced#4098
fix: ensure fleet autoscaler policy are namespaced#4098markmandel merged 17 commits intoagones-dev:mainfrom
Conversation
|
/gcbrun |
|
Build Failed 😭 Build Id: ab15f2ec-5595-4ef5-8530-9eddaa897305 Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
b5a6d1a to
e9a8b98
Compare
|
/gcbrun |
|
Build Succeeded 🥳 Build Id: 8f343cff-43c4-4726-90fc-d566ff758fbf 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 Succeeded 🥳 Build Id: 2f991fa6-7c3c-4cc0-a929-8e3d8671dc04 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: |
|
/gcbrun |
|
Build Succeeded 🥳 Build Id: 9e7638f9-b613-4b48-95b4-e580805204e9 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: |
|
Would you be able to add a test that tests for the issue in the original issue? I.e. a test that ensures that two fleets with the same name in different namespaces scale up independently? |
Yes, I'm gonna do that, I would imagine an e2e test ? Currently, it seems that the namespace is set by the |
|
Actually, this could be something similar to the allocator one: https://github.com/googleforgames/agones/blob/main/test/e2e/allocator_test.go#L564C6-L564C33 Will add the e2e test this week |
|
Build Failed 😭 Build Id: befe7ab2-a697-4304-b7e1-b21f1c692e84 Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
|
My e2e test is not valid, it's also passing on the |
|
Build Succeeded 🥳 Build Id: 1d8aca5a-8571-4098-8da8-6ab3fc5195db 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: f1a3cbca-f1ff-4b76-bbda-5a6d0b0c6f93 Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
|
Build Failed 😭 Build Id: 3adc7671-a020-4358-8443-da33fe7bb104 Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
|
Build Succeeded 🥳 Build Id: 76745580-f4dc-4969-8996-a3483ca02f71 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 Succeeded 🥳 Build Id: 9a1ee354-e856-460c-ba9d-73c39d91c0b6 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 Succeeded 🥳 Build Id: 1d0c1983-4127-46d9-99d6-8a7592751cec 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: 71e41609-665d-4bb4-9c6b-55d593464749 Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
|
/gcbrun |
|
Build Failed 😭 Build Id: 0edf2f1e-e1df-4479-a967-b91f96315c5a Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
|
/gcbrun |
|
Build Succeeded 🥳 Build Id: 56e8a228-fd33-4d1d-b3a5-27c896d47ce7 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: |
|
/gcbrun |
|
Build Failed 😭 Build Id: b4483729-24a3-4b80-b577-4c6dd1c24bec Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
|
/gcbrun |
|
Build Failed 😭 Build Id: 24a30463-ebfc-4c98-a748-0c2712754aa8 Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
What type of PR is this?
/kind bug
What this PR does / Why we need it:
Ensure the fleet autoscaler policy are namespaced, to ensure it's not autoscaling on all namespaces (on fleet with same name but from different namespaces)
Which issue(s) this PR fixes:
Closes #3954
Special notes for your reviewer:
Did some manual tests following the steps described on the issue.
TODO:
syncFleet()and theupdateFleet()are also namespaced