Skip to content

Commit 8acf7c9

Browse files
Shared env variables
1 parent 5786ce9 commit 8acf7c9

File tree

11 files changed

+29
-27
lines changed

11 files changed

+29
-27
lines changed

environment-promotion/base/kustomization.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ kind: Kustomization
44
resources:
55
- deployment.yml
66
- service.yml
7-
- properties.yml

environment-promotion/base/properties.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
SHARED=QA
2+
EXTRA=QA

environment-promotion/envs/qa/kustomization.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,10 @@ patchesStrategicMerge:
1515
- version.yml
1616
- settings.yml
1717
- service.yml
18-
- properties.yml
18+
19+
configMapGenerator:
20+
- name: example-configmap
21+
behavior: merge
22+
envs:
23+
- application.properties
1924

environment-promotion/envs/qa/properties.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
SHARED=STAGING
2+
EXTRA=STAGING

environment-promotion/envs/staging/kustomization.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,9 @@ patchesStrategicMerge:
1616
- replicas.yml
1717
- settings.yml
1818
- service.yml
19-
- properties.yml
19+
20+
configMapGenerator:
21+
- name: example-configmap
22+
behavior: merge
23+
envs:
24+
- application.properties

environment-promotion/envs/staging/properties.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

environment-promotion/qa.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
apiVersion: v1
22
data:
3-
application.properties: |
4-
QA=TRUE
3+
EXTRA: QA
4+
LAST: NO_PROD
5+
SHARED: QA
56
kind: ConfigMap
67
metadata:
7-
name: qa-example-configmap
8+
name: qa-example-configmap-hhg557gbcf
89
namespace: qa
910
---
1011
apiVersion: v1
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
SHARED=NO_PROD
2+
LAST=NO_PROD

0 commit comments

Comments
 (0)