Skip to content

Commit f57b5f3

Browse files
mjuragaGopher Bot
authored andcommitted
BUG/MEDIUM: healtcheck: fix naming to be standard
1 parent 47ab823 commit f57b5f3

6 files changed

Lines changed: 21 additions & 21 deletions

File tree

configuration/structured_healthcheck.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func (c *client) GetStructuredHealthcheck(name string, transactionID string) (in
6060
if err != nil {
6161
return v, nil, err
6262
}
63-
healthCheck.HTTPCheckRuleList = hchecks
63+
healthCheck.HTTPCheckList = hchecks
6464

6565
// parse the TCP check rules for this health check
6666
tchecks, err := ParseTCPChecks(HealthcheckParentName, name, p)
@@ -97,7 +97,7 @@ func (c *client) GetStructuredHealthchecks(transactionID string) (int64, models.
9797
if err != nil {
9898
return v, nil, err
9999
}
100-
healthCheck.HTTPCheckRuleList = hchecks
100+
healthCheck.HTTPCheckList = hchecks
101101

102102
// parse the TCP check rules for this health check
103103
tchecks, err := ParseTCPChecks(HealthcheckParentName, name, p)
@@ -190,7 +190,7 @@ func serializeHealthcheckSection(a StructuredToParserArgs, h *models.HealthCheck
190190
return err
191191
}
192192

193-
for i, httpCheck := range h.HTTPCheckRuleList {
193+
for i, httpCheck := range h.HTTPCheckList {
194194
var s types.Action
195195
s, err = SerializeHTTPCheck(*httpCheck)
196196
if err != nil {

models/health_check.go

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

models/healthcheck_diff_generated.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

models/healthcheck_equal_generated.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/build/haproxy_spec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4387,7 +4387,7 @@ definitions:
43874387
- properties:
43884388
http_check_list:
43894389
$ref: '#/definitions/http_checks'
4390-
x-go-name: HTTPCheckRuleList
4390+
x-go-name: HTTPCheckList
43914391
tcp_check_list:
43924392
$ref: '#/definitions/tcp_checks'
43934393
x-go-name: TCPCheckRuleList

specification/models/configuration/healthcheck.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ healthcheck:
1212
x-go-name: TCPCheckRuleList
1313
http_check_list:
1414
$ref: "#/definitions/http_checks"
15-
x-go-name: HTTPCheckRuleList
15+
x-go-name: HTTPCheckList
1616
healthcheck_base:
1717
type: object
1818
description: HealthCheck with all it's children resources

0 commit comments

Comments
 (0)