mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-11 04:52:08 +00:00
Fix struct tag in apparently untested config struct
This commit is contained in:
parent
2d048bc0f2
commit
2dde76bd03
@ -44,12 +44,13 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// serviceConfig is a deserialized form of the config file format which ConfigSourceFile accepts.
|
// serviceConfig is a deserialized form of the config file format which ConfigSourceFile accepts.
|
||||||
|
// TODO: this is apparently untested; is it used?
|
||||||
type serviceConfig struct {
|
type serviceConfig struct {
|
||||||
Services []struct {
|
Services []struct {
|
||||||
Name string `json: "name"`
|
Name string `json: "name"`
|
||||||
Port int `json: "port"`
|
Port int `json: "port"`
|
||||||
Endpoints []string `json: "endpoints"`
|
Endpoints []string `json: "endpoints"`
|
||||||
} `json: "service"`
|
} `json:"service"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ConfigSourceFile periodically reads service configurations in JSON from a file, and sends the services and endpoints defined in the file to the specified channels.
|
// ConfigSourceFile periodically reads service configurations in JSON from a file, and sends the services and endpoints defined in the file to the specified channels.
|
||||||
|
Loading…
Reference in New Issue
Block a user