Use random namespace for mariadb example to allow test parallelism
+import * as k8s from "@pulumi/kubernetes";
import * as pulumi from "@pulumi/pulumi";
import * as random from "@pulumi/random";
@@ -48,7 +49,9 @@ export interface AppConfig {
}
export const appConfig: AppConfig = {
- namespace: config.get("namespace") || "default",
+ namespace:
+ config.get("namespace") ||
+ new k8s.core.v1.Namespace("mariadb-ns").metadata.apply(metadata => metadata.name),
appName: config.get("appName") || "mariadb-app",
metricsEnabled: config.getBoolean("metricsEnabled") || true,
