From e3e8e4a8570d826aeec81e2714f70f73d7ea9bf3 Mon Sep 17 00:00:00 2001 From: ajanikow <12255597+ajanikow@users.noreply.github.com> Date: Tue, 5 Sep 2023 08:40:12 +0000 Subject: [PATCH] [Bugfix] PVC Rotation Discovery --- CHANGELOG.md | 1 + pkg/deployment/deployment_inspector.go | 2 +- pkg/deployment/reconcile/plan_builder_storage.go | 2 +- pkg/operator/operator_deployment.go | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d6d2a21a1..6e14e9635 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ - (Feature) Add proper Prometheus endpoint compression + 204 response code - (Feature) Reconciliation Loop Interval option - (Bugfix) Fix GZIP encoding in case of small responses +- (Bugfix) Fix PVC Rotation Discovery ## [1.2.32](https://github.com/arangodb/kube-arangodb/tree/1.2.32) (2023-08-07) - (Feature) Backup lifetime - remove Backup once its lifetime has been reached diff --git a/pkg/deployment/deployment_inspector.go b/pkg/deployment/deployment_inspector.go index cf2c4119c..f8afa14a5 100644 --- a/pkg/deployment/deployment_inspector.go +++ b/pkg/deployment/deployment_inspector.go @@ -1,7 +1,7 @@ // // DISCLAIMER // -// Copyright 2016-2022 ArangoDB GmbH, Cologne, Germany +// Copyright 2016-2023 ArangoDB GmbH, Cologne, Germany // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/pkg/deployment/reconcile/plan_builder_storage.go b/pkg/deployment/reconcile/plan_builder_storage.go index fc8b2d160..56e00f0ef 100644 --- a/pkg/deployment/reconcile/plan_builder_storage.go +++ b/pkg/deployment/reconcile/plan_builder_storage.go @@ -100,7 +100,7 @@ func (r *Reconciler) createRotateServerStorageResizePlanInternal(spec api.Deploy } // Load PVC - pvc, exists := pvcs[member.Member.PersistentVolumeClaim.GetName()] + pvc, exists := pvcs[member.Member.ID] if !exists { r.planLogger. Str("role", member.Group.AsRole()). diff --git a/pkg/operator/operator_deployment.go b/pkg/operator/operator_deployment.go index d302be88b..6e4bbedf6 100644 --- a/pkg/operator/operator_deployment.go +++ b/pkg/operator/operator_deployment.go @@ -1,7 +1,7 @@ // // DISCLAIMER // -// Copyright 2016-2022 ArangoDB GmbH, Cologne, Germany +// Copyright 2016-2023 ArangoDB GmbH, Cologne, Germany // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.