Skip to content

fix: correct orchestrator PDB conditional logic#41

Merged
wfernandes merged 2 commits intomainfrom
fix/orchestrator-pdb-conditional
Apr 30, 2026
Merged

fix: correct orchestrator PDB conditional logic#41
wfernandes merged 2 commits intomainfrom
fix/orchestrator-pdb-conditional

Conversation

@wfernandes
Copy link
Copy Markdown
Member

Description

The conditional in charts/orchestrator/templates/pdb.yaml combined the autoscaling and replicaCount branches with and instead of or, requiring autoscaling.enabled to be simultaneously true and false. As a result, the PodDisruptionBudget resource never rendered regardless of values.

Before:

{{- if and .Values.podDisruptionBudget.enabled (and .Values.autoscaling.enabled (gt ... 1)) (and (not .Values.autoscaling.enabled) (gt ... 1)) }}

After:

{{- if and .Values.podDisruptionBudget.enabled (or (and .Values.autoscaling.enabled (gt ... 1)) (and (not .Values.autoscaling.enabled) (gt ... 1))) }}

Testing

helm lint charts/orchestrator passes. Verified helm template output across all relevant cases:

  • pdb.enabled=true, autoscaling.enabled=true, minReplicas=2 → PDB renders
  • pdb.enabled=true, autoscaling.enabled=true, minReplicas=1 → PDB skipped
  • pdb.enabled=true, autoscaling.enabled=false, replicaCount=2 → PDB renders
  • pdb.enabled=false → PDB skipped

Documentation

N/A — bug fix only; no behavior or values surface changes.

Issue

https://maverics.atlassian.net/browse/BIGLIST-1347

wfernandes and others added 2 commits April 30, 2026 12:32
The conditional combined the autoscaling and replicaCount branches
with `and` instead of `or`, requiring `autoscaling.enabled` to be
both true and false simultaneously. As a result, the
PodDisruptionBudget never rendered regardless of values.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@wfernandes wfernandes merged commit 9a2ad33 into main Apr 30, 2026
2 checks passed
@wfernandes wfernandes deleted the fix/orchestrator-pdb-conditional branch April 30, 2026 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants