zero: fix bootstrap config path

This commit is contained in:
Denis Mishin 2024-03-21 17:38:56 -04:00
parent 4193583301
commit 3ac74c68ca
7 changed files with 36 additions and 33 deletions

View file

@ -12,7 +12,7 @@ type controllerConfig struct {
otelEndpoint string
tmpDir string
bootstrapConfigFileName string
bootstrapConfigFileName *string
reconcilerLeaseDuration time.Duration
databrokerRequestTimeout time.Duration
@ -56,7 +56,7 @@ func WithAPIToken(token string) Option {
// WithBootstrapConfigFileName sets the name of the file to store the bootstrap config in.
func WithBootstrapConfigFileName(name string) Option {
return func(c *controllerConfig) {
c.bootstrapConfigFileName = name
c.bootstrapConfigFileName = &name
}
}