146 Commits

Author SHA1 Message Date
Andrew Farries
539414d0e4 Ensure that blocked repo string is a valid regexp 2022-05-10 14:07:25 +05:30
Andrew Farries
1ae1ce97bf Add test for blocked repository config 2022-05-10 14:07:25 +05:30
Andrew Farries
fbf4932c9c Add blockedRepositories config to the installer
* Add new config under the `experimental.webapp.server` section.
* Add the new field to the configmap struct.
2022-05-10 14:07:25 +05:30
Andrew Farries
57ce815dd8 Add a test for ws garbage collection
Add it to the existing configmap test.
2022-05-10 12:38:25 +05:30
Andrew Farries
4f70422024 Make workspace garbage collection configurable 2022-05-10 12:38:25 +05:30
Gero Posmyk-Leinemann
d90e6ab4a7 [installer] Fix server GitHub app cert mount 2022-05-06 13:17:21 +05:30
Andrew Farries
773deca0d5 Add server render test
Ensure that the server pod defines a volume when a github app is
specified and that the server container mounts it.
2022-05-05 20:28:21 +05:30
Andrew Farries
252d715c5e Add server vol and mount for github app secret 2022-05-05 20:28:21 +05:30
Andrew Farries
580772ade3 Off topic: Make variable local to block 2022-05-05 20:28:21 +05:30
Gero Posmyk-Leinemann
e955e75f59 [installer] Minor alignments + fixes 2022-05-05 13:16:20 +05:30
Andrew Farries
9b1f309f72 Ensure enableLocalApp defaults to true when unset 2022-05-04 18:16:20 +05:30
Andrew Farries
0eac574ece Make runDbDeleter configurable
Take the value from the experimental server config rather than
hardcoding to `true`.
2022-05-04 18:16:20 +05:30
Andrew Farries
2093016330 [installer] Make chargbee configurable for server 2022-05-04 14:29:20 +05:30
Andrew Farries
857f98c8c1 Add tests for server configmap logic
Extract named structs for fields that were nested under `ServerConfig`
so that they can be instantiated in tests.
2022-04-29 19:18:15 +05:30
Andrew Farries
faff7db1e9 Make defaultBaseImageRegistryWhitelist configurable
This was previously hard-coded to empty in the server configmap.
2022-04-29 19:18:15 +05:30
Andrew Farries
a03913e62b Make enableLocalApp configurable
This was previously hard-coded to true in the server configmap.
2022-04-29 19:18:15 +05:30
Andrew Farries
557b15cb24 Make disableDynamicAuthProviderLogin configurable
This was previously hard-coded to false in the server configmap.
2022-04-29 19:18:15 +05:30
Andrew Farries
f350f5455f Rename UsePodAffinity to UsePodAntiAffinity 2022-04-29 19:17:15 +05:30
Andrew Farries
bc06510320 Use pod anti-affinity for server if flag is set 2022-04-28 20:04:14 +05:30
Andrew Farries
674db36fbb Make resources configurable for all components
Use the common.ResourceRequirements function from the parent commits,
passing in the existing defaults.
2022-04-28 20:04:14 +05:30
Christian Weichel
96b2a36540 [ws-daemon] Support GIT_SSL_CAINFO 2022-04-28 18:47:14 +05:30
Moritz Eysholdt
82d7451ce9 Remove unneeded privileges 2022-04-28 15:52:14 +05:30
Gero Posmyk-Leinemann
263ad011fd [server] Remove superfluous config field builtinAuthProvidersConfigured 2022-04-28 14:42:14 +05:30
Andrew Farries
0ae3201a7e Set Replicas for multiple components
So that they respect the new
`experimental.common.podConfig.<component>.replicas` setting.
2022-04-26 13:14:38 +05:30
Simon Emms
948ae5192b [installer]: add DropImageRepo functionality to RepoName
This moves the ImageName and RepoName functions to the RenderContext
struct.
2022-04-21 18:26:33 +05:30
Andrew Farries
3fdd2d9754 Rename common.Affinity to NodeAffinity 2022-04-20 02:48:32 +05:30
Gero Posmyk-Leinemann
6bc0571a52 [chart, server] Remove abandoned theiaPluginsBucketNameOverride 2022-04-19 20:33:32 +05:30
Gero Posmyk-Leinemann
8216f8c68e [server, protocol] Remove superfluous "stage" config 2022-04-19 20:33:32 +05:30
Gero Posmyk-Leinemann
92641cacc6 [installer] Add missing ports to server, ws-manager-bridge 2022-04-14 21:00:27 +05:30
Andrew Farries
15deb83caf Camel-case struct field name for consistency 2022-04-14 14:35:27 +05:30
Andrew Farries
8d7a92688f Make server githubApp.certSecretName configurable 2022-04-14 14:35:27 +05:30
Andrew Farries
2021e83d5d Move server config under webapp.server config 2022-04-13 19:24:26 +05:30
Andrew Farries
7d96932db1 Make server githubApp configurable
Default to the existing default value, but allow the value to be
overriden by a new experimental config value.
2022-04-13 19:24:26 +05:30
Andrew Farries
e05f015228 Make server session secret configurable
Default to the existing default value, but allow the value to be
overriden by a new experimental config value.
2022-04-13 19:24:26 +05:30
Andrew Farries
a3125cfd25 Make server jwtSecret configurable
Default to the existing default value, but allow the value to be
overriden by a new experimental config value.
2022-04-13 19:24:26 +05:30
Andrew Farries
0a378ee352 Make server workspaceImage configurable
Default to the existing default value, but allow the value to be
overriden by a new experimental config value.
2022-04-13 19:24:26 +05:30
Christian Weichel
f2738568e3 [installer] Add custom CA secret support 2022-04-11 22:39:24 +05:30
Gero Posmyk-Leinemann
21263bd4e7 [installer] Introduce metadata.shortname 2022-04-11 21:03:24 +05:30
mustard
47af622350 [dashboard,server] switch ide version with one toggle 2022-04-11 19:30:25 +05:30
Anton Kosyakov
9b80bb7415 build JB images for stable and latest separately 2022-04-07 18:55:21 +05:30
Cornelius A. Ludmann
5166afd3d9 [installer] Allow to set default workspace timeout 2022-04-06 14:35:19 +05:30
Andrew Farries
54a765d321 Add rate limits for prebuilds
Prebuilds are rate-limited to N in the last S seconds on a rolling
window basis.
By default, 50 prebuilds are allowed in a 1 minute window.
A configuration property `prebuildLimiter` is added which controls
default rate limit but allows for explicit overrides by cloneURL.
2022-03-08 19:40:15 +05:30
Simon Emms
840d29a151 [installer]: add annotation to make DB resources restart if changes 2022-03-07 17:38:14 +05:30
Simon Emms
c708e63610 [installer]: allow Installer to specify licensor type
Defaults to "gitpod" and allows "replicated". This is defined
by the secret
2022-02-25 17:24:04 +05:30
Lou Bichard
319e34f8b1 jb: fix update gateway instructions 2022-02-24 15:00:03 +05:30
Simon Emms
4820e804bb [installer]: move to /install 2022-02-22 17:03:02 +05:30