Skip to content

feat: add PodDisruptionBudget to inventory-service Helm chart#205

Open
devin-ai-integration[bot] wants to merge 2 commits into
workshop-masonfrom
devin/1775484241-pdb-polly-argocd
Open

feat: add PodDisruptionBudget to inventory-service Helm chart#205
devin-ai-integration[bot] wants to merge 2 commits into
workshop-masonfrom
devin/1775484241-pdb-polly-argocd

Conversation

@devin-ai-integration
Copy link
Copy Markdown
Contributor

Summary

Adds a PodDisruptionBudget resource to the inventory-service Helm chart with minAvailable: 1, ensuring at least one pod remains available during voluntary disruptions (node drains, cluster upgrades, etc.).

Changes:

  • New templates/pdb.yaml using existing _helpers.tpl for naming and label consistency
  • New pdb.minAvailable value in values.yaml (default: 1)

Review & Testing Checklist for Human

  • Verify interaction with replicaCount: 1: The default replica count is 1 and minAvailable is 1, which means voluntary disruptions (e.g. kubectl drain) will be blocked. Confirm this is intentional — if not, bump replicaCount to ≥2 in values-dev/staging overrides
  • Validate rendered manifest: Run helm template helm/inventory-service/ and confirm the PDB renders correctly with expected name, labels, and selector
  • Consider whether a pdb.enabled toggle is needed (other chart resources like HPA use conditional rendering, but the PDB is always created)

Notes

  • The ArgoCD manifests already target decomposition-dev and decomposition-staging namespaces — no changes were needed there.
  • Helm lint passes cleanly.

Link to Devin session: https://partner-workshops.devinenterprise.com/sessions/9fa44dd0da124db48d3429c429bd491b

… monolith

- .NET 8 Web API with controllers, services, models, EF Core DbContext
- Angular 17 frontend with inventory list and low-stock components
- Multi-stage Dockerfile following monolith-iac pattern
- Helm chart with deployment, service, network policy, service monitor, HPA
- ArgoCD application manifests for dev and staging namespaces
- GitHub Actions CI/CD pipeline (build, test, push to ECR)
- Unit tests with 9 passing test cases
- Added pdb.yaml template with selector labels
- Added pdb.minAvailable: 1 to values.yaml
@devin-ai-integration
Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@devin-ai-integration devin-ai-integration Bot force-pushed the workshop-mason branch 2 times, most recently from 833b8a2 to 32d7a79 Compare April 8, 2026 03:53
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.

0 participants