forked from pulumi/examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
various bits of cleanup (pulumi#1259)
* various bits of cleanup * linting errors * lint errors
- Loading branch information
1 parent
5c1dd82
commit e5da914
Showing
13 changed files
with
34 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,26 @@ | ||
// Copyright 2016-2021, Pulumi Corporation. All rights reserved. | ||
import * as pulumi from "@pulumi/pulumi"; | ||
|
||
import * as k8s from "@pulumi/kubernetes"; | ||
|
||
import * as cluster from "./cluster"; | ||
|
||
export let clusterName = cluster.k8sCluster.name; | ||
|
||
export let kubeconfig = cluster.kubeconfig; | ||
export let kubeconfig = pulumi.secret(cluster.kubeconfig); | ||
|
||
const apache = new k8s.helm.v3.Chart( | ||
"apache-chart", | ||
{ | ||
chart: "apache", | ||
version: "8.3.2", | ||
version: "9.1.17", | ||
fetchOpts: { | ||
repo: "https://charts.bitnami.com/bitnami", | ||
}, | ||
}, | ||
{ provider: cluster.k8sProvider }, | ||
); | ||
|
||
export let apacheServiceIP = apache | ||
.getResourceProperty("v1/Service", "apache-chart", "status") | ||
.apply(status => status.loadBalancer.ingress[0].ip); | ||
export let apacheServiceIP = cluster.kubeconfig.apply(kubeconfig => apache | ||
.getResourceProperty("v1/Service", "default", "apache-chart", "status") | ||
.apply(status => status.loadBalancer.ingress[0].ip)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters