fix: pin chart to exact latest version at provision time, fix health check URL
Some checks failed
Build & Release / build (push) Has been cancelled
Some checks failed
Build & Release / build (push) Has been cancelled
This commit is contained in:
@@ -140,7 +140,7 @@ export async function customerRoutes(app: FastifyInstance) {
|
||||
await createCustomerDnsRecord(slug);
|
||||
await setStep("dns", "done");
|
||||
|
||||
addCustomerChart(slug, body.appVersion);
|
||||
await addCustomerChart(slug, body.appVersion);
|
||||
await setStep("chart", "done");
|
||||
|
||||
await db`UPDATE customers SET status = 'provisioned', updated_at = NOW() WHERE slug = ${slug}`;
|
||||
@@ -299,7 +299,7 @@ export async function customerRoutes(app: FastifyInstance) {
|
||||
const dbUrl = new URL(secrets["database-url"]);
|
||||
await addCustomerToPool(slug, dbUrl.password);
|
||||
|
||||
addCustomerChart(slug, "*");
|
||||
await addCustomerChart(slug, "*");
|
||||
await db`UPDATE customers SET status = 'provisioned', updated_at = NOW() WHERE slug = ${slug}`;
|
||||
app.log.info({ slug }, "customer reactivated");
|
||||
return reply.code(200).send({ slug, status: "provisioned" });
|
||||
|
||||
Reference in New Issue
Block a user