mirror of
https://github.com/datarhei/core.git
synced 2025-10-04 15:42:57 +08:00
Start cluster after core API has been started
The core API will be started before the cluster is started in order to access the cluster endpoints during a cluster upgrade. If TLS is enabled, possibly stale certificates are loaded into the cache. Otherwise the leader has to be contacted via the cluster API which might have changed.
This commit is contained in:
@@ -849,7 +849,7 @@ func (a *api) GetKV(c echo.Context) error {
|
||||
|
||||
a.logger.Debug().WithField("key", key).Log("Get key")
|
||||
|
||||
value, updatedAt, err := a.cluster.GetKV(origin, key)
|
||||
value, updatedAt, err := a.cluster.GetKV(origin, key, false)
|
||||
if err != nil {
|
||||
if err == fs.ErrNotExist {
|
||||
a.logger.Debug().WithError(err).WithField("key", key).Log("Get key: not found")
|
||||
|
Reference in New Issue
Block a user