properly reflect the changes required by the argo applicationSet

This commit is contained in:
2025-10-14 12:27:03 +02:00
parent 6a5c203f76
commit 751caf4233
11 changed files with 44 additions and 130 deletions

View File

@@ -5,7 +5,6 @@ resources:
- ../../base
namespace: anydev-anyway-backend-prod
# nameSuffix: -prod
labels:
- includeSelectors: true
pairs:
@@ -21,7 +20,3 @@ patches:
target:
kind: IngressRoute
name: anyway-ingress
- path: patch-deployment-memcached-address.yaml
target:
kind: Deployment
name: anyway-backend

View File

@@ -1,3 +0,0 @@
- op: replace
path: /spec/template/spec/containers/0/env/0/value
value: "memcached-prod:11211"

View File

@@ -1,6 +1,3 @@
- op: replace
path: /spec/routes/0/match
value: Host(`anyway.anydev.info`) || Host(`anyway.kluster.moll.re`)
- op: replace
path: /spec/routes/0/services/0/name
value: anyway-backend-prod
value: Host(`anyway.anydev.info`) || Host(`anyway.kluster.moll.re`)

View File

@@ -4,8 +4,9 @@ kind: Kustomization
resources:
- ../../base
namespace: anyway-backend
nameSuffix: -stg
namespace: anydev-anyway-backend-stg
# nameSuffix: "" the suffix is added by argocd when deploying multiple instances through an applicationSet
labels:
- includeSelectors: true
pairs:
@@ -22,12 +23,7 @@ patches:
target:
kind: IngressRoute
name: anyway-ingress
- path: patch-deployment-memcached-address.yaml
target:
kind: Deployment
name: anyway-backend
- path: patch-deployment.yaml
target:
kind: Deployment
name: anyway-backend

View File

@@ -1,3 +0,0 @@
- op: replace
path: /spec/template/spec/containers/0/env/0/value
value: "memcached-stg:11211"

View File

@@ -1,6 +1,3 @@
- op: replace #action
- op: replace #action
path: /spec/routes/0/match
value: Host(`anyway-stg.anydev.info`) || Host(`anyway-stg.kluster.moll.re`)
- op: replace
path: /spec/routes/0/services/0/name
value: anyway-backend-stg
value: Host(`anyway-stg.anydev.info`) || Host(`anyway-stg.kluster.moll.re`)