From 954cd225f35a548a84eb47b2bd48279fca01f329 Mon Sep 17 00:00:00 2001 From: gary-van-woerkens Date: Wed, 30 Jun 2021 19:04:50 +0200 Subject: [PATCH] fix k8s manifests. --- .k8s/components/jobs/pg.ts | 6 +++--- .k8s/components/jobs/restore.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.k8s/components/jobs/pg.ts b/.k8s/components/jobs/pg.ts index b0a68327a2..f31290d656 100644 --- a/.k8s/components/jobs/pg.ts +++ b/.k8s/components/jobs/pg.ts @@ -23,9 +23,9 @@ export default async () => { // add gitlab annotations updateMetadata(secret, { - annotations: envParams.manifest.annotations || {}, - labels: envParams.manifest.labels || {}, - namespace: envParams.manifest.namespace, + annotations: envParams.metadata.annotations || {}, + labels: envParams.metadata.labels || {}, + namespace: envParams.metadata.namespace, }); return [secret]; diff --git a/.k8s/components/jobs/restore.ts b/.k8s/components/jobs/restore.ts index 405d59589c..272552ef99 100644 --- a/.k8s/components/jobs/restore.ts +++ b/.k8s/components/jobs/restore.ts @@ -67,9 +67,9 @@ const ciEnv = environments(process.env); const job = new Job({ metadata: { name: "restore-db", - namespace: ciEnv.manifest.namespace.name, - labels: ciEnv.manifest.labels, - annotations: ciEnv.manifest.annotations + namespace: ciEnv.metadata.namespace.name, + labels: ciEnv.metadata.labels, + annotations: ciEnv.metadata.annotations }, spec: { // backoffLimit: 0,