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

[Bugfix] Fix for ArangoTask list error (#1289)

This commit is contained in:
jwierzbo 2023-04-17 05:15:38 +02:00 committed by GitHub
parent f3c0a553f8
commit 1c3ba8b873
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 8 deletions

View file

@ -2,6 +2,7 @@
## [master](https://github.com/arangodb/kube-arangodb/tree/master) (N/A)
- (Bugfix) Fix manual overwrite for ReplicasCount in helm
- (Bugfix) Fix for ArangoTask list error
## [1.2.25](https://github.com/arangodb/kube-arangodb/tree/1.2.25) (2023-04-07)
- (Feature) Add Generics & Drop policy/v1beta1 support

View file

@ -8,9 +8,6 @@ spec:
kind: ArangoTask
listKind: ArangoTaskList
plural: arangotasks
shortNames:
- arangodb
- arango
singular: arangotask
scope: Namespaced
versions:

View file

@ -8,9 +8,6 @@ spec:
kind: ArangoTask
listKind: ArangoTaskList
plural: arangotasks
shortNames:
- arangodb
- arango
singular: arangotask
scope: Namespaced
versions:

View file

@ -161,11 +161,11 @@ func (i *inspectorState) RegisterInformers(k8s informers.SharedInformerFactory,
// Arango
arango.Database().V1().ArangoMembers().Informer().AddEventHandler(i.eventHandler(definitions.ArangoMember))
if _, err := i.ArangoTask().V1(); err != nil {
if _, err := i.ArangoTask().V1(); err == nil {
arango.Database().V1().ArangoTasks().Informer().AddEventHandler(i.eventHandler(definitions.ArangoTask))
}
if _, err := i.ArangoClusterSynchronization().V1(); err != nil {
if _, err := i.ArangoClusterSynchronization().V1(); err == nil {
arango.Database().V1().ArangoClusterSynchronizations().Informer().AddEventHandler(i.eventHandler(definitions.ArangoClusterSynchronization))
}
}