Skip to content

Commit e997d7f

Browse files
committed
fix(healthcheck): Use correct keys for the http header of healthchecks[requires workflow-cli#280]
1 parent e4abe62 commit e997d7f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

api/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ TCP Socket Probe: {{or .TCPSocket "N/A"}}`)
9393
// KVPair is a key/value pair used to parse values from
9494
// strings into a formal structure.
9595
type KVPair struct {
96-
Key string `json:"key"`
96+
Name string `json:"name"`
9797
Value string `json:"value"`
9898
}
9999

100100
func (k KVPair) String() string {
101-
return k.Key + "=" + k.Value
101+
return k.Name + "=" + k.Value
102102
}
103103

104104
// ExecProbe executes a command within a Pod.

api/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ TCP Socket Probe: N/A`)
2424
h.HTTPGet = &HTTPGetProbe{
2525
Path: "/",
2626
Port: 80,
27-
HTTPHeaders: []*KVPair{{Key: "X-DEIS-IS", Value: "AWESOME"}},
27+
HTTPHeaders: []*KVPair{{Name: "X-DEIS-IS", Value: "AWESOME"}},
2828
}
2929

3030
expected = strings.TrimSpace(`Initial Delay (seconds): 0

0 commit comments

Comments
 (0)