Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

sina-grz
Copy link

@sina-grz sina-grz commented Sep 7, 2025

Summary

I previously described the problems and possible solutions in this issue:
#416
mongodb/mongodb-kubernetes-operator#1737

This branch implements the second proposed solution: Context-Aware Default Templates.
The goal is to avoid unnecessary resource waste by providing separate defaults for arbiters vs. data members while keeping customization consistent.

Proof of Work

Implementation:

  • Pass an isArbiter boolean to the build function
  • Apply arbiter-optimized defaults when isArbiter=true:
    • No PVC
    • Minimal resources
  • Maintain current behavior for data members
  • Keep spec.statefulSet for member customization only

Checklist

  • Have you linked a jira ticket and/or is the ticket in the title?
  • Have you checked whether your jira ticket required DOCSP changes?
  • [ ✅] Have you added changelog file?

@sina-grz sina-grz requested a review from a team as a code owner September 7, 2025 09:45
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.

1 participant