Skip to content

Commit

Permalink
adding env vars to preview chart
Browse files Browse the repository at this point in the history
  • Loading branch information
sharepointoscar committed Jan 16, 2020
1 parent 9345ac7 commit 10f522b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion charts/cars-rest-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ image:
env:
MONGDB_USERNAME: vault:mongodb:mongodb-username
MONGDB_PASSWORD: vault:mongodb:mongodb-password
MONGODB_DATABASE: cars-rest-api
MONGDB_ROOT_PASSWORD: vault:mongodb:mongodb-root-password

# enable this flag to use knative serve to deploy the app
Expand All @@ -23,7 +24,7 @@ service:
annotations:
fabric8.io/expose: "true"
fabric8.io/ingress.annotations: "kubernetes.io/ingress.class: nginx"

resources:
limits:
cpu: 400m
Expand Down
10 changes: 5 additions & 5 deletions charts/preview/values..yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ preview-db:
## MongoDB custom user and database
## ref: https://github.com/bitnami/bitnami-docker-mongodb/blob/master/README.md#creating-a-user-and-database-on-first-run
##
mongodbUsername: mongoadmin
mongodbDatabase: cars_rest_api
# mongodbPassword: Password1
mongodbUsername: "vault:mongodb:mongodb-username"
mongodbDatabase: "cars_rest_api"
mongodbPassword: "vault:mongodb:mongodb-password"

## MongoDB admin password
## MongoDB admin password
## ref: https://github.com/bitnami/bitnami-docker-mongodb/blob/master/README.md#setting-the-root-password-on-first-run
##
# mongodbRootPassword: Password1
mongodbRootPassword: "vault:mongodb:mongodb-root-password"

## Provision an external database (Only if mongodb.enabled is false)
## You can:
Expand Down

0 comments on commit 10f522b

Please sign in to comment.