Added tenant-b + removed name in config to use path
Build and Push Docker Images / build-and-push (push) Failing after 29s
Build and Push Docker Images / build-and-push (push) Failing after 29s
This commit is contained in:
@@ -5,6 +5,7 @@ metadata:
|
||||
namespace: argocd
|
||||
spec:
|
||||
goTemplate: true
|
||||
goTemplateOptions: ["missingkey=error"]
|
||||
generators:
|
||||
- git:
|
||||
repoURL: https://git.bouvais.lu/adrien/ctie-exercice
|
||||
@@ -13,7 +14,7 @@ spec:
|
||||
- path: "tenants/*/config.yaml"
|
||||
template:
|
||||
metadata:
|
||||
name: 'tenant-{{.name}}'
|
||||
name: 'tenant-{{ trimPrefix "tenant-" .path.basename }}'
|
||||
spec:
|
||||
project: tenants
|
||||
sources:
|
||||
@@ -22,13 +23,16 @@ spec:
|
||||
path: charts/tenant
|
||||
helm:
|
||||
valueFiles:
|
||||
- '$values/tenants/tenant-{{.name}}/config.yaml'
|
||||
- '$values/{{.path.path}}/config.yaml'
|
||||
parameters:
|
||||
- name: name
|
||||
value: '{{ trimPrefix "tenant-" .path.basename }}'
|
||||
- repoURL: https://git.bouvais.lu/adrien/ctie-exercice
|
||||
targetRevision: main
|
||||
ref: values
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: 'tenant-{{.name}}'
|
||||
namespace: 'tenant-{{ trimPrefix "tenant-" .path.basename }}'
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
|
||||
Reference in New Issue
Block a user