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 repoURL: https://git.dvirlabs.com/dvirlabs/app-definition.git
revision: HEAD revision: HEAD
files: files:
- path: env-sets/int/services/*.yaml - path: env-sets/int/services/*/service.yaml
template: template:
metadata: metadata:
name: int-{{basenameNormalized}} name: '{{ path.basename }}-int'
spec: spec:
project: default project: sandbox
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
destination: destination:
server: https://kubernetes.default.svc server: https://kubernetes.default.svc
namespace: int 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: syncPolicy:
automated: automated:
selfHeal: true
prune: true prune: true
selfHeal: true

View File

@ -9,23 +9,26 @@ spec:
repoURL: https://git.dvirlabs.com/dvirlabs/app-definition.git repoURL: https://git.dvirlabs.com/dvirlabs/app-definition.git
revision: HEAD revision: HEAD
files: files:
- path: env-sets/prod/services/*.yaml - path: env-sets/prod/services/*/service.yaml
template: template:
metadata: metadata:
name: prod-{{basenameNormalized}} name: '{{ path.basename }}-prod'
spec: spec:
project: default project: sandbox
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
destination: destination:
server: https://kubernetes.default.svc server: https://kubernetes.default.svc
namespace: prod 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: syncPolicy:
automated: automated:
selfHeal: true
prune: true prune: true
selfHeal: true