Skip to content

Commit

Permalink
Disallow minikube in Helm Chart, Wordpress, and SockShop
Browse files Browse the repository at this point in the history
  • Loading branch information
hausdorff committed Aug 17, 2018
1 parent bb909cf commit e1ae868
Show file tree
Hide file tree
Showing 3 changed files with 860 additions and 939 deletions.
8 changes: 8 additions & 0 deletions kubernetes-ts-helm-wordpress/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import * as pulumi from "@pulumi/pulumi";
import * as k8s from "@pulumi/kubernetes";

// Minikube does not implement services of type `LoadBalancer`; require the user to specify if we're
// running on minikube, and if so, create only services of type ClusterIP.
let config = new pulumi.Config("wordpress");
if (config.require("isMinikube") === "true") {
throw new Error("This example does not yet support minikube");
}

// Deploy the latest version of the stable/wordpress chart.
const wordpress = new k8s.helm.v2.Chart("wpdev", {
repo: "stable",
Expand Down
10 changes: 8 additions & 2 deletions kubernetes-ts-jenkins/index.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
import * as pulumi from "@pulumi/pulumi";
import * as jenkins from "./jenkins";

// Minikube does not implement services of type `LoadBalancer`; require the user to specify if we're
// running on minikube, and if so, create only services of type ClusterIP.
const config = new pulumi.Config("jenkins");
if (config.require("isMinikube") === "true") {
throw new Error("This example does not yet support minikube");
}

const instance = new jenkins.Instance({
name: pulumi.getStack(),
credentials: {
username: config.require("username"),
password: config.require("password"),
password: config.require("password")
},
resources: {
memory: "512Mi",
cpu: "100m",
cpu: "100m"
}
});
Loading

0 comments on commit e1ae868

Please sign in to comment.