blob: 4fd7ad6a47bf0c0764918b3b55c88310dae16308 [file] [log] [blame]
local mirko = import "../../kube/mirko.libsonnet";
local kube = import "../../kube/kube.libsonnet";
{
cfg:: {
image: "registry.k0.hswaw.net/q3k/hackdoc:315532800-f4d02581f60b18a8635d026079ed67039cdc45e6",
publicFQDN: error "public FQDN must be set",
},
component(cfg ,env):: mirko.Component(env, "hackdoc") {
local hackdoc = self,
cfg+: {
image: cfg.image,
container: hackdoc.GoContainer("main", "/devtools/hackdoc") {
command+: [
"-depotview=depotview.devtools-prod.svc.cluster.local:4200",
"-hackdoc_url=https://%s" % [cfg.publicFQDN],
"-pub_listen=0.0.0.0:8080",
],
},
ports+: {
publicHTTP: {
public: {
port: 8080,
dns: cfg.publicFQDN,
},
},
},
},
}
}