Skip to content

Change Rook-Ceph Template from Kustomize to Helm Chart#50

Merged
iasthc merged 1 commit intomainfrom
feat/change_rook_ceph_templates
Mar 23, 2026
Merged

Change Rook-Ceph Template from Kustomize to Helm Chart#50
iasthc merged 1 commit intomainfrom
feat/change_rook_ceph_templates

Conversation

@tsaishawn
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings March 23, 2026 03:21
@gemini-code-assist
Copy link

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request refactors the Rook-Ceph module deployment strategy by migrating from a Kustomize-driven configuration to a Helm chart-based approach. This change enhances the modularity and maintainability of the Rook-Ceph integration by leveraging Helm's package management capabilities and separating the operator and cluster deployments into distinct module templates.

Highlights

  • Rook-Ceph Migration to Helm: The deployment of Rook-Ceph has been transitioned from a Kustomize-based approach to using Helm charts for better management and standardization.
  • Split ModuleTemplates: The Rook-Ceph deployment is now managed by two distinct ModuleTemplates: one for the Rook-Ceph operator and another for the Ceph cluster resources, allowing for separate lifecycle management.
  • New Helm Repository: A dedicated HelmRepository resource has been introduced to source the Rook-Ceph Helm charts.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request successfully migrates the Rook-Ceph module from a Kustomize-based deployment to a Helm-based one, which is a positive change for managing the application lifecycle. The separation of the operator and cluster deployments into distinct module templates is well-executed and follows best practices. My review focuses on improving the default configuration in the new rook-ceph-cluster template to ensure a more resilient setup out-of-the-box by adjusting the replica counts for key Ceph components.


cephClusterSpec:
mon:
count: 1

Choose a reason for hiding this comment

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

high

A mon.count of 1 creates a single point of failure for the Ceph control plane. For production or highly-available environments, it is strongly recommended to use a count of 3. While allowMultiplePerNode: true is useful for single-node test clusters, the default in a reusable template should promote a more resilient configuration.

          count: 3

count: 1
allowMultiplePerNode: true
mgr:
count: 1

Choose a reason for hiding this comment

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

medium

A mgr.count of 1 is not highly available. To ensure the Ceph manager is resilient, it's recommended to run an active/standby pair by setting the count to 2 for production workloads.

          count: 2

@codecov
Copy link

codecov bot commented Mar 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link

Copilot AI left a comment

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 migrates the Rook-Ceph ModuleTemplate from a FluxCD Kustomization-based install (raw upstream YAMLs) to a FluxCD HelmRelease-based install, and introduces a separate Helm-based template for provisioning the CephCluster resources.

Changes:

  • Switch config/modules/rook-ceph/moduletemplate.yaml from kustomization to helmRelease using the upstream rook-ceph Helm chart.
  • Add a new rook-ceph-cluster ModuleTemplate driven by the rook-ceph-cluster Helm chart, plus a corresponding sample Module.
  • Add a Flux HelmRepository for Rook and wire these resources into config/modules/kustomization.yaml; remove the old rook-ceph kustomization.yaml.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
config/samples/module-rook-ceph-cluster.yaml Adds a sample Module that references the new rook-ceph-cluster template.
config/modules/rook-ceph/moduletemplate.yaml Migrates the operator install to a HelmRelease spec (rook-ceph chart).
config/modules/rook-ceph/moduletemplate-cluster.yaml Introduces a HelmRelease-based cluster (CephCluster) template with a dependency on the operator.
config/modules/rook-ceph/kustomization.yaml Removes the prior Kustomize-based upstream YAML installation.
config/modules/rook-ceph/helmrepository.yaml Adds the Flux HelmRepository pointing to the upstream Rook chart repo.
config/modules/kustomization.yaml Includes the new rook-ceph HelmRepository and ModuleTemplates in the installer build.

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

Comment on lines +19 to +22
dependsOn:
- name: rook-ceph
namespace: rook-ceph

Copy link

Copilot AI Mar 23, 2026

Choose a reason for hiding this comment

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

helmRelease.dependsOn is hard-coded to name: rook-ceph in namespace: rook-ceph. Because the controller names HelmReleases after the Module (not the ModuleTemplate) and allows Module.spec.namespace overrides, this dependency will silently break if a user installs the operator Module under a different name and/or overrides its namespace. Consider (a) omitting dependsOn[].namespace so the dependency follows the HelmRelease namespace, and (b) documenting that the operator Module must be named rook-ceph (or otherwise make the naming/namespace coupling explicit).

Copilot uses AI. Check for mistakes.
@iasthc iasthc merged commit c8dd848 into main Mar 23, 2026
16 checks passed
@iasthc iasthc deleted the feat/change_rook_ceph_templates branch March 23, 2026 04:57
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.

3 participants