File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
9595type KVPair struct {
96- Key string `json:"key "`
96+ Name string `json:"name "`
9797 Value string `json:"value"`
9898}
9999
100100func (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.
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments