Skip to content

Commit

Permalink
add namespace to kustomize files
Browse files Browse the repository at this point in the history
Signed-off-by: nw0rn <[email protected]>
  • Loading branch information
niwoerner committed Dec 15, 2023
1 parent 94a2d28 commit c49e6be
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
1 change: 1 addition & 0 deletions tenants/base/dev-team/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: apps
resources:
- rbac.yaml
- sync.yaml
1 change: 1 addition & 0 deletions tenants/production/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: apps
resources:
- ../base/dev-team
patches:
Expand Down
1 change: 1 addition & 0 deletions tenants/staging/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: apps
resources:
- ../base/dev-team
patches:
Expand Down

0 comments on commit c49e6be

Please sign in to comment.