Skip to content

Commit

Permalink
Fixed the collector inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjt committed Aug 9, 2024
1 parent 5eaf537 commit 3bfaf63
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 deletions.
3 changes: 2 additions & 1 deletion deploy/applications/collector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export class Collector extends pulumi.ComponentResource {
valueYamlFiles: [new pulumi.asset.FileAsset(args.valuesFile)]
}, { provider: opts.provider! });

this.collectorName = pulumi.output(`${collectorRelease.name}-opentelemetry-collector.${collectorRelease.namespace}`);
this.collectorName = pulumi.interpolate `${collectorRelease.name}-opentelemetry-collector.${collectorRelease.namespace}`;

}
}
26 changes: 10 additions & 16 deletions deploy/applications/oteldemo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,18 @@ export class OtelDemo extends pulumi.ComponentResource {
opts: pulumi.ComponentResourceOptions = {}) {
super("devrel:otel-demo", name, args, opts);

let values = args.collectorHostName.apply(collectorHostName => {
{
return {
"default": {
"replicas": 1,
"blah": collectorHostName,
"envOverrides": [
{
"name": "OTEL_COLLECTOR_NAME",
"value": collectorHostName
}
]
const values =
{
"default": {
"replicas": 1,
"envOverrides": [
{
"name": "OTEL_COLLECTOR_NAME",
"value": args.collectorHostName
}
};
]
}
})

values.apply(console.log);
};

const demoRelease = new Release(`${name}-demo-release`, {
chart: "opentelemetry-demo",
Expand Down

0 comments on commit 3bfaf63

Please sign in to comment.