1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-14 11:57:37 +00:00

[Bugfix] Skip arangosync members state inspection checks (#968)

This commit is contained in:
Nikita Vanyasin 2022-04-28 23:58:43 +04:00 committed by GitHub
parent 4b7ca01209
commit bfd1a6a139
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -3,6 +3,7 @@
## [master](https://github.com/arangodb/kube-arangodb/tree/master) (N/A)
- (Bugfix) Orphan PVC are not removed
- (Bugfix) Remove LocalStorage Deadlock
- (Bugfix) Skip arangosync members state inspection checks
## [1.2.10](https://github.com/arangodb/kube-arangodb/tree/1.2.10) (2022-04-27)
- (Feature) Allow configuration for securityContext.runAsUser value

View file

@ -24,11 +24,12 @@ import (
"context"
"sync"
"github.com/rs/zerolog"
"github.com/arangodb/go-driver"
api "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v1"
"github.com/arangodb/kube-arangodb/pkg/deployment/reconciler"
"github.com/arangodb/kube-arangodb/pkg/util/globals"
"github.com/rs/zerolog"
)
type StateInspectorGetter interface {
@ -93,6 +94,10 @@ func (s *stateInspector) RefreshState(ctx context.Context, members api.Deploymen
defer cancel()
members.ForEach(func(id int) {
if members[id].Group.IsArangosync() {
return
}
results[id] = State{}
c, err := s.client.GetServerClient(nctx, members[id].Group, members[id].Member.ID)