Compare commits

...

10 Commits

Author SHA1 Message Date
259639c0dc Fix svc for prod 2025-10-08 03:35:16 +03:00
dvirlabs
78dc0231e8 test 2025-08-11 11:47:46 +03:00
dvirlabs
04faaf7698 Fix outofsync 2025-08-06 13:50:23 +03:00
dvirlabs
44d604b174 Fix int 2025-07-29 12:04:11 +03:00
dvirlabs
69a0767c07 Fix int and prod 2025-07-29 12:02:29 +03:00
dvirlabs
ce8440cf08 Set service name 2025-07-29 11:47:26 +03:00
dvirlabs
d18ff8bc79 Add svc 2025-07-29 11:40:44 +03:00
dvirlabs
259baf5056 Add svc 2025-07-29 11:37:08 +03:00
dvirlabs
245d5b151c Update syncOption 2025-07-29 11:31:43 +03:00
dvirlabs
78a0496fd3 Change path 2025-07-29 11:28:15 +03:00
10 changed files with 64 additions and 43 deletions

View File

@ -10,10 +10,6 @@ spec:
revision: HEAD
files:
- path: env-sets/*/metadata.yaml
extract:
env: '{{.env}}'
namespace: '{{.namespace}}'
project: '{{.project}}'
template:
metadata:
name: env-{{env}}
@ -28,8 +24,8 @@ spec:
destination:
server: https://kubernetes.default.svc
namespace: '{{namespace}}'
syncPolicy: {}
# automated:
# selfHeal: true
# syncOption:
# - Prune=false
syncPolicy:
automated:
prune: true
selfHeal: true

View File

@ -9,10 +9,10 @@ spec:
repoURL: https://git.dvirlabs.com/dvirlabs/app-definition.git
revision: HEAD
files:
- path: env-sets/dev/services/*/svc-*.yaml
- path: env-sets/dev/services/*.yaml
template:
metadata:
name: '{{ path.basename }}-dev'
name: '{{service.name}}-dev'
spec:
project: sandbox
destination:
@ -24,7 +24,7 @@ spec:
path: nginx-message
helm:
valueFiles:
- $values/env-sets/dev/services/{{ path.basename }}.yaml
- $values/env-sets/dev/services/{{service.name}}.yaml
- repoURL: https://git.dvirlabs.com/dvirlabs/app-definition.git
targetRevision: HEAD
ref: values

View File

@ -1,4 +1,4 @@
message: "Welcome to svc-1 in dev"
message: "Welcome to svc-1 in dev hi this is a test"
image:
repository: nginx
tag: stable

View File

@ -0,0 +1,9 @@
message: "Welcome to svc-3 in dev"
image:
repository: nginx
tag: stable
pullPolicy: IfNotPresent
service:
name: svc-3 # 🟡 OPTIONAL: if your chart supports it
type: ClusterIP
port: 80

View File

@ -9,10 +9,10 @@ spec:
repoURL: https://git.dvirlabs.com/dvirlabs/app-definition.git
revision: HEAD
files:
- path: env-sets/int/services/*/check.yaml
- path: env-sets/int/services/*.yaml
template:
metadata:
name: '{{ path.basename }}-int'
name: '{{service.name}}-int'
spec:
project: sandbox
destination:
@ -21,14 +21,13 @@ spec:
sources:
- repoURL: https://git.dvirlabs.com/dvirlabs/app-provision.git
targetRevision: HEAD
path: ngnix-message
path: nginx-message
helm:
valueFiles:
- '$values/{{ .path.path }}/service.yaml'
- $values/env-sets/int/services/{{service.name}}.yaml
- repoURL: https://git.dvirlabs.com/dvirlabs/app-definition.git
targetRevision: HEAD
ref: values
syncPolicy:
automated:
prune: true
selfHeal: true
syncPolicy: {}
# automated:
# selfHeal: true

View File

@ -9,10 +9,10 @@ spec:
repoURL: https://git.dvirlabs.com/dvirlabs/app-definition.git
revision: HEAD
files:
- path: env-sets/prod/services/*/service.yaml
- path: env-sets/prod/services/*.yaml
template:
metadata:
name: '{{ path.basename }}-prod'
name: '{{service.name}}-prod'
spec:
project: sandbox
destination:
@ -21,14 +21,13 @@ spec:
sources:
- repoURL: https://git.dvirlabs.com/dvirlabs/app-provision.git
targetRevision: HEAD
path: ngnix-message
path: nginx-message
helm:
valueFiles:
- '$values/{{ .path.path }}/service.yaml'
- $values/env-sets/prod/services/{{service.name}}.yaml
- repoURL: https://git.dvirlabs.com/dvirlabs/app-definition.git
targetRevision: HEAD
ref: values
syncPolicy:
automated:
prune: true
selfHeal: true
syncPolicy: {}
# automated:
# selfHeal: true

View File

@ -0,0 +1,9 @@
message: "Welcome to svc-1 in prod"
image:
repository: nginx
tag: stable
pullPolicy: IfNotPresent
service:
name: svc-1 # 🟡 OPTIONAL: if your chart supports it
type: ClusterIP
port: 80

View File

@ -0,0 +1,9 @@
message: "Welcome to svc-2 in prod"
image:
repository: nginx
tag: stable
pullPolicy: IfNotPresent
service:
name: svc-2 # 🟡 OPTIONAL: if your chart supports it
type: ClusterIP
port: 80