forked from helm/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[stable/kong] add support for Kong 1.0 (helm#10511)
* [stable/kong] add support for Kong 1.0 Signed-off-by: Harry Bagdi <[email protected]> * fix --kong-url for HTTPS Signed-off-by: Harry Bagdi <[email protected]> * fix comment and add todo Signed-off-by: Harry Bagdi <[email protected]>
- Loading branch information
1 parent
d79d868
commit 432f65a
Showing
8 changed files
with
100 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,3 @@ | ||
# CI test for Ingress controller basic installation | ||
|
||
admin: | ||
useTLS: false | ||
|
||
readinessProbe: | ||
httpGet: | ||
scheme: HTTP | ||
livenessProbe: | ||
httpGet: | ||
scheme: HTTP | ||
|
||
ingressController: | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{{- if .Values.runMigrations }} | ||
# Why is this Job duplicated and not using only helm hooks? | ||
# See: https://github.com/helm/charts/pull/7362 | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: {{ template "kong.fullname" . }}-post-upgrade-migrations | ||
labels: | ||
app: {{ template "kong.name" . }} | ||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
release: "{{ .Release.Name }}" | ||
heritage: "{{ .Release.Service }}" | ||
component: post-upgrade-migrations | ||
annotations: | ||
helm.sh/hook: "post-upgrade" | ||
helm.sh/hook-delete-policy: "before-hook-creation" | ||
spec: | ||
template: | ||
metadata: | ||
name: {{ template "kong.name" . }}-post-upgrade-migrations | ||
labels: | ||
app: {{ template "kong.name" . }} | ||
release: "{{ .Release.Name }}" | ||
component: post-upgrade-migrations | ||
spec: | ||
{{- if .Values.image.pullSecrets }} | ||
imagePullSecrets: | ||
{{- range .Values.image.pullSecrets }} | ||
- name: {{ . }} | ||
{{- end }} | ||
{{- end }} | ||
{{- if .Values.postgresql.enabled }} | ||
initContainers: | ||
- name: wait-for-postgres | ||
image: busybox | ||
env: | ||
- name: KONG_PG_HOST | ||
value: {{ template "kong.postgresql.fullname" . }} | ||
- name: KONG_PG_PORT | ||
value: "{{ .Values.postgresql.service.port }}" | ||
- name: KONG_PG_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ template "kong.postgresql.fullname" . }} | ||
key: postgres-password | ||
command: [ "/bin/sh", "-c", "until nc -zv $KONG_PG_HOST $KONG_PG_PORT -w1; do echo 'waiting for db'; sleep 1; done" ] | ||
{{- end }} | ||
containers: | ||
- name: {{ template "kong.name" . }}-post-upgrade-migrations | ||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" | ||
imagePullPolicy: {{ .Values.image.pullPolicy }} | ||
env: | ||
- name: KONG_NGINX_DAEMON | ||
value: "off" | ||
{{- range $key, $val := .Values.env }} | ||
- name: KONG_{{ $key | upper}} | ||
value: {{ $val | quote }} | ||
{{- end}} | ||
{{- if .Values.postgresql.enabled }} | ||
- name: KONG_PG_HOST | ||
value: {{ template "kong.postgresql.fullname" . }} | ||
- name: KONG_PG_PORT | ||
value: "{{ .Values.postgresql.service.port }}" | ||
- name: KONG_PG_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ template "kong.postgresql.fullname" . }} | ||
key: postgres-password | ||
{{- end }} | ||
{{- if .Values.cassandra.enabled }} | ||
- name: KONG_CASSANDRA_CONTACT_POINTS | ||
value: {{ template "kong.cassandra.fullname" . }} | ||
{{- end }} | ||
command: [ "/bin/sh", "-c", "kong migrations finish" ] | ||
restartPolicy: OnFailure | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters