From c49e6be6ad576fe01570b7cd112423c5c7084ac0 Mon Sep 17 00:00:00 2001 From: nw0rn <69248573+nw0rn@users.noreply.github.com> Date: Fri, 15 Dec 2023 09:39:34 +0100 Subject: [PATCH] add namespace to kustomize files Signed-off-by: nw0rn --- README.md | 3 ++- tenants/base/dev-team/kustomization.yaml | 1 + tenants/production/kustomization.yaml | 1 + tenants/staging/kustomization.yaml | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f266dd86..a3017546 100644 --- a/README.md +++ b/README.md @@ -180,7 +180,7 @@ flux create kustomization dev-team \ Create the base `kustomization.yaml` file: ```sh -cd ./tenants/base/dev-team/ && kustomize create --autodetect +cd ./tenants/base/dev-team/ && kustomize create --autodetect --namespace apps ``` Create the staging overlay and set the path to the staging dir inside the tenant repository: @@ -199,6 +199,7 @@ EOF cat << EOF | tee ./tenants/staging/kustomization.yaml apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization +namespace: apps resources: - ../base/dev-team patches: diff --git a/tenants/base/dev-team/kustomization.yaml b/tenants/base/dev-team/kustomization.yaml index a53e58a7..653cd849 100644 --- a/tenants/base/dev-team/kustomization.yaml +++ b/tenants/base/dev-team/kustomization.yaml @@ -1,5 +1,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization +namespace: apps resources: - rbac.yaml - sync.yaml diff --git a/tenants/production/kustomization.yaml b/tenants/production/kustomization.yaml index afabe4df..b81c459b 100644 --- a/tenants/production/kustomization.yaml +++ b/tenants/production/kustomization.yaml @@ -1,5 +1,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization +namespace: apps resources: - ../base/dev-team patches: diff --git a/tenants/staging/kustomization.yaml b/tenants/staging/kustomization.yaml index afabe4df..b81c459b 100644 --- a/tenants/staging/kustomization.yaml +++ b/tenants/staging/kustomization.yaml @@ -1,5 +1,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization +namespace: apps resources: - ../base/dev-team patches: