Skip to content

Commit

Permalink
helm updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jcollins-axway committed Nov 9, 2023
1 parent 996a557 commit 035487b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 21 deletions.
16 changes: 9 additions & 7 deletions helm/kong-agents/templates/discovery-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "kong-agents.fullname" . }}
name: {{ include "kong-agents.fullname" . }}-discovery
labels:
{{- include "kong-agents.labels" . | nindent 4 }}
spec:
Expand Down Expand Up @@ -42,7 +42,7 @@ spec:
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.discovery.image.repository }}:{{ .Values.discovery.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
imagePullPolicy: {{ .Values.discovery.image.pullPolicy }}
ports:
- name: probe-port
containerPort: {{ .Values.statusPort }}
Expand Down Expand Up @@ -82,15 +82,17 @@ spec:
{{- end }}
{{- end }}
- name: KONG_ADMINENDPOINT
value: {{ .Values.kong.adminEndpoint }}
value: "{{ .Values.kong.adminEndpoint }}"
{{- if eq .Values.kong.token "" }}
- name: KONG_TOKEN
value: {{ .Values.kong.token }}
value: "{{ .Values.kong.token }}"
{{- end }}
- name: KONG_PROXYENDPOINT
value: {{ .Values.kong.proxyEndpoint }}
value: "{{ .Values.kong.proxyEndpoint }}"
- name: KONG_PROXYENDPOINTPROTOCOLS_HTTP
value: {{ .Values.kong.proxyEndpointProtocols.http }}
value: "{{ .Values.kong.proxyEndpointProtocols.http }}"
- name: KONG_PROXYENDPOINTPROTOCOLS_HTTPS
value: {{ .Values.kong.proxyEndpointProtocols.https }}
value: "{{ .Values.kong.proxyEndpointProtocols.https }}"
- name: KONG_SPECDOWNLOADPATHS
value: {{ include "kong-agents.specDownloadPathsString" . }}
volumeMounts:
Expand Down
20 changes: 7 additions & 13 deletions helm/kong-agents/templates/traceability-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "kong-agents.fullname" . }}
name: {{ include "kong-agents.fullname" . }}-traceability
labels:
{{- include "kong-agents.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
replicas: {{ .Values.traceability.replicaCount }}
selector:
matchLabels:
{{- include "kong-agents.selectorLabels" . | nindent 6 }}
Expand Down Expand Up @@ -42,7 +42,7 @@ spec:
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.traceability.image.repository }}:{{ .Values.traceability.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
imagePullPolicy: {{ .Values.traceability.image.pullPolicy }}
ports:
- name: probe-port
containerPort: {{ .Values.statusPort }}
Expand Down Expand Up @@ -82,17 +82,11 @@ spec:
{{- end }}
{{- end }}
- name: KONG_ADMINENDPOINT
value: {{ .Values.kong.adminEndpoint }}
value: "{{ .Values.kong.adminEndpoint }}"
{{- if eq .Values.kong.token "" }}
- name: KONG_TOKEN
value: {{ .Values.kong.token }}
- name: KONG_PROXYENDPOINT
value: {{ .Values.kong.proxyEndpoint }}
- name: KONG_PROXYENDPOINTPROTOCOLS_HTTP
value: {{ .Values.kong.proxyEndpointProtocols.http }}
- name: KONG_PROXYENDPOINTPROTOCOLS_HTTPS
value: {{ .Values.kong.proxyEndpointProtocols.https }}
- name: KONG_SPECDOWNLOADPATHS
value: {{ include "kong-agents.specDownloadPathsString" . }}
value: "{{ .Values.kong.token }}"
{{- end }}
volumeMounts:
- name: "kong-agent-keys"
mountPath: "/keys"
Expand Down
2 changes: 1 addition & 1 deletion helm/kong-agents/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ kong:
specDownloadPaths: []

# Add any environment variable overrides here
env:
env: {}

secrets:
credentials: "kong-agent-creds"
Expand Down

0 comments on commit 035487b

Please sign in to comment.