Skip to content

Commit 60eca8c

Browse files
oktalzaiharos
authored andcommitted
BUG/MEDIUM: config: add default location of path to the dataplaneapi configuration file
default location was not set, and therefore configuration file was not used. this results in loosing service discovery data if that file is not set when dataplaneapi is restarted
1 parent c9437cd commit 60eca8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configuration/configuration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ type HAProxyConfiguration struct {
4848
BackupsNumber int `short:"n" long:"backups-number" description:"Number of backup configuration files you want to keep, stored in the config dir with version number suffix" default:"0"`
4949
MasterRuntime string `short:"m" long:"master-runtime" description:"Path to the master Runtime API socket"`
5050
ShowSystemInfo bool `short:"i" long:"show-system-info" description:"Show system info on info endpoint"`
51-
DataplaneConfig string `short:"f" description:"Path to the dataplane configuration file" default:"" yaml:"-"`
51+
DataplaneConfig string `short:"f" description:"Path to the dataplane configuration file" default:"dataplaneapi.yaml" yaml:"-"`
5252
UserListFile string `long:"userlist-file" description:"Path to the dataplaneapi userlist file. By default userlist is read from HAProxy conf. When specified userlist would be read from this file"`
5353
NodeIDFile string `long:"fid" description:"Path to file that will dataplaneapi use to write its id (not a pid) that was given to him after joining a cluster"`
5454
MapsDir string `short:"p" long:"maps-dir" description:"Path to directory of map files managed by dataplane" default:"/etc/haproxy/maps"`

0 commit comments

Comments
 (0)