Skip to content
Snippets Groups Projects

Introduce action commands

Merged Benedikt Wetzel requested to merge wetzel/spesb:introduce-actionCommands into master
Compare and Show latest version
4 files
+ 19
13
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -47,7 +47,7 @@ class KubernetesBenchmark : KubernetesResource, Benchmark {
var namespace = System.getenv("NAMESPACE") ?: DEFAULT_NAMESPACE
@Transient
var client: NamespacedKubernetesClient = DefaultKubernetesClient().inNamespace(namespace)
private var client: NamespacedKubernetesClient = DefaultKubernetesClient().inNamespace(namespace)
/**
* Loads [KubernetesResource]s.
@@ -125,4 +125,13 @@ class KubernetesBenchmark : KubernetesResource, Benchmark {
client = this.client
)
}
/**
* This function can be used to set the Kubernetes client manually. This is for example necessary for testing.
*
* @param client
*/
fun setClient(client: NamespacedKubernetesClient) {
this.client = client
}
}
Loading