mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-10 12:32:03 +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.
|
||||
// TODO: this is apparently untested; is it used?
|
||||
type serviceConfig struct {
|
||||
Services []struct {
|
||||
Name string `json: "name"`
|
||||
Port int `json: "port"`
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user