Pass auth token GATEWAY_SECRET through

This commit is contained in:
Cyber MacGeddon 2024-12-02 19:51:31 +00:00
parent c3fbee4a44
commit 07580a788b

View file

@ -15,6 +15,9 @@ local prompt = import "prompt-template.jsonnet";
create:: function(engine) create:: function(engine)
local envSecrets = engine.envSecrets("gateway-secret")
.with_env_var("GATEWAY_SECRET", "gateway-secret");
local port = $["api-gateway-port"]; local port = $["api-gateway-port"];
local container = local container =
@ -29,6 +32,7 @@ local prompt = import "prompt-template.jsonnet";
"--port", "--port",
std.toString(port), std.toString(port),
]) ])
.with_env_var_secrets(envSecrets)
.with_limits("0.5", "256M") .with_limits("0.5", "256M")
.with_reservations("0.1", "256M") .with_reservations("0.1", "256M")
.with_port(8000, 8000, "metrics") .with_port(8000, 8000, "metrics")
@ -44,6 +48,7 @@ local prompt = import "prompt-template.jsonnet";
.with_port(port, port, "api"); .with_port(port, port, "api");
engine.resources([ engine.resources([
envSecrets,
containerSet, containerSet,
service, service,
]) ])