Skip to content

Commit

Permalink
Merge pull request #107 from gocd/listen-for-healthcheck-correctly
Browse files Browse the repository at this point in the history
Ensure static agents are listening on accessible ports when health checks enabled
  • Loading branch information
chadlwilson authored Oct 29, 2024
2 parents 3c82296 + 0b64339 commit 84c982e
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 84c982e

Please sign in to comment.