mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
commit
51bdeb39e6
@ -33,7 +33,7 @@ var (
|
|||||||
gatewayDNSCluster string
|
gatewayDNSCluster string
|
||||||
gatewayDNSClusterServiceName string
|
gatewayDNSClusterServiceName string
|
||||||
gatewayInsecureDiscovery bool
|
gatewayInsecureDiscovery bool
|
||||||
getewayRetryDelay time.Duration
|
gatewayRetryDelay time.Duration
|
||||||
gatewayCA string
|
gatewayCA string
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -75,7 +75,7 @@ func newGatewayStartCommand() *cobra.Command {
|
|||||||
|
|
||||||
cmd.Flags().StringSliceVar(&gatewayEndpoints, "endpoints", []string{"127.0.0.1:2379"}, "comma separated etcd cluster endpoints")
|
cmd.Flags().StringSliceVar(&gatewayEndpoints, "endpoints", []string{"127.0.0.1:2379"}, "comma separated etcd cluster endpoints")
|
||||||
|
|
||||||
cmd.Flags().DurationVar(&getewayRetryDelay, "retry-delay", time.Minute, "duration of delay before retrying failed endpoints")
|
cmd.Flags().DurationVar(&gatewayRetryDelay, "retry-delay", time.Minute, "duration of delay before retrying failed endpoints")
|
||||||
|
|
||||||
return &cmd
|
return &cmd
|
||||||
}
|
}
|
||||||
@ -135,7 +135,7 @@ func startGateway(cmd *cobra.Command, args []string) {
|
|||||||
Logger: lg,
|
Logger: lg,
|
||||||
Listener: l,
|
Listener: l,
|
||||||
Endpoints: srvs.SRVs,
|
Endpoints: srvs.SRVs,
|
||||||
MonitorInterval: getewayRetryDelay,
|
MonitorInterval: gatewayRetryDelay,
|
||||||
}
|
}
|
||||||
|
|
||||||
// At this point, etcd gateway listener is initialized
|
// At this point, etcd gateway listener is initialized
|
||||||
|
Loading…
x
Reference in New Issue
Block a user