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.
Disallow minikube in Helm Chart, Wordpress, and SockShop
- Loading branch information
Showing
3 changed files
with
860 additions
and
939 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,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" | ||
} | ||
}); |
Oops, something went wrong.