Skip to content

Commit

Permalink
chore: omit clear-stale-pid initContainer if no Kong container (Kong#749
Browse files Browse the repository at this point in the history
)
  • Loading branch information
pmalek authored Feb 15, 2023
1 parent 440fd2d commit d531d8f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/kong/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

* Don't include a clear-stale-pid initContainer when kong gateway is not
enabled in the deployment.
[#744](https://github.com/Kong/charts/pull/744)

## 2.16.4

### Fixed
Expand Down
2 changes: 2 additions & 0 deletions charts/kong/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ spec:
- name: {{ . }}
{{- end }}
{{- end }}
{{- if .Values.deployment.kong.enabled }}
initContainers:
- name: clear-stale-pid
image: {{ include "kong.getRepoTag" .Values.image }}
Expand All @@ -105,6 +106,7 @@ spec:
{{- if (and (not (eq .Values.env.database "off")) .Values.waitImage.enabled) }}
{{- include "kong.wait-for-db" . | nindent 6 }}
{{- end }}
{{- end }}
{{- if .Values.deployment.hostAliases }}
hostAliases:
{{- toYaml .Values.deployment.hostAliases | nindent 6 }}
Expand Down

0 comments on commit d531d8f

Please sign in to comment.