Skip to content

Commit

Permalink
Fix secret outputs for k8s multicloud example (pulumi#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
lblackstone committed Aug 7, 2019
1 parent 816efc0 commit b367a7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions kubernetes-ts-multicloud/aks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ export class AksCluster extends pulumi.ComponentResource {
super("examples:kubernetes-ts-multicloud:AksCluster", name, {}, opts);

// Generate a strong password for the Service Principal.
const password = pulumi.secret(new random.RandomString("password", {
const password = new random.RandomString("password", {
length: 20,
special: true,
}, {parent: this}).result);
}, {parent: this, additionalSecretOutputs: ["result"]}).result;

// Create an SSH public key that will be used by the Kubernetes cluster.
// Note: We create one here to simplify the demo, but a production deployment would probably pass
Expand Down
4 changes: 2 additions & 2 deletions kubernetes-ts-multicloud/gke.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ export class GkeCluster extends pulumi.ComponentResource {
const engineVersion = gcp.container.getEngineVersions().then(v => v.latestMasterVersion);

// Generate a strong password for the Kubernetes cluster.
const password = pulumi.secret(new random.RandomString("password", {
const password = new random.RandomString("password", {
length: 20,
special: true
}, {parent: this}).result);
}, {parent: this, additionalSecretOutputs: ["result"]}).result;

// Create the GKE cluster.
const k8sCluster = new gcp.container.Cluster("cluster", {
Expand Down

0 comments on commit b367a7c

Please sign in to comment.