Skip to content

Per slot disk configuration in the helm charts#9448

Open
himadrisingh wants to merge 3 commits into
mainfrom
perslot
Open

Per slot disk configuration in the helm charts#9448
himadrisingh wants to merge 3 commits into
mainfrom
perslot

Conversation

@himadrisingh
Copy link
Copy Markdown
Contributor

Make it configurable via env

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

@himadrisingh himadrisingh requested a review from kaspersjo May 14, 2026 08:52
@himadrisingh himadrisingh self-assigned this May 14, 2026
@kaspersjo kaspersjo requested review from Copilot and removed request for Copilot May 14, 2026 14:02
}

// Resolve disk_gb_per_slot from env var if set
if val := os.Getenv("RILL_PROVISIONER_DISK_GB_PER_SLOT"); val != "" {
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.

We don't load environment variables directly like this. All configs are parsed and passed through from the Config struct in cli/cmd/admin/start.go

TimeoutSeconds int `json:"timeout_seconds"`
KubeconfigPath string `json:"kubeconfig_path"`
TemplatePaths *KubernetesTemplatePaths `json:"template_paths"`
DiskGBPerSlot int `json:"disk_gb_per_slot"`
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.

We should probably make the entire slot definition configurable if we go down this path, but that would be more than a provisioner change, since it affects more parts of the application.

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.

@kaspersjo kaspersjo requested a review from begelundmuller May 14, 2026 14:38
@himadrisingh himadrisingh changed the title Per slot disk configuration Per slot disk configuration in the helm charts May 14, 2026
Comment thread admin/provisioner/kubernetes/kubernetes.go Outdated
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