Some checks failed
CI / build (push) Failing after 12s
GitOrigin-RevId: 6370f6ea785709295b6abcf9c60717cacf3ac432
40 lines
No EOL
1.1 KiB
Jsonnet
40 lines
No EOL
1.1 KiB
Jsonnet
local images = import "k8s/configs/images.libsonnet";
|
|
local base = import "k8s/configs/base.libsonnet";
|
|
|
|
local Params = base.SimpleFieldStruct([
|
|
"namespace",
|
|
"context",
|
|
"coderPgUrlSecret",
|
|
]) {};
|
|
|
|
local App(params) = {
|
|
local chartPath = "../../external/+helm_deps+helm_coderv2_coder",
|
|
app: params.context.helm.template("coder", chartPath, {
|
|
//local image = images.Prod["grafana/grafana"],
|
|
namespace: params.namespace,
|
|
values: {
|
|
coder: {
|
|
env: [
|
|
{
|
|
name: "CODER_PG_CONNECTION_URL",
|
|
valueFrom: {
|
|
secretKeyRef: {
|
|
name: params.coderPgUrlSecret,
|
|
key: "url",
|
|
},
|
|
},
|
|
},
|
|
{
|
|
name: "CODER_ACCESS_URL",
|
|
value: "https://coder.csbx.dev",
|
|
}
|
|
]
|
|
}
|
|
}
|
|
})
|
|
};
|
|
|
|
{
|
|
Params: Params,
|
|
App: App,
|
|
} |