Skip to content

fix(t8s-cluster/management-cluster): fix replicas type checking#1754

Merged
cwrau merged 1 commit into
mainfrom
fix/t8s-cluster/correct-map-checking
Oct 22, 2025
Merged

fix(t8s-cluster/management-cluster): fix replicas type checking#1754
cwrau merged 1 commit into
mainfrom
fix/t8s-cluster/correct-map-checking

Conversation

@cwrau
Copy link
Copy Markdown
Member

@cwrau cwrau commented Oct 22, 2025

Summary by CodeRabbit

  • Bug Fixes
    • Improved validation logic for cluster node pool replica count configurations to ensure accurate min/max validation checks.

Copilot AI review requested due to automatic review settings October 22, 2025 09:02
@cwrau cwrau enabled auto-merge October 22, 2025 09:02
Copy link
Copy Markdown

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 fixes the type checking logic for replica configuration in the management cluster template by replacing typeIs with the more appropriate kindIs function.

Key Changes:

  • Changed type checking function from typeIs to kindIs for replica validation in the cluster template

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Oct 22, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

This PR modifies the Helm template introspection method in the cluster configuration from typeIs to kindIs when evaluating the replicas field type. This affects the conditional logic that determines when minReplicas/maxReplicas validation is triggered for nodePools entries.

Changes

Cohort / File(s) Summary
Template introspection update
charts/t8s-cluster/templates/management-cluster/cluster.yaml
Changed replicas field type check from typeIs "map" to kindIs "map", modifying the control flow for minReplicas/maxReplicas validation in nodePools

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Suggested reviewers

  • marvinWolff
  • tasches
  • teutonet-bot

Poem

🐰 A tiny tweak, but oh so fine,
From typeIs to kindIs we align,
The validation now flows just right,
Replicas dance in Helm's twilight! ✨

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/t8s-cluster/correct-map-checking

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7a5bb05 and 12749b1.

📒 Files selected for processing (1)
  • charts/t8s-cluster/templates/management-cluster/cluster.yaml (1 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@cwrau cwrau added this pull request to the merge queue Oct 22, 2025
Merged via the queue into main with commit 1b56411 Oct 22, 2025
20 of 21 checks passed
@cwrau cwrau deleted the fix/t8s-cluster/correct-map-checking branch October 22, 2025 09:04
github-merge-queue Bot pushed a commit that referenced this pull request Oct 22, 2025
🤖 I have created a release *beep* *boop*
---


##
[9.4.1](t8s-cluster-v9.4.0...t8s-cluster-v9.4.1)
(2025-10-22)


### Bug Fixes

* **t8s-cluster/management-cluster:** fix replicas type checking
([#1754](#1754))
([1b56411](1b56411))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Fixed a type checking issue with cluster replicas in the management
cluster.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants