Skip to content

Commit eaea104

Browse files
oktalzmjuraga
authored andcommitted
BUG/MINOR: cluster: set all storage-dir depentent variables on change
if storage dir is set, set all variables dependent on it immediately since they are used during cluster bootstrap
1 parent ebb1386 commit eaea104

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

handlers/cluster.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ func (h *CreateClusterHandlerImpl) Handle(params cluster.PostClusterParams, prin
123123
}
124124
}
125125
h.Config.Cluster.StorageDir.Store(storageDir)
126+
h.Config.HAProxy.ClusterTLSCertDir = path.Join(storageDir, "certs-cluster")
127+
h.Config.Cluster.CertificateDir.Store(path.Join(storageDir, "certs-cluster"))
126128
}
127129
// enforcing API advertising options
128130
if a := params.AdvertisedAddress; a != nil {

0 commit comments

Comments
 (0)