Skip to content

Commit

Permalink
address review: put also the rest to cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
Samu Tamminen committed Mar 16, 2022
1 parent 6792093 commit f5415a4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/object/statussynccontroller/statussynccontroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,13 @@ func (ssc *StatusSyncController) syncStatusToCluster(statuses map[string]string)
kvs = make(map[string]*string)
}
}
if len(kvs) > 0 {
err := ssc.superSpec.Super().Cluster().PutAndDeleteUnderLease(kvs)
if err != nil {
logger.Errorf("sync status failed. If the message size is too large, "+
"please increase the value of cluster.MaxCallSendMsgSize in configuration: %v", err)
}
}
}

func (ssc *StatusSyncController) addStatusesRecord(statusesRecord *StatusesRecord) {
Expand Down

0 comments on commit f5415a4

Please sign in to comment.