This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Capacity flag per cluster to rate limit tenant resources for che and …
…jenkins (#477) Part of openshiftio/openshift.io#3320 To avoid overloading clusters we need a way to limit total amount of che and jenkins instances running on each cluster. This PR will add a new parameter to the cluster config which will reflect the current capacity of each cluster. When the corresponding secret is modified it will cause the config file update. The file watcher will re-load cluster configuration.
- Loading branch information
1 parent
f8c3f2e
commit 19eb16a
Showing
15 changed files
with
515 additions
and
186 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
configuration/conf-files/tests/oso-clusters-capacity-updated.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"clusters": [ | ||
{ | ||
"name":"us-east-2", | ||
"api-url":"https://api.starter-us-east-2.openshift.com", | ||
"app-dns":"8a09.starter-us-east-2.openshiftapps.com", | ||
"service-account-token":"fX0nH3d68LQ6SK5wBE6QeKJ6X8AZGVQO3dGQZZETakhmgmWAqr2KDFXE65KUwBO69aWoq", | ||
"service-account-username":"dsaas", | ||
"token-provider-id":"f867ac10-5e05-4359-a0c6-b855ece59090", | ||
"auth-client-id":"autheast2", | ||
"auth-client-secret":"autheast2secret", | ||
"auth-client-default-scope":"user:full" | ||
}, | ||
{ | ||
"name":"us-east-2a", | ||
"api-url":"https://api.starter-us-east-2a.openshift.com", | ||
"app-dns":"b542.starter-us-east-2a.openshiftapps.com", | ||
"service-account-token":"ak61T6RSAacWFruh1vZP8cyUOBtQ3Chv1rdOBddSuc9nZ2wEcs81DHXRO55NpIpVQ8uiH", | ||
"service-account-username":"dsaas", | ||
"token-provider-id":"886c7ea3-ef97-443d-b345-de94b94bb65d", | ||
"auth-client-id":"autheast2a", | ||
"auth-client-secret":"autheast2asecret", | ||
"auth-client-default-scope":"user:full", | ||
"capacity-exhausted":true | ||
}, | ||
{ | ||
"name":"us-east-1a", | ||
"api-url":"https://api.starter-us-east-1a.openshift.com", | ||
"app-dns":"b542.starter-us-east-1a.openshiftapps.com", | ||
"service-account-token":"sdfjdlfjdfkjdlfjd12324434543085djdfjd084508gfdkjdofkjg43854085dlkjdlk", | ||
"service-account-username":"dsaas", | ||
"token-provider-id":"886c7ea3-ef97-443d-b345-de94b94bb65d", | ||
"auth-client-id":"autheast1a", | ||
"auth-client-secret":"autheast1asecret", | ||
"auth-client-default-scope":"user:full", | ||
"capacity-exhausted":false | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"clusters": [ | ||
] | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"somedata": "blah-blah-blah" | ||
} |
Oops, something went wrong.