Skip to content

Commit 3b76e4f

Browse files
sebastienrosCopilot
andcommitted
Fix Kubernetes TypeScript polyglot apphost
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0bc1997 commit 3b76e4f

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

  • tests/PolyglotAppHosts/Aspire.Hosting.Kubernetes/TypeScript

tests/PolyglotAppHosts/Aspire.Hosting.Kubernetes/TypeScript/apphost.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ const helmChartVersion = await builder.addParameter('helm-chart-version');
88

99
const kubernetes = await builder.addKubernetesEnvironment('kube');
1010

11-
await kubernetes.withHelm(async (helm) => {
12-
await helm.withNamespace('validation-namespace');
13-
await helm.withReleaseName('validation-release');
14-
await helm.withChartVersion('1.2.3');
15-
await helm.withNamespaceFromParameter(helmNamespace);
16-
await helm.withReleaseNameFromParameter(helmReleaseName);
17-
await helm.withChartVersionFromParameter(helmChartVersion);
11+
await kubernetes.withHelm({
12+
configure: async (helm) => {
13+
await helm.withNamespace('validation-namespace');
14+
await helm.withReleaseName('validation-release');
15+
await helm.withChartVersion('1.2.3');
16+
await helm.withNamespaceFromParameter(helmNamespace);
17+
await helm.withReleaseNameFromParameter(helmReleaseName);
18+
await helm.withChartVersionFromParameter(helmChartVersion);
19+
},
1820
});
1921

2022
await kubernetes.withProperties(async (environment) => {

0 commit comments

Comments
 (0)