-
Notifications
You must be signed in to change notification settings - Fork 475
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
Add callback to WithPgAdmin to allow customization. #3801
Conversation
* Add callback to WithPgAdmin to allow customization. * Fix const names.
/// <param name="builder">The resource builder for PGAdmin.</param> | ||
/// <param name="port">The port to bind on the host. If null is used random port will be assigned.</param> | ||
/// <returns>The resource builder for PGAdmin.</returns> | ||
public static IResourceBuilder<PgAdminContainerResource> UseHostPort(this IResourceBuilder<PgAdminContainerResource> builder, int? port) |
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.
This is new right? Are we sure Use
is the right prefix here? Seems odd that this method is only available for this resource type.
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.
It's what we do with the other azure resources that have emulators:
public static IResourceBuilder<AzureStorageEmulatorResource> UseBlobPort(this IResourceBuilder<AzureStorageEmulatorResource> builder, int port) |
* Fix WithEnvironment with wrong type constraint. (#3750) * Add WithDataVolume() and WithDataBindMount() APIs to Seq. (#3762) * Add WithDataVolume() and WithDataBindMount() APIs to Seq. * Add callback to WithPgAdmin to allow customization. (#3801) * Add callback to WithPgAdmin to allow customization. * Fix const names. * Fixed NATS volume mounts (#3763) * Fixed NATS volume mounts --------- Co-authored-by: Ziya Suzen <[email protected]>
Related: #3770
This PR modifies the arguments for
WithPgAdmin
to take a callback which allows for a greater array of customization. Usage example:Microsoft Reviewers: Open in CodeFlow