Skip to content

Conversation

@kon-angelo
Copy link
Contributor

How to categorize this PR?

/area control-plane
/kind enhancement
/platform azure

What this PR does / why we need it:

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Release note:

Refactor Feature Gates specification for the provider-extesion helm chart. Operators need to specify their deployed feature gates with their canonical name.

@kon-angelo kon-angelo requested a review from a team as a code owner September 23, 2025 07:15
@gardener-robot gardener-robot added area/control-plane Control plane related kind/enhancement Enhancement, improvement, extension platform/azure Microsoft Azure platform/infrastructure needs/review Needs review size/xs Size of pull request is tiny (see gardener-robot robot/bots/size.py) labels Sep 23, 2025
@gardener-github-actions gardener-github-actions bot added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Sep 23, 2025
@github-actions github-actions bot added needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Sep 23, 2025
@gardener-robot-ci-3 gardener-robot-ci-3 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Sep 23, 2025
@github-actions github-actions bot removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Sep 23, 2025
@kon-angelo kon-angelo added this to the v1.55 milestone Sep 23, 2025
AndreasBurger
AndreasBurger previously approved these changes Sep 23, 2025
@kon-angelo kon-angelo added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Sep 23, 2025
@github-actions github-actions bot removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Sep 23, 2025

{{- define "topologyAwareRouting.enabled" -}}
{{- if and .Values.gardener.seed .Values.gardener.seed.spec.settings.topologyAwareRouting.enabled }}
{{- if ((((((.Values.gardener).seed).spec).settings).topologyAwareRouting)) -}}
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the removal of .enabled intentional?

Copy link
Contributor

@hebelsan hebelsan Sep 23, 2025

Choose a reason for hiding this comment

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

Also is it safe this way, or will it error if any intermediate map is missing?
How about?
{{- if (.Values | dig "gardener" "seed" "spec" "settings" "topologyAwareRouting" "enabled" false) }}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let me test that suggestion

Copy link
Contributor Author

@kon-angelo kon-angelo Sep 23, 2025

Choose a reason for hiding this comment

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

just FYI, yes, the original method defaults to empty value (hence false) if an intermediate method is missing

Comment on lines 30 to 32
{{- range $key, $value := .Values.config.featureGates }}
{{ $key }}: {{ $value }}
{{- end }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Although this works it will produce random key order, causing noisy diffs between renders.
Could be resolved by:

{{- range $k := (.Values.config.featureGates | keys | sortAlpha) }}
{{ $k }}: {{ index $.Values.config.featureGates $k }}
{{- end }}

@gardener-github-actions gardener-github-actions bot added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Sep 23, 2025
@github-actions github-actions bot removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Sep 23, 2025
@gardener-robot-ci-3 gardener-robot-ci-3 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Sep 23, 2025
@github-actions
Copy link
Contributor

This update refactors the Helm chart for the Azure provider extension to improve maintainability and flexibility. The logic for evaluating certain settings has been simplified. More significantly, the handling of feature gates is now dynamic, allowing new gates to be added via configuration without requiring template modifications. The example controller registration has been updated to incorporate these chart enhancements.

Walkthrough

  • Refactor: Improved the Helm chart's helper templates by using more concise and robust logic for checking configuration values.
  • Refactor: The configuration for feature gates is now dynamic. This allows new feature gates to be enabled through configuration without needing to modify chart templates, simplifying future updates.
  • Chore: Updated the example controller registration manifest to bundle the latest version of the Helm chart.

Model: gemini-2.5-pro | Prompt Tokens: 13672 | Completion Tokens: 156

@github-actions github-actions bot removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Sep 23, 2025
Copy link
Contributor

@hebelsan hebelsan left a comment

Choose a reason for hiding this comment

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

/lgtm

@gardener-robot gardener-robot added reviewed/lgtm Has approval for merging and removed needs/review Needs review labels Sep 23, 2025
@gardener-robot-ci-3 gardener-robot-ci-3 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Sep 23, 2025
@github-actions github-actions bot removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Sep 23, 2025
@kon-angelo kon-angelo merged commit 3c92249 into gardener:master Sep 23, 2025
67 checks passed
@kon-angelo kon-angelo deleted the fix-chart-fg branch September 23, 2025 09:08
@gardener-robot gardener-robot added the status/closed Issue is closed (either delivered or triaged) label Sep 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/control-plane Control plane related kind/enhancement Enhancement, improvement, extension needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) platform/azure Microsoft Azure platform/infrastructure reviewed/lgtm Has approval for merging size/xs Size of pull request is tiny (see gardener-robot robot/bots/size.py) status/closed Issue is closed (either delivered or triaged)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants