Skip to content

Commit

Permalink
feat: enable migration in etcd (#226)
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
  • Loading branch information
vishal-chdhry authored Nov 4, 2024
1 parent 5579039 commit 01ab2f8
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions pkg/server/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,10 @@ func (c Config) Complete() (*server, error) {
return nil, err
}

// Embedded runs in a stateful set in high availability deployment
// TODO: Add leader election to add embedded
if !c.Embedded {
klog.Info("performing migration...")
if err := c.migration(store); err != nil {
klog.Error(err)
return nil, err
}
klog.Info("performing migration...")
if err := c.migration(store); err != nil {
klog.Error(err)
return nil, err
}

if err := api.Install(store, genericServer); err != nil {
Expand Down

0 comments on commit 01ab2f8

Please sign in to comment.