https://pulumi.com logo
#general
Title
# general
d

damp-room-71337

09/03/2019, 8:35 AM
anyone know why my ComponentResource doesn’t output
port
, but does correctly include it in
url
?
Copy code
this.hostname = service.metadata.name;
this.port = service.spec.ports.apply(
    ports => ports.find(p => p.name === "http").port
);
this.url = pulumi.interpolate`http://${this.hostname}:${this.port}/`;

this.registerOutputs({
    hostname: this.hostname,
    port: this.port,
    url: this.url
});