Skip to content

Commit

Permalink
feat: add certbot chart dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieu-foucault committed May 11, 2022
1 parent facc868 commit c6c5073
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ install:
helm dep up $(CHART_DIR); \
if ! helm status --namespace $(NAMESPACE) $(CHART_INSTANCE); then \
echo 'Installing the application and issuing SSL certificate'; \
helm install $(HELM_OPTS) $(CHART_INSTANCE) $(CHART_DIR); \
fi; \
helm upgrade $(HELM_OPTS) $(CHART_INSTANCE) $(CHART_DIR);
helm install --set certbot.manualRun=true $(HELM_OPTS) $(CHART_INSTANCE) $(CHART_DIR); \
else; \
helm upgrade $(HELM_OPTS) $(CHART_INSTANCE) $(CHART_DIR); \
fi;
3 changes: 3 additions & 0 deletions chart/cas-cif/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ dependencies:
version: 1.0.7
repository: https://bcgov.github.io/cas-airflow
alias: deploy-db
- name: certbot
version: 0.1.0
repository: https://bcdevops.github.io/certbot
8 changes: 5 additions & 3 deletions chart/cas-cif/values-prod.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
hostName: cif.gov.bc.ca

caServerSecret: cas-acme-url
caServerKey: url
renewalDays: 305
certbot:
certbot:
server:
secretName: cas-acme-url
secretKey: url

deploy-db:
airflowEndpoint: https://cas-airflow-prod.apps.silver.devops.gov.bc.ca
Expand Down
15 changes: 5 additions & 10 deletions chart/cas-cif/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,12 @@ db:
preUpgradeCommand: ~

hostName: ~
# set to false to deploy the application with an insecure route,
# and issue an SSL certificate using acme.sh
sslTermination: true
objectNamePrefix: cas-cif

port: 3001
internalPort: 3000
caServerSecret: ~ # pragma: allowlist secret
caServerKey: ~
caAccountEmail: [email protected]
storageClassName: netapp-file-standard
renewalDays: 60

certbot:
certbot:
email: [email protected]

resources:
limits:
Expand Down

0 comments on commit c6c5073

Please sign in to comment.