forked from vmware-tanzu/application-accelerator-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add NSP gitops with sa customization (vmware-tanzu#296)
Signed-off-by: Diego Alfonso <dalfonso@vmware.com>
- Loading branch information
1 parent
12e3587
commit e3b18e6
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
ns-provisioner-samples/gitops-install-params-sa/desired-namespaces.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#@data/values | ||
--- | ||
namespaces: | ||
#! The only required parameter is the name of the namespace. All additional values provided here | ||
#! for a namespace will be available under data.values for templating additional sources | ||
- name: dev | ||
supply_chain_service_account: | ||
secrets: | ||
- git | ||
- name: qa |
11 changes: 11 additions & 0 deletions
11
ns-provisioner-samples/gitops-install-params-sa/namespaces.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#@ load("@ytt:data", "data") | ||
#! This for loop will loop over the namespace list in desired-namespaces.yaml and will create those namespaces. | ||
#! NOTE: if you have another tool like Tanzu Mission Control or some other process that is taking care of creating namespaces for you, | ||
#! and you don’t want namespace provisioner to create the namespaces, you can delete this file from your GitOps install repository. | ||
#@ for ns in data.values.namespaces: | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: #@ ns.name | ||
#@ end |