Skip to content

Conversation

@klocke-io
Copy link
Member

@klocke-io klocke-io commented Nov 18, 2025

What this PR does / why we need it:
Add support for namespacedcloudprofiles
Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:
Let's discuss how we want to access the namespacedCloudprofiles, specifically whether we should retrieve them through the cache, as in the current implementation, or obtain them directly.

I also deleted the read function from backend/lib/services/cloudprofiles.js since it seemed to me that the function was not exposed. But happy to add it back, if she is needed, or if I misunderstood something.
Release note:

Add route for namespacedcloudprofiles

@gardener-robot gardener-robot added needs/review Needs review size/L Denotes a PR that changes 100-499 lines, ignoring generated files. needs/second-opinion Needs second review by someone else labels Nov 18, 2025
@klocke-io klocke-io force-pushed the feature/namespaced-cloud-profile-support branch 2 times, most recently from 0e2f369 to a561dff Compare November 18, 2025 15:24
@klocke-io klocke-io force-pushed the feature/namespaced-cloud-profile-support branch from a561dff to 674686f Compare November 19, 2025 08:41
@gardener-robot
Copy link

@holgerkoser, @grolu You have pull request review open invite, please check

@grolu grolu added area/ipcei IPCEI (Important Project of Common European Interest) and removed area/ipcei IPCEI (Important Project of Common European Interest) labels Dec 1, 2025
'/projects': projectsRoute,
'/namespaces/:namespace/shoots': shootsRoute,
'/namespaces/:namespace/tickets': ticketsRoute,
'/namespaces/:namespace/cloudprofiles': namespacedCloudProfilesRoute,
Copy link
Member

Choose a reason for hiding this comment

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

let's align closer to the gardener API (/apis/core.gardener.cloud/v1beta1/namespaces/garden-core/namespacedcloudprofiles)

Suggested change
'/namespaces/:namespace/cloudprofiles': namespacedCloudProfilesRoute,
'/namespaces/:namespace/namespacedcloudprofiles': namespacedCloudProfilesRoute,

import { metricsRoute } from '../middleware.js'
const { cloudprofiles } = services

const router = express.Router({ mergeParams: true })
Copy link
Member

Choose a reason for hiding this comment

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

why { mergeParams: true }?

@gardener-ci-robot
Copy link
Contributor

The Gardener project currently lacks enough active contributors to adequately respond to all PRs.
This bot triages PRs according to the following rules:

  • After 15d of inactivity, lifecycle/stale is applied
  • After 15d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 7d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle stale
  • Mark this PR as rotten with /lifecycle rotten
  • Close this PR with /close

/lifecycle stale

@gardener-robot gardener-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 23, 2025
@gardener-ci-robot
Copy link
Contributor

The Gardener project currently lacks enough active contributors to adequately respond to all PRs.
This bot triages PRs according to the following rules:

  • After 15d of inactivity, lifecycle/stale is applied
  • After 15d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 7d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle rotten
  • Close this PR with /close

/lifecycle rotten

@gardener-robot gardener-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. needs/review Needs review needs/second-opinion Needs second review by someone else size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants