Skip to content

Commit

Permalink
Make change in template
Browse files Browse the repository at this point in the history
  • Loading branch information
lblackstone committed Oct 28, 2019
1 parent 9479daa commit 7bcb9e8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
- v1.15.x
- v1.14.x

### Improvements

- Increase maxBuffer for helm template exec. (https://github.com/pulumi/pulumi-kubernetes/pull/864).

## 1.2.3 (October 17, 2019)

### Supported Kubernetes versions
Expand Down Expand Up @@ -60,7 +64,6 @@
- Automatically mark Secret data and stringData as secret. (https://github.com/pulumi/pulumi-kubernetes/pull/803).
- Auto-alias resource apiVersions. (https://github.com/pulumi/pulumi-kubernetes/pull/798).
- Provide detailed error for removed apiVersions. (https://github.com/pulumi/pulumi-kubernetes/pull/809).
- Increase maxBuffer for helm template exec. (https://github.com/pulumi/pulumi-kubernetes/pull/819).

## 1.1.0 (September 18, 2019)

Expand Down
5 changes: 4 additions & 1 deletion pkg/gen/nodejs-templates/helm/v2/helm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,10 @@ export class Chart extends yaml.CollectionComponentResource {
? `--namespace ${shell.quote([cfg.namespace])}`
: "";
const yamlStream = execSync(
`helm template ${chart} --name ${release} --values ${defaultValues} --values ${values} ${namespaceArg}`
`helm template ${chart} --name ${release} --values ${defaultValues} --values ${values} ${namespaceArg}`,
{
maxBuffer: 512 * 1024 * 1024 // 512 MB
},
).toString();
return this.parseTemplate(yamlStream, cfg.transformations, cfg.resourcePrefix, configDeps);
} catch (e) {
Expand Down
4 changes: 3 additions & 1 deletion sdk/nodejs/helm/v2/helm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ export class Chart extends yaml.CollectionComponentResource {
: "";
const yamlStream = execSync(
`helm template ${chart} --name ${release} --values ${defaultValues} --values ${values} ${namespaceArg}`,
{ maxBuffer: 512 * 1024 * 1024 },
{
maxBuffer: 512 * 1024 * 1024 // 512 MB
},
).toString();
return this.parseTemplate(yamlStream, cfg.transformations, cfg.resourcePrefix, configDeps);
} catch (e) {
Expand Down

0 comments on commit 7bcb9e8

Please sign in to comment.