This commit is contained in:
dvirlabs 2025-07-28 12:42:54 +03:00
parent 250bc445cc
commit 6ce9c295d3
2 changed files with 28 additions and 22 deletions

View File

@ -9,23 +9,26 @@ spec:
repoURL: https://git.dvirlabs.com/dvirlabs/app-definition.git
revision: HEAD
files:
- path: env-sets/int/services/*.yaml
- path: env-sets/int/services/*/service.yaml
template:
metadata:
name: int-{{basenameNormalized}}
name: '{{ path.basename }}-int'
spec:
project: default
source:
repoURL: https://git.dvirlabs.com/dvirlabs/app-provision.git
targetRevision: HEAD
chart: ngnix-message
helm:
valueFiles:
- services/{{path.basename}} # ✅ correct relative path to value files
project: sandbox
destination:
server: https://kubernetes.default.svc
namespace: int
sources:
- repoURL: https://git.dvirlabs.com/dvirlabs/app-provision.git
targetRevision: HEAD
path: ngnix-message
helm:
valueFiles:
- '$values/{{ .path.path }}/service.yaml'
- repoURL: https://git.dvirlabs.com/dvirlabs/app-definition.git
targetRevision: HEAD
ref: values
syncPolicy:
automated:
selfHeal: true
prune: true
selfHeal: true

View File

@ -9,23 +9,26 @@ spec:
repoURL: https://git.dvirlabs.com/dvirlabs/app-definition.git
revision: HEAD
files:
- path: env-sets/prod/services/*.yaml
- path: env-sets/prod/services/*/service.yaml
template:
metadata:
name: prod-{{basenameNormalized}}
name: '{{ path.basename }}-prod'
spec:
project: default
source:
repoURL: https://git.dvirlabs.com/dvirlabs/app-provision.git
targetRevision: HEAD
chart: ngnix-message
helm:
valueFiles:
- services/{{path.basename}} # ✅ correct relative path to value files
project: sandbox
destination:
server: https://kubernetes.default.svc
namespace: prod
sources:
- repoURL: https://git.dvirlabs.com/dvirlabs/app-provision.git
targetRevision: HEAD
path: ngnix-message
helm:
valueFiles:
- '$values/{{ .path.path }}/service.yaml'
- repoURL: https://git.dvirlabs.com/dvirlabs/app-definition.git
targetRevision: HEAD
ref: values
syncPolicy:
automated:
selfHeal: true
prune: true
selfHeal: true