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

Feature: Add URL helper to kx.Service #41

Open
lblackstone opened this issue Dec 2, 2019 · 0 comments
Open

Feature: Add URL helper to kx.Service #41

lblackstone opened this issue Dec 2, 2019 · 0 comments
Labels
kind/enhancement Improvements or new features

Comments

@lblackstone
Copy link
Member

It might be useful to include a helper method that generates a complete URL for a Service.

Something along the lines of:

export const url = service.url( { port: "http" });
url: "http://localhost:80"

Currently this can be accomplished manually with something like

export const endpoint = pulumi.interpolate`http://${service.endpoint}:${service.spec.ports[0].targetPort}`;
@lukehoban lukehoban added the kind/enhancement Improvements or new features label Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Improvements or new features
Projects
None yet
Development

No branches or pull requests

2 participants