Skip to content

Commit

Permalink
helm chart updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jcollins-axway committed Dec 14, 2023
1 parent a5ca182 commit 7cfa24d
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 4 deletions.
18 changes: 16 additions & 2 deletions helm/kong-agents/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,22 @@ Create the name of the service account to use
{{- end }}

{{/*
Create the name of the service account to use
Create the env var value for spec download paths
*/}}
{{- define "kong-agents.specDownloadPathsString" -}}
{{- define "kong-agents.spec.urlPaths.string" -}}
{{- join "," .Values.kong.spec.urlPaths }}
{{- end -}}

{{/*
Create the env var value for ssl next protos
*/}}
{{- define "kong-agents.admin.ssl.nextProtos.string" -}}
{{- join "," .Values.kong.admin.ssl.nextProtos }}
{{- end -}}

{{/*
Create the env var value for ssl cipher suites
*/}}
{{- define "kong-agents.admin.ssl.cipherSuites.string" -}}
{{- join "," .Values.kong.admin.ssl.cipherSuites }}
{{- end -}}
19 changes: 17 additions & 2 deletions helm/kong-agents/templates/discovery-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,19 @@ spec:
value: "{{ .Values.kong.proxy.ports.https.disable }}"
- name: KONG_ADMIN_URL
value: "{{ .Values.kong.admin.url }}"
{{- if (include "kong-agents.specDownloadPathsString" .) }}
- name: KONG_ADMIN_SSL_NEXTPROTOS
value: {{ include "kong-agents.admin.ssl.nextProtos.string" . }}
- name: KONG_ADMIN_SSL_CIPHERSUITES
value: {{ include "kong-agents.admin.ssl.cipherSuites.string" . }}
- name: KONG_ADMIN_SSL_INSECURESKIPVERIFY
value: "{{ .Values.kong.admin.ssl.insecureSkipVerify }}"
- name: KONG_ADMIN_SSL_MAXVERSION
value: "{{ .Values.kong.admin.ssl.maxVersion }}"
- name: KONG_ADMIN_SSL_MINVERSION
value: "{{ .Values.kong.admin.ssl.minVersion }}"
{{- if (include "kong-agents.spec.urlPaths.string" .) }}
- name: KONG_SPEC_URLPATHS
value: {{ include "kong-agents.specDownloadPathsString" . }}
value: {{ include "kong-agents.spec.urlPaths.string" . }}
{{- end }}
{{- if .Values.kong.spec.localPath }}
- name: KONG_SPEC_LOCALPATH
Expand Down Expand Up @@ -128,6 +138,11 @@ spec:
"KONG_ADMIN_AUTH_APIKEY_VALUE"
"KONG_ADMIN_AUTH_BASICAUTH_USERNAME"
"KONG_ADMIN_AUTH_BASICAUTH_PASSWORD"
"KONG_ADMIN_SSL_NEXTPROTOS"
"KONG_ADMIN_SSL_CIPHERSUITES"
"KONG_ADMIN_SSL_INSECURESKIPVERIFY"
"KONG_ADMIN_SSL_MAXVERSION"
"KONG_ADMIN_SSL_MINVERSION"
"KONG_PROXY_HOST"
"KONG_PROXY_BASEPATH"
"KONG_PROXY_PORTS_HTTP_VALUE"
Expand Down
5 changes: 5 additions & 0 deletions helm/kong-agents/templates/traceability-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ spec:
"KONG_ADMIN_AUTH_APIKEY_VALUE"
"KONG_ADMIN_AUTH_BASICAUTH_USERNAME"
"KONG_ADMIN_AUTH_BASICAUTH_PASSWORD"
"KONG_ADMIN_SSL_NEXTPROTOS"
"KONG_ADMIN_SSL_CIPHERSUITES"
"KONG_ADMIN_SSL_INSECURESKIPVERIFY"
"KONG_ADMIN_SSL_MAXVERSION"
"KONG_ADMIN_SSL_MINVERSION"
"KONG_PROXY_HOST"
"KONG_PROXY_BASEPATH"
"KONG_PROXY_PORTS_HTTP_VALUE"
Expand Down
6 changes: 6 additions & 0 deletions helm/kong-agents/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ kong:
basicAuth:
username:
password:
ssl:
nextProtos: []
insecureSkipVerify:
cipherSuites: []
minVersion:
maxVersion:
proxy:
host:
basePath:
Expand Down

0 comments on commit 7cfa24d

Please sign in to comment.