Skip to content

Commit

Permalink
Update NodeJS Helm v3 to use native client
Browse files Browse the repository at this point in the history
  • Loading branch information
lblackstone committed Aug 28, 2020
1 parent 1c8399c commit b5b07af
Show file tree
Hide file tree
Showing 47 changed files with 613 additions and 199 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Upgrade to Pulumi v2.9.0, which adds type annotations and input/output classes to Python (https://github.com/pulumi/pulumi-kubernetes/pull/1276)
- Switch Helm v3 logic to use native library. (https://github.com/pulumi/pulumi-kubernetes/pull/1263)
- Bump python requests version dependency. (https://github.com/pulumi/pulumi-kubernetes/pull/1274)
- Update NodeJS Helm v3 to use native client. (https://github.com/pulumi/pulumi-kubernetes/pull/1279)

## 2.5.0 (August 26, 2020)

Expand Down
2 changes: 1 addition & 1 deletion provider/cmd/pulumi-gen-kubernetes/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func writeNodeJSClient(pkg *schema.Package, outdir, templateDir string) {
overlays := map[string][]byte{
"apiextensions/customResource.ts": mustLoadFile(filepath.Join(templateDir, "apiextensions", "customResource.ts")),
"helm/v2/helm.ts": mustLoadFile(filepath.Join(templateDir, "helm", "v2", "helm.ts")),
"helm/v3/helm.ts": mustLoadFile(filepath.Join(templateDir, "helm", "v2", "helm.ts")), // v3 support is currently identical to v2
"helm/v3/helm.ts": mustLoadFile(filepath.Join(templateDir, "helm", "v3", "helm.ts")),
"kustomize/kustomize.ts": mustLoadFile(filepath.Join(templateDir, "kustomize", "kustomize.ts")),
"yaml/yaml.ts": mustRenderTemplate(filepath.Join(templateDir, "yaml", "yaml.tmpl"), templateResources),
}
Expand Down
10 changes: 5 additions & 5 deletions provider/pkg/gen/nodejs-templates/helm/v2/helm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import * as yaml from "../../yaml/index";
* ```typescript
* import * as k8s from "@pulumi/kubernetes";
*
* const nginxIngress = new k8s.helm.v3.Chart("nginx-ingress", {
* const nginxIngress = new k8s.helm.v2.Chart("nginx-ingress", {
* path: "./nginx-ingress",
* });
* ```
Expand All @@ -52,7 +52,7 @@ import * as yaml from "../../yaml/index";
* ```typescript
* import * as k8s from "@pulumi/kubernetes";
*
* const nginxIngress = new k8s.helm.v3.Chart("nginx-ingress", {
* const nginxIngress = new k8s.helm.v2.Chart("nginx-ingress", {
* chart: "nginx-ingress",
* version: "1.24.4",
* fetchOpts:{
Expand All @@ -65,7 +65,7 @@ import * as yaml from "../../yaml/index";
* ```typescript
* import * as k8s from "@pulumi/kubernetes";
*
* const nginxIngress = new k8s.helm.v3.Chart("nginx-ingress", {
* const nginxIngress = new k8s.helm.v2.Chart("nginx-ingress", {
* chart: "nginx-ingress",
* version: "1.24.4",
* fetchOpts:{
Expand All @@ -85,7 +85,7 @@ import * as yaml from "../../yaml/index";
* ```typescript
* import * as k8s from "@pulumi/kubernetes";
*
* const nginxIngress = new k8s.helm.v3.Chart("nginx-ingress", {
* const nginxIngress = new k8s.helm.v2.Chart("nginx-ingress", {
* chart: "nginx-ingress",
* version: "1.24.4",
* namespace: "test-namespace",
Expand All @@ -99,7 +99,7 @@ import * as yaml from "../../yaml/index";
* ```typescript
* import * as k8s from "@pulumi/kubernetes";
*
* const nginxIngress = new k8s.helm.v3.Chart("nginx-ingress", {
* const nginxIngress = new k8s.helm.v2.Chart("nginx-ingress", {
* chart: "nginx-ingress",
* version: "1.24.4",
* fetchOpts:{
Expand Down
Loading

0 comments on commit b5b07af

Please sign in to comment.