Skip to content

Conversation

@benedikt-haug
Copy link
Contributor

@benedikt-haug benedikt-haug commented Jun 4, 2025

What this PR does / why we need it:
This PR is part of the Hackaton.
This PR extend the defaults gardener dashboard accepts via configuration.
Additionally, it moves the default declaration to the config store so they are declared in the same spot.
Lastly, it also adds the example folder describing the new additions made possible by the gardener-dashboard-frontend configmap.

Which issue(s) this PR fixes:

Special notes for your reviewer:
/cc @marc1404 @klocke-io

Release note:

**New `shootDefaults` configuration introduced:** A new top-level configuration property, `shootDefaults`, has been added. Existing shoot default settings have been moved under this new namespace:

- `controlPlaneHighAvailabilityHelp` → `shootDefaults.controlPlaneHighAvailabilityHelp`
- `defaultHibernationSchedule` → `shootDefaults.hibernationSchedule`
- `defaultNodesCIDR` → `shootDefaults.nodesCIDR`

The previous configuration locations are now deprecated. Please update your deployments to use the new `shootDefaults` configuration paths.
Improved shoot creation defaults: The Gardener Dashboard now allows predefined default values when creating new shoot resources

@gardener-robot-ci-2
Copy link
Contributor

Thank you @benedikt-haug for your contribution. Before I can start building your PR, a member of the organization must set the required label(s) {'reviewed/ok-to-test'}. Once started, you can check the build status in the PR checks section below.

@gardener-robot
Copy link

@benedikt-haug Thank you for your contribution.

@gardener-robot gardener-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 4, 2025
@klocke-io
Copy link
Member

/ok-to-test

@gardener-robot gardener-robot added the needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Jun 4, 2025
@grolu
Copy link
Contributor

grolu commented Jun 4, 2025

Nice!
Please also have a look at this PR: #2467
Especially the defaultInfrastructures configuration may cause conflicts.

@klocke-io klocke-io added reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) 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 needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Jun 4, 2025
@gardener-robot-ci-2 gardener-robot-ci-2 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 Jun 4, 2025
@grolu
Copy link
Contributor

grolu commented Jun 4, 2025

Maybe it would be better to group the default options under a key in the config, e.g., shootDefaults. This way, we can ensure the config remains clear and all shoot default settings are grouped together. These settings are also likely to grow, so this approach gives us better control.

Additionally, these values need to be added to the Helm charts. Right now, the Helm charts are the only documentation for the dashboard configuration. We should consider introducing a dedicated documentation page for the configuration — but that’s a separate task and not related to this PR.

@klocke-io klocke-io 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 Jun 4, 2025
@gardener-robot-ci-2 gardener-robot-ci-2 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 Jun 4, 2025
@gardener-robot gardener-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. needs/second-opinion Needs second review by someone else and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jun 4, 2025
@benedikt-haug
Copy link
Contributor Author

benedikt-haug commented Jun 4, 2025

Nice! Please also have a look at this PR: #2467 Especially the defaultInfrastructures configuration may cause conflicts.

Sure <3
On quick glance it looks like all it would take to allow user overrides for your new knownInfraVendors array would be to move the defaulting function to store/config.js, just like this PR does for all the other defaults.

Maybe it would be better to group the default options under a key in the config, e.g., shootDefaults. This way, we can ensure the config remains clear and all shoot default settings are grouped together. These settings are also likely to grow, so this approach gives us better control.

Seems reasonable :) Incorporated that feedback. Also moved the "old" variables there, while including a fallback for the users of the old naming scheme so things don't suddenly break.

Additionally, these values need to be added to the Helm charts. Right now, the Helm charts are the only documentation for the dashboard configuration. We should consider introducing a dedicated documentation page for the configuration — but that’s a separate task and not related to this PR.

Added an example like the other repos have it. Also tried to extend the helm charts to feature the new variable. Do you know how to test the charts locally, helm template . ain't working for me?

@grolu
Copy link
Contributor

grolu commented Jun 5, 2025

Do you know how to test the charts locally, helm template . ain't working for me?

We implemented tests for the help charts. You can adapt them and run them with yarn test in the charts directory

@klocke-io klocke-io 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 Jun 6, 2025
@gardener-robot-ci-2 gardener-robot-ci-2 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 Jun 6, 2025
@gardener-robot
Copy link

@holgerkoser, @klocke-io You have pull request review open invite, please check

@benedikt-haug benedikt-haug force-pushed the feature_add_dashboard_defaults branch from 22cfabb to fac17ae Compare January 13, 2026 16:10
@gardener-prow gardener-prow bot removed the do-not-merge/contains-merge-commits Indicates a PR which contains merge commits. label Jan 13, 2026
Copy link
Contributor Author

@benedikt-haug benedikt-haug left a comment

Choose a reason for hiding this comment

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

Hey @grolu,
thanks for having a look :)

I think I've successfully pulled off the rebase :D
Added the configStore to the cloudProfile.

You are correct about my changes being a breaking change. Is announcing this something I'd do in this merge request or something that is written somewhere else?

I personally don't need to change the infrastructure list. I just wanted to move all hardcoded defaults to configstore. I thought that maybe it would be fun to be able to change the sorting to prioritize specific infrastructures or something.

@grolu
Copy link
Contributor

grolu commented Jan 13, 2026

You are correct about my changes being a breaking change. Is announcing this something I'd do in this merge request or something that is written somewhere else?

It is sufficient to mention in the PR description with breaking operator

I personally don't need to change the infrastructure list. I just wanted to move all hardcoded defaults to configstore. I thought that maybe it would be fun to be able to change the sorting to prioritize specific infrastructures or something.

Right, exactly this can now be achieved using weights in the vendor configuration. So I think we can drop the infra defaults in this PR

@benedikt-haug
Copy link
Contributor Author

@grolu
I dropped the whole infrastructure changes as discussed.
Tried to write a good breaking change, please have a look :)

@grolu
Copy link
Contributor

grolu commented Jan 16, 2026

Okay this looks good. I also like that you added configuration examples to the values.yaml.
I polished your release notes to provide some more details.
I will now do some final testing.

@grolu
Copy link
Contributor

grolu commented Jan 16, 2026

Hi @benedikt-haug
I need to do some further checks concerning edge cases, like for example we have some defaulting depending on the selected cloud profile which might limit available purposes. I need to verify if this PR might break things like that. Pease give me some time. I will not be available next week so expect my feedback after that.

@gardener-prow gardener-prow bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 19, 2026
@gardener-prow
Copy link

gardener-prow bot commented Jan 19, 2026

PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/rebase Needs git rebase needs/review Needs review needs/second-opinion Needs second review by someone else needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. status/accepted Issue was accepted as something we need to work on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants