Skip to content

Add revisionHistoryLimit to Ledger#201

Merged
cigamit merged 1 commit into
mainfrom
ledger_revisionHistoryLimit
Jun 8, 2026
Merged

Add revisionHistoryLimit to Ledger#201
cigamit merged 1 commit into
mainfrom
ledger_revisionHistoryLimit

Conversation

@cigamit

@cigamit cigamit commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Default for keeping old replicasets around is 10, lets drop that down to 1 so we aren't keeping so many old ones around.

@cigamit
cigamit requested a review from TheWitness June 8, 2026 20:18
@cigamit cigamit self-assigned this Jun 8, 2026
Copilot AI review requested due to automatic review settings June 8, 2026 20:18
@cigamit cigamit added the enhancement New feature or request label Jun 8, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reduces the number of retained historical ReplicaSets for the Ledger db, parser, and web Deployments by explicitly setting spec.revisionHistoryLimit: 1 (instead of relying on the Kubernetes default of 10). This helps limit accumulation of old ReplicaSets across supported cluster platforms.

Changes:

  • Add revisionHistoryLimit: 1 to the db Deployment in each platform-specific Ledger manifest template.
  • Add revisionHistoryLimit: 1 to the parser Deployment in each platform-specific Ledger manifest template.
  • Add revisionHistoryLimit: 1 to the web Deployment in each platform-specific Ledger manifest template.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
playbooks/roles/ledger_install/templates/ledger_deployment_rke2.yaml Sets revisionHistoryLimit: 1 for Ledger Deployments on RKE2.
playbooks/roles/ledger_install/templates/ledger_deployment_ocp.yaml Sets revisionHistoryLimit: 1 for Ledger Deployments on OpenShift.
playbooks/roles/ledger_install/templates/ledger_deployment_k3s.yaml Sets revisionHistoryLimit: 1 for Ledger Deployments on K3s.
playbooks/roles/ledger_install/templates/ledger_deployment_gke.yaml Sets revisionHistoryLimit: 1 for Ledger Deployments on GKE.
playbooks/roles/ledger_install/templates/ledger_deployment_eks.yaml Sets revisionHistoryLimit: 1 for Ledger Deployments on EKS.
playbooks/roles/ledger_install/templates/ledger_deployment_dkp.yaml Sets revisionHistoryLimit: 1 for Ledger Deployments on DKP.
playbooks/roles/ledger_install/templates/ledger_deployment_aks.yaml Sets revisionHistoryLimit: 1 for Ledger Deployments on AKS.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cigamit
cigamit merged commit d1eff1d into main Jun 8, 2026
1 check passed
@cigamit
cigamit deleted the ledger_revisionHistoryLimit branch June 8, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Development

Successfully merging this pull request may close these issues.

3 participants