Skip to content

Commit

Permalink
[nethgate] fix chart issues related to nethgate migration (#120)
Browse files Browse the repository at this point in the history
* fix chart issues related to nethgate migration

* fix chart version
  • Loading branch information
gehlotanish authored May 1, 2024
1 parent a4f3588 commit a46a980
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion charts/nethgate/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ maintainers:
name: kong
sources:
- https://github.com/Kong/charts/tree/main/charts/kong
version: 2.33.2
version: 2.33.3
appVersion: "3.5"
dependencies:
- name: postgresql
Expand Down
9 changes: 1 addition & 8 deletions charts/nethgate/templates/migrations-post-upgrade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,7 @@ spec:
{{ toYaml .Values.containerSecurityContext | nindent 10 }}
env:
{{- include "kong.no_daemon_env" . | nindent 8 }}
command:
- bash
- "-c"
- |
set -ex
kong migrations finish
/run-nethgate-migrate.sh
args: [ "kong", "migrations", "finish" ]
volumeMounts:
{{- include "kong.volumeMounts" . | nindent 8 }}
{{- include "kong.userDefinedVolumeMounts" .Values.deployment | nindent 8 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/nethgate/templates/nethgate_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ spec:
{{ toYaml .Values.containerSecurityContext | nindent 10 }}
env:
{{- include "kong.no_daemon_env" . | nindent 8 }}
command: ["/bin/bash", "/usr/local/bin/nethgateAPI.sh"]
command: ["nethgate", "server"]
ports:
- name: nethgate
containerPort: {{ .Values.deployment.nethgate.port }}
Expand Down

0 comments on commit a46a980

Please sign in to comment.