Skip to content

Commit

Permalink
Merge pull request #120 from nw0rn/main
Browse files Browse the repository at this point in the history
Add namespace reference to kustomize files
  • Loading branch information
stefanprodan authored Feb 8, 2024
2 parents 2ed0e2b + c49e6be commit 8525be1
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 8525be1

Please sign in to comment.