mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-14 11:57:37 +00:00
[Bugfix] Ensure that client cache is initialized before using it (#1074)
This commit is contained in:
parent
70d41fd010
commit
630628ed77
2 changed files with 9 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
|||
- (Feature) Set condition to shrink agent volume size
|
||||
- (Bugfix) Check serving servers
|
||||
- (Documentation) Add docs on setting timezone for containers
|
||||
- (Bugfix) Ensure that client cache is initialized before using it
|
||||
|
||||
## [1.2.15](https://github.com/arangodb/kube-arangodb/tree/1.2.15) (2022-07-20)
|
||||
- (Bugfix) Ensure pod names not too long
|
||||
|
|
|
@ -263,6 +263,14 @@ func New(config Config, deps Dependencies, apiObject *api.ArangoDeployment) (*De
|
|||
|
||||
localInventory.Add(d)
|
||||
|
||||
if !d.acs.CurrentClusterCache().Initialised() {
|
||||
d.log.Warn("ACS cache not yet initialised")
|
||||
err := d.acs.CurrentClusterCache().Refresh(context.Background())
|
||||
if err != nil {
|
||||
d.log.Err(err).Error("Unable to get resources from ACS")
|
||||
}
|
||||
}
|
||||
|
||||
go d.run()
|
||||
go d.listenForPodEvents(d.stopCh)
|
||||
go d.listenForPVCEvents(d.stopCh)
|
||||
|
|
Loading…
Reference in a new issue