Skip to content

Commit bb45038

Browse files
authored
[Bugfix] Ensure PDB is created (#1651)
1 parent 9a2654e commit bb45038

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## [master](https://github.com/arangodb/kube-arangodb/tree/master) (N/A)
44
- (Maintenance) Bump Prometheus API Version
55
- (Bugfix) Prevent unexpected rotation in case of SecurityContext change
6+
- (Bugfix) Ensure PDB is created
67

78
## [1.2.40](https://github.com/arangodb/kube-arangodb/tree/1.2.40) (2024-04-10)
89
- (Feature) Add Core fields to the Scheduler Container Spec

pkg/deployment/resources/pdbs.go

-4
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,6 @@ func (r *Resources) ensurePDBForGroup(ctx context.Context, group api.ServerGroup
132132

133133
pdb, found := inspector.GetSimple(pdbName)
134134
if !found {
135-
return nil
136-
}
137-
138-
if kerrors.IsNotFound(err) {
139135
if wantedMinAvail != 0 && wantedMinAvail < current {
140136
// No PDB found - create new.
141137
log.Debug("Creating new PDB")

0 commit comments

Comments
 (0)