1
0
Fork 0
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:
jwierzbo 2022-08-02 10:17:16 +02:00 committed by GitHub
parent 70d41fd010
commit 630628ed77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View file

@ -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

View file

@ -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)