Closed phumpal closed 4 years ago
@majormoses should I move this to sensu-go or am I missing something obvious?
I solve this by "fixing" my yaml
type: CheckConfig
api_version: core/v2
metadata:
name: check_http_unicorn
namespace: default
spec:
command: |
check-http.rb --hostname 10.2.12.116 --port 8080 --header 'Host: mydomain.dev' --request-uri / -r true
Perhaps a sensu-go bug but passing a Host header in v5.19.1
results in
Removing
--header 'Host: mydomain.dev
allows the check config to upload but without the header the check will fail.Removing the assignment
:
prevents key value mapping of custom headers.