mirror of https://github.com/rancher/dartboard.git
Copy k6 test files over to k8s to run k6 inside of the cluster
Signed-off-by: Silvio Moioli <silvio@moioli.net>
This commit is contained in:
parent
fd74b6bff1
commit
b75d6186d9
|
|
@ -104,6 +104,7 @@ helm_install("rancher-monitoring", RANCHER_MONITORING_CHART, upstreamCluster, "c
|
||||||
systemDefaultRegistry: "",
|
systemDefaultRegistry: "",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
helm_install("k6-files", dir("charts/k6-files"), upstreamCluster, "cattle-monitoring-system", monitoringRestrictions)
|
||||||
|
|
||||||
const uf = `--kubeconfig=${upstreamCluster["kubeconfig"]} --context=${upstreamCluster["context"]}`
|
const uf = `--kubeconfig=${upstreamCluster["kubeconfig"]} --context=${upstreamCluster["context"]}`
|
||||||
run(`kubectl wait deployment/rancher --namespace cattle-system --for condition=Available=true --timeout=1h ${uf}`)
|
run(`kubectl wait deployment/rancher --namespace cattle-system --for condition=Available=true --timeout=1h ${uf}`)
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
apiVersion: v2
|
||||||
|
name: k6-files
|
||||||
|
description: k6 benchmark support files
|
||||||
|
type: application
|
||||||
|
version: 0.1.0
|
||||||
|
appVersion: "0.0.1"
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: k6-test-files
|
||||||
|
data:
|
||||||
|
{{ (.Files.Glob "test-files/*.{js,mjs}").AsConfig | indent 2 }}
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: k6-lib-files
|
||||||
|
data:
|
||||||
|
{{ (.Files.Glob "test-files/lib/*.{js,mjs}").AsConfig | indent 2 }}
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
../../k6
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
# Default values
|
||||||
|
# This is a YAML-formatted file.
|
||||||
|
# Declare variables to be passed into your templates.
|
||||||
Loading…
Reference in New Issue