stand: слой 50-apps с bim; оверлей меняет только нужные env через replacements по имени

This commit is contained in:
ivan 2026-11-09 14:06:34 +05:00
parent 8c58d5b55e
commit 14a2ce2956
3 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,23 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../base
configMapGenerator:
- name: contour-env
literals:
- POSTGRES_POOL_SIZE=5
options:
disableNameSuffixHash: true
annotations:
config.kubernetes.io/local-config: "true"
replacements:
- source:
kind: ConfigMap
name: contour-env
fieldPath: data.POSTGRES_POOL_SIZE
targets:
- select:
kind: HelmRelease
name: backend
fieldPaths:
- spec.values.services.backend.envs.[name=POSTGRES_POOL_SIZE].value._default

View File

@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../apps/bim/stand

View File

@ -91,3 +91,24 @@ spec:
substituteFrom:
- kind: ConfigMap
name: contour-vars
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: 50-apps
namespace: flux-system
spec:
interval: 10m0s
timeout: 10m0s
dependsOn:
- name: 20-data
path: ./clusters/stand/50-apps
prune: true
wait: true
sourceRef:
kind: GitRepository
name: flux-system
postBuild:
substituteFrom:
- kind: ConfigMap
name: contour-vars