Skip to content

Commit

Permalink
Add allow override options to the base config file
Browse files Browse the repository at this point in the history
  • Loading branch information
ahangarha committed Dec 26, 2023
1 parent 2c49d9d commit 0170241
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/generator_templates/controlplane.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Keys beginning with "cpln_" correspond to your settings in Control Plane.

# You can opt out of allowing the use of CPLN_ORG and CPLN_APP env vars
# to avoid any accidents with the wrong org / app.
allow_org_override_by_env: true
allow_app_override_by_env: true

aliases:
common: &common
# Organization name for staging (customize to your needs).
Expand Down Expand Up @@ -35,6 +40,12 @@ apps:
match_if_app_name_starts_with: true
my-app-production:
<<: *common

# You can also opt out of allowing the use of CPLN_ORG and CPLN_APP env vars per app.
# It's recommended to leave this off for production, to avoid any accidents.
allow_org_override_by_env: false
allow_app_override_by_env: false

# Use a different organization for production.
cpln_org: my-org-production
# Allows running the command `cpl promote-app-from-upstream -a my-app-production`
Expand Down

0 comments on commit 0170241

Please sign in to comment.