Skip to content

Commit

Permalink
Ensure static agents are listening on accessible ports when health ch…
Browse files Browse the repository at this point in the history
…eck enabled
  • Loading branch information
chadlwilson committed Oct 29, 2024
1 parent 3c82296 commit 0b64339
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions gocd/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
### 2.9.3
* Ensure agent is listening on correct interface when health check enabled (thanks to @chadlwilson and @12345ieee)
### 2.9.2
* Bump pre-installed plugins to latest patched versions (thanks to @chadlwilson)
### 2.9.1
Expand Down
2 changes: 1 addition & 1 deletion gocd/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: gocd
home: https://www.gocd.org/
version: 2.9.2
version: 2.9.3
appVersion: 24.3.0
description: GoCD is an open-source continuous delivery server to model and visualize complex workflows with ease.
icon: https://gocd.github.io/assets/images/go-icon-black-192x192.png
Expand Down
4 changes: 2 additions & 2 deletions gocd/templates/gocd-agent-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ spec:
- name: AGENT_AUTO_REGISTER_HOSTNAME
value: {{ .Values.agent.env.agentAutoRegisterHostname }}
{{- end }}
{{- if .Values.agent.env.goAgentJvmOpts }}
{{- if or .Values.agent.healthCheck.enabled .Values.agent.env.goAgentJvmOpts }}
- name: GOCD_AGENT_JVM_OPTS
value: {{ .Values.agent.env.goAgentJvmOpts }}
value: {{ if .Values.agent.healthCheck.enabled }}-Dgo.agent.status.api.bind.host=0.0.0.0{{ end }} {{ .Values.agent.env.goAgentJvmOpts }}
{{- end }}
{{- if .Values.agent.env.goAgentBootstrapperJvmArgs }}
- name: AGENT_BOOTSTRAPPER_JVM_ARGS
Expand Down

0 comments on commit 0b64339

Please sign in to comment.