From 4af3e3538870e6f7cdb7e33ca07edadfbe260f17 Mon Sep 17 00:00:00 2001 From: ajanikow <12255597+ajanikow@users.noreply.github.com> Date: Fri, 26 Apr 2024 11:00:07 +0000 Subject: [PATCH] [Bugfix] Ensure PDB is created --- CHANGELOG.md | 1 + pkg/deployment/resources/pdbs.go | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6299f8bf0..cf4d3378d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## [master](https://github.com/arangodb/kube-arangodb/tree/master) (N/A) - (Maintenance) Bump Prometheus API Version - (Bugfix) Prevent unexpected rotation in case of SecurityContext change +- (Bugfix) Ensure PDB is created ## [1.2.40](https://github.com/arangodb/kube-arangodb/tree/1.2.40) (2024-04-10) - (Feature) Add Core fields to the Scheduler Container Spec diff --git a/pkg/deployment/resources/pdbs.go b/pkg/deployment/resources/pdbs.go index b2c3f4cfe..4c5835cd2 100644 --- a/pkg/deployment/resources/pdbs.go +++ b/pkg/deployment/resources/pdbs.go @@ -132,10 +132,6 @@ func (r *Resources) ensurePDBForGroup(ctx context.Context, group api.ServerGroup pdb, found := inspector.GetSimple(pdbName) if !found { - return nil - } - - if kerrors.IsNotFound(err) { if wantedMinAvail != 0 && wantedMinAvail < current { // No PDB found - create new. log.Debug("Creating new PDB")