Skip to content

Commit

Permalink
added .env file (#2732)
Browse files Browse the repository at this point in the history
  • Loading branch information
leotsarev authored Aug 11, 2024
1 parent ad9aabe commit 14b2d1a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions manifests/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ spec:
- secretRef:
name: joinrpg-main
optional: false
- configMapRef:
name: joinrpg-configmap
optiona: false
image: joinrpg-portal
livenessProbe:
failureThreshold: 5
Expand Down
1 change: 1 addition & 0 deletions manifests/dev/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TEST_SPEC_ENVIRONMENT=DEV
5 changes: 5 additions & 0 deletions manifests/dev/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ namespace: dev
commonLabels:
managed-by-kustomize-dev: "true" #Careful. Contains name of the environment, used for kubectl apply --prune

configMapGenerator:
- name: joinrpg-configmap
envs: # now using envs to create a configmap with envvars as keys inside
- .env

patchesJson6902:
- target:
kind: Ingress
Expand Down
1 change: 1 addition & 0 deletions manifests/prod/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TEST_SPEC_ENVIRONMENT=PROD
5 changes: 5 additions & 0 deletions manifests/prod/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ namespace: prod
commonLabels:
managed-by-kustomize-prod: "true" #Careful. Contains name of the environment, used for kubectl apply --prune

configMapGenerator:
- name: joinrpg-configmap
envs: # now using envs to create a configmap with envvars as keys inside
- .env

patchesJson6902:
- target:
kind: Ingress
Expand Down

0 comments on commit 14b2d1a

Please sign in to comment.