Skip to content

Commit

Permalink
Merge pull request hashicorp#464 from hashicorp/enable-mgw-healthchecks
Browse files Browse the repository at this point in the history
Remove meshGateway.enableHealthChecks
  • Loading branch information
lkysow authored May 28, 2020
2 parents fcdba57 + 6fe0c32 commit fcf39b2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 24 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## Unreleased

BREAKING CHANGES:

* Mesh Gateway: `meshGateway.enableHealthChecks` is no longer supported. This config
option was to work around an issue where mesh gateways would not listen on their
bind ports until a Connect service was registered. This issue was fixed in Consul 1.6.2. ([GH-464](https://github.com/hashicorp/consul-helm/pull/464))

## 0.21.0 (May 14, 2020)

FEATURES
Expand Down
2 changes: 0 additions & 2 deletions templates/mesh-gateway-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@ spec:
- connect
- envoy
- -mesh-gateway
{{- if .Values.meshGateway.enableHealthChecks }}
livenessProbe:
tcpSocket:
port: {{ .Values.meshGateway.containerPort }}
Expand All @@ -283,7 +282,6 @@ spec:
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
{{- end }}
ports:
- name: gateway
containerPort: {{ .Values.meshGateway.containerPort }}
Expand Down
17 changes: 0 additions & 17 deletions test/unit/mesh-gateway-deployment.bats
Original file line number Diff line number Diff line change
Expand Up @@ -402,23 +402,6 @@ key2: value2' \
[ "${readiness}" = "true" ]
}

@test "meshGateway/Deployment: can disable healthchecks" {
cd `chart_dir`
local actual=$(helm template \
-x templates/mesh-gateway-deployment.yaml \
--set 'meshGateway.enabled=true' \
--set 'connectInject.enabled=true' \
--set 'client.grpc=true' \
--set 'meshGateway.enableHealthChecks=false' \
. | tee /dev/stderr \
| yq '.spec.template.spec.containers[0]' | tee /dev/stderr )

local liveness=$(echo "${actual}" | yq -r '.livenessProbe | length > 0' | tee /dev/stderr)
[ "${liveness}" = "false" ]
local readiness=$(echo "${actual}" | yq -r '.readinessProbe | length > 0' | tee /dev/stderr)
[ "${readiness}" = "false" ]
}

#--------------------------------------------------------------------
# hostPort

Expand Down
5 changes: 0 additions & 5 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -963,11 +963,6 @@ meshGateway:
# agent.
hostPort: null

# If there are no connect-enabled services running, then the gateway
# will fail health checks. You may disable health checks as a temporary
# workaround.
enableHealthChecks: true

resources: |
requests:
memory: "128Mi"
Expand Down

0 comments on commit fcf39b2

Please sign in to comment.