Sergiusz Bazanski | 7480879 | 2020-04-13 01:28:09 +0200 | [diff] [blame] | 1 | local mirko = import "../../kube/mirko.libsonnet"; |
Sergiusz Bazanski | 91e1a8c | 2020-06-25 12:16:29 +0200 | [diff] [blame] | 2 | local policies = import "../../kube/policies.libsonnet"; |
Sergiusz Bazanski | 7480879 | 2020-04-13 01:28:09 +0200 | [diff] [blame] | 3 | |
| 4 | local depotview = import "depotview.libsonnet"; |
| 5 | local hackdoc = import "hackdoc.libsonnet"; |
Sergiusz Bazanski | 91e1a8c | 2020-06-25 12:16:29 +0200 | [diff] [blame] | 6 | local sourcegraph = import "sourcegraph.libsonnet"; |
Sergiusz Bazanski | 7480879 | 2020-04-13 01:28:09 +0200 | [diff] [blame] | 7 | |
| 8 | { |
| 9 | devtools(name):: mirko.Environment(name) { |
| 10 | local env = self, |
| 11 | local cfg = self.cfg, |
| 12 | |
| 13 | cfg+: { |
| 14 | depotview: depotview.cfg, |
| 15 | hackdoc: hackdoc.cfg { |
| 16 | publicFQDN: "hackdoc.hackerspace.pl", |
| 17 | }, |
Sergiusz Bazanski | 91e1a8c | 2020-06-25 12:16:29 +0200 | [diff] [blame] | 18 | sourcegraph: sourcegraph.cfg { |
| 19 | publicFQDN: "cs.hackerspace.pl", |
| 20 | }, |
Sergiusz Bazanski | 7480879 | 2020-04-13 01:28:09 +0200 | [diff] [blame] | 21 | }, |
| 22 | |
| 23 | components: { |
| 24 | depotview: depotview.component(cfg.depotview, env), |
| 25 | hackdoc: hackdoc.component(cfg.hackdoc, env), |
Sergiusz Bazanski | 91e1a8c | 2020-06-25 12:16:29 +0200 | [diff] [blame] | 26 | // This is configurated manually through the web interface, q3k has an account |
| 27 | // and can create more administrative ones if needed. |
| 28 | sourcegraph: sourcegraph.component(cfg.sourcegraph, env), |
Sergiusz Bazanski | 7480879 | 2020-04-13 01:28:09 +0200 | [diff] [blame] | 29 | }, |
| 30 | }, |
| 31 | |
| 32 | prod: self.devtools("devtools-prod") { |
Sergiusz Bazanski | 91e1a8c | 2020-06-25 12:16:29 +0200 | [diff] [blame] | 33 | local env = self, |
| 34 | // For SourceGraph's tini container mess. |
| 35 | policy: policies.AllowNamespaceMostlySecure(env.cfg.namespace), |
Sergiusz Bazanski | 7480879 | 2020-04-13 01:28:09 +0200 | [diff] [blame] | 36 | }, |
| 37 | } |