diff --git a/internal/structset/structset_test.go b/internal/structset/structset_test.go index 1d1658c6..17fc2c49 100644 --- a/internal/structset/structset_test.go +++ b/internal/structset/structset_test.go @@ -11,7 +11,7 @@ type testStruct struct { ID int `json:"-" sql:"id"` Field1 string `json:"field1,omitempty" sql:"f1"` Field2 bool `json:"field2" sql:"f2"` - Field3 interface{} ` sql:"f3"` + Field3 interface{} `sql:"f3"` Field4 []string `json:"field4" sql:"f4"` } diff --git a/pkg/api/models/types.go b/pkg/api/models/types.go index 4336f50e..8e78956d 100644 --- a/pkg/api/models/types.go +++ b/pkg/api/models/types.go @@ -327,10 +327,10 @@ type CLIConfig struct { type Cluster struct { ID string `json:"id" sql:"cluster_id" yaml:"id"` Manager string `json:"manager" sql:"resource_manager" yaml:"manager"` - Web WebConfig `json:"-" yaml:"web"` - CLI CLIConfig `json:"-" yaml:"cli"` - Updaters []string `json:"-" yaml:"updaters"` - Extra yaml.Node `json:"-" yaml:"extra_config"` + Web WebConfig `json:"-" yaml:"web"` + CLI CLIConfig `json:"-" yaml:"cli"` + Updaters []string `json:"-" yaml:"updaters"` + Extra yaml.Node `json:"-" yaml:"extra_config"` } // ClusterUnits is the container for the units and config of a given cluster. diff --git a/pkg/lb/backend/backend.go b/pkg/lb/backend/backend.go index d9248a64..cb6d32a8 100644 --- a/pkg/lb/backend/backend.go +++ b/pkg/lb/backend/backend.go @@ -240,6 +240,7 @@ outside: // // Make query parameters step := time.Duration(period) / 5000 + urlValues := url.Values{ "query": []string{fmt.Sprintf(`up{instance="%s:%s"}`, b.url.Hostname(), b.url.Port())}, "start": []string{time.Now().Add(-time.Duration(period)).UTC().Format(time.RFC3339Nano)},