-
Notifications
You must be signed in to change notification settings - Fork 116
feat(backend): add namespaced-cloud-profile-support #2691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
0e2f369 to
a561dff
Compare
a561dff to
674686f
Compare
|
@holgerkoser, @grolu You have pull request review open invite, please check |
| '/projects': projectsRoute, | ||
| '/namespaces/:namespace/shoots': shootsRoute, | ||
| '/namespaces/:namespace/tickets': ticketsRoute, | ||
| '/namespaces/:namespace/cloudprofiles': namespacedCloudProfilesRoute, |
There was a problem hiding this comment.
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)
| '/namespaces/:namespace/cloudprofiles': namespacedCloudProfilesRoute, | |
| '/namespaces/:namespace/namespacedcloudprofiles': namespacedCloudProfilesRoute, |
| import { metricsRoute } from '../middleware.js' | ||
| const { cloudprofiles } = services | ||
|
|
||
| const router = express.Router({ mergeParams: true }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why { mergeParams: true }?
|
The Gardener project currently lacks enough active contributors to adequately respond to all PRs.
You can:
/lifecycle stale |
|
The Gardener project currently lacks enough active contributors to adequately respond to all PRs.
You can:
/lifecycle rotten |
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
readfunction frombackend/lib/services/cloudprofiles.jssince 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: