Skip to content

fix(t8s-cluster/autoscaler): these names are inside the workload cluster#1877

Merged
cwrau merged 1 commit intomainfrom
fix/t8s-cluster/autoscaler-names
Dec 9, 2025
Merged

fix(t8s-cluster/autoscaler): these names are inside the workload cluster#1877
cwrau merged 1 commit intomainfrom
fix/t8s-cluster/autoscaler-names

Conversation

@cwrau
Copy link
Member

@cwrau cwrau commented Dec 9, 2025

There is no .Release.Namespace namespace in the workload cluster...
This just looked like it was necessary for the management clusters
themselves 🤣

Summary by CodeRabbit

  • Chores
    • Simplified autoscaler configuration by removing three explicit namespace and resource naming settings.

✏️ Tip: You can customize this high-level summary in your review settings.

There is no `.Release.Namespace` namespace in the workload cluster...
This just looked like it was necessary for the management clusters
themselves 🤣
Copilot AI review requested due to automatic review settings December 9, 2025 15:24
@cwrau cwrau enabled auto-merge December 9, 2025 15:24
@coderabbitai
Copy link

coderabbitai bot commented Dec 9, 2025

Walkthrough

Three autoscaler configuration lines were removed from the Helm template: clusterAPIConfigMapsNamespace, leader-elect-resource-name, and status-config-map-name. No new functionality was introduced; existing configuration values were deleted.

Changes

Cohort / File(s) Change Summary
Autoscaler Configuration
charts/t8s-cluster/templates/management-cluster/autoscaler.yaml
Removed three configuration keys: clusterAPIConfigMapsNamespace, leader-elect-resource-name, and status-config-map-name

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

  • Single file modified with straightforward line removals
  • Configuration-only change with no logic alterations
  • Consider reviewing impact on cluster-autoscaler behavior post-removal

Possibly related PRs

Suggested labels

t8s-cluster

Suggested reviewers

  • tasches
  • marvinWolff
  • teutonet-bot

Poem

🐰 Three config lines bid farewell today,
From the autoscaler's helm they slip away.
No more ConfigMaps namespace defined with care,
Leader and status keys vanish into air.
Simpler times ahead—defaults light and fair! ✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: removing namespace-related configuration lines from the autoscaler because these names belong in the workload cluster, not management cluster.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ 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/autoscaler-names

📜 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 dc5f071 and b9287e7.

📒 Files selected for processing (1)
  • charts/t8s-cluster/templates/management-cluster/autoscaler.yaml (0 hunks)
💤 Files with no reviewable changes (1)
  • charts/t8s-cluster/templates/management-cluster/autoscaler.yaml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Agent

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.

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 fixes incorrect namespace references in the cluster-autoscaler configuration for managing workload clusters. The autoscaler runs in the management cluster but manages node scaling in workload clusters via a kubeconfig. The removed parameters were incorrectly referencing .Release.Namespace for resources in the workload cluster, where that namespace doesn't exist.

  • Removes clusterAPIConfigMapsNamespace which incorrectly pointed to a non-existent namespace in the workload cluster
  • Removes leader-elect-resource-name and status-config-map-name extraArgs that were unnecessarily prefixed with release name

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

@cwrau cwrau added this pull request to the merge queue Dec 9, 2025
Merged via the queue into main with commit f345cea Dec 9, 2025
36 of 39 checks passed
@cwrau cwrau deleted the fix/t8s-cluster/autoscaler-names branch December 9, 2025 15:30
github-merge-queue bot pushed a commit that referenced this pull request Jan 15, 2026
🤖 I have created a release *beep* *boop*
---


##
[9.5.0](t8s-cluster-v9.4.1...t8s-cluster-v9.5.0)
(2026-01-15)


### Features

* **t8s-cluster/artifacthub:** use centralised helmRepositories template
([#1846](#1846))
([73a41f9](73a41f9))
* **t8s-cluster/cilium:** enable kubeProxy replacement
([#1815](#1815))
([b3c412d](b3c412d))
* **t8s-cluster/management-cluster:** add cluster-autoscaler deployment
([#1756](#1756))
([5b6ead9](5b6ead9))
* **t8s-cluster/management-cluster:** enable ImageVolume feature flag
([#1786](#1786))
([9676ee0](9676ee0))
* **t8s-cluster/management-cluster:** set apiServerLoadBalancer.provider
via TeutonetesCloud
([#1898](#1898))
([6bf8889](6bf8889))
* **t8s-cluster/management-cluster:** switch to hcp
([#1759](#1759))
([303b0b6](303b0b6))
* **t8s-cluster/management-cluster:** use new
KubeletEnsureSecretPulledImages feature gate
([#1858](#1858))
([40d7bef](40d7bef))
* **t8s-cluster:** migrate to CAPI v1beta2
([#1685](#1685))
([dc5f071](dc5f071))


### Bug Fixes

* **t8s-cluster/autoscaler:** these names are inside the workload
cluster
([#1877](#1877))
([f345cea](f345cea))
* **t8s-cluster/management-cluster:** leave out protocol if `nil`
([#1837](#1837))
([f370dac](f370dac))
* **t8s-cluster:** only allow nodePools with valid k8s names
([#1851](#1851))
([b9431c5](b9431c5))


### Miscellaneous Chores

* **t8s-cluster/dependencies:** update common docker tag to v1.6.0
([#1811](#1811))
([b3b4c94](b3b4c94))
* **t8s-cluster/dependencies:** update common docker tag to v1.7.0
([#1873](#1873))
([71e062f](71e062f))
* **t8s-cluster/dependencies:** update helm release cilium to v1.18.6
([#1894](#1894))
([e1adc88](e1adc88))
* **t8s-cluster/dependencies:** update helm release cluster-autoscaler
to v9.53.0
([#1856](#1856))
([dc67fcd](dc67fcd))
* **t8s-cluster/dependencies:** update helm release
openstack-cloud-controller-manager to v2.34.1
([#1553](#1553))
([e984d19](e984d19))
* **t8s-cluster/dependencies:** update registry.k8s.io/etcd docker tag
to v3.5.24
([#1793](#1793))
([a5098e3](a5098e3))
* **t8s-cluster/dependencies:** update registry.k8s.io/etcd docker tag
to v3.6.6
([#1813](#1813))
([e07ffa7](e07ffa7))
* **t8s-cluster/dependencies:** update registry.k8s.io/etcd docker tag
to v3.6.7
([#1895](#1895))
([cf1d3b4](cf1d3b4))
* **t8s-cluster/flux:** use centralised HelmRepositories instead of
per-instance
([#1758](#1758))
([3deff65](3deff65))

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

---------

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