Skip to content

Commit

Permalink
Merge pull request #63 from Badmuts/fix/wrong-address-for-netcat
Browse files Browse the repository at this point in the history
fix(helm): Remove hardcoded hostname from nc command and use env variable instead
  • Loading branch information
ToshKoevoets authored Mar 16, 2022
2 parents deacc89 + 33b2862 commit 90329b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion k8s/openstad/templates/api/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ spec:
initContainers:
- command: ["/bin/sh", "-c"]
args:
- nc {{.Release.Name}}-mysql 3306 -z -w1 && node migrate.js;
- nc $API_DATABASE_HOST 3306 -z -w1 && node migrate.js;
env:
- name: DB_TYPE
value: mysql
Expand Down

0 comments on commit 90329b0

Please sign in to comment.