Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/enhancement Improvements or new features
Projects
None yet
Development

No branches or pull requests

2 participants