Skip to content
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

Multiple bicep extensions that share an implementation #15506

Open
rynowak opened this issue Nov 5, 2024 · 1 comment
Open

Multiple bicep extensions that share an implementation #15506

rynowak opened this issue Nov 5, 2024 · 1 comment
Labels
enhancement New feature or request proposal

Comments

@rynowak
Copy link
Contributor

rynowak commented Nov 5, 2024

Is your feature request related to a problem? Please describe.

As part of Radius we're adding user-defined types resource types. This has an overlapping name with the UDT feature of Bicep, but it's different 😆.

This will allow a user to:

  • Define their own resource types using a simplified YAML format
  • Upload that data to Radius so our API can process it
  • Generate a Bicep extension for local tooling support

This is a lot like Kubernetes CRDs but inside Radius.


The challenge is that there is no "server side" extension in the deployment engine. We need to instead treat these extensions as part of Radius, and let them get processed by the Radius extension in the deployment engine.

Essentially, users are bringing their own type definitions that augment our extension, and can be processed by our extension.

This is extensible, so we can't hardcode names.


As a thought experiment, the Kubernetes extension in Bicep has the same challenge. It only knows about resource types that are in the box, yet Kubernetes is extensible. Any user that wanted to ship a library of Kubernetes types would end up with the same requirements.

Describe the solution you'd like

I think the ideal thing would be an "alias" feature. A way for a client-side extension to instruct the server which extension id should be responsible for processing.

Any solution would be acceptable as long as it...

  • Is extensible by users (no hardcoded names)
  • Doesn't require users to implement server-side Bicep extensions

We have control over our deployment engine code as well, but we'd like to rely on extensibility where possible.

@alex-frankel
Copy link
Collaborator

@rynowak - FYI putting this into our backlog. It likely won't move until your priority changes/you run into roadblocks with your plan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request proposal
Projects
Status: Todo
Development

No branches or pull requests

2 participants