Skip to content
Snippets Groups Projects
Commit c1f81841 authored by Benedikt Wetzel's avatar Benedikt Wetzel
Browse files

Enhance naming

parent b2508422
No related branches found
No related tags found
4 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!106Introduce a Theodolite operator,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus
......@@ -11,7 +11,7 @@ import io.fabric8.kubernetes.internal.KubernetesDeserializer
private var DEFAULT_NAMESPACE = "default"
private val logger = KotlinLogging.logger {}
@QuarkusMain(name = "TheodoliteCRDExecutor")
@QuarkusMain(name = "TheodoliteOperator")
object TheodoliteCRDExecutor {
@JvmStatic
fun main(args: Array<String>) {
......@@ -23,29 +23,29 @@ object TheodoliteCRDExecutor {
KubernetesDeserializer.registerCustomKind(
"demo.k8s.io/v1alpha1",
"Benchmarkexecutions",
"theodolite.com/v1alpha1",
"execution",
BenchmarkExecution::class.java
)
KubernetesDeserializer.registerCustomKind(
"demo.k8s.io/v1alpha1",
"Benchmarktype",
"theodolite.com/v1alpha1",
"benchmark",
KubernetesBenchmark::class.java
)
val ExececutionContext = CustomResourceDefinitionContext.Builder()
.withVersion("v1alpha1")
.withScope("Namespaced")
.withGroup("demo.k8s.io")
.withPlural("benchmarkexecutions")
.withGroup("theodolite.com")
.withPlural("executions")
.build()
val TypeContext = CustomResourceDefinitionContext.Builder()
.withVersion("v1alpha1")
.withScope("Namespaced")
.withGroup("demo.k8s.io")
.withPlural("benchmarktypes")
.withGroup("theodolite.com")
.withPlural("benchmarks")
.build()
val informerFactory = client.informers()
......
apiVersion: demo.k8s.io/v1alpha1
kind: Benchmarkexecutions
apiVersion: theodolite.com/v1alpha1
kind: execution
metadata:
name: example-webserver
name: "Theodolite Test Context"
......@@ -24,4 +24,6 @@ execution:
duration: 60
repetitions: 1
restrictions:
- "LowerBound"
\ No newline at end of file
- "LowerBound"
configOverrides:
-
\ No newline at end of file
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: benchmark.theodolite
name: benchmarks.theodolite.com
spec:
group: theodolite
group: theodolite.com
version: v1alpha1
names:
kind: Benchmarktype
plural: benchmarktypes
kind: benchmark
plural: benchmarks
scope: Namespaced
subresources:
status: {}
\ No newline at end of file
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: executions.theodolite
name: executions.theodolite.com
spec:
group: theodolite
group: theodolite.com
version: v1alpha1
names:
kind: Benchmarkexecutions
plural: benchmarkexecutions
kind: execution
plural: executions
scope: Namespaced
subresources:
status: {}
\ No newline at end of file
apiVersion: demo.k8s.io/v1alpha1
kind: Benchmarktype
apiVersion: theodolite.com/v1alpha1
kind: benchmark
metadata:
name: example-webserver
name: "theodolite ist cool"
......
quarkus.package.main-class=TheodoliteCRDExecutor
\ No newline at end of file
quarkus.package.main-class=TheodoliteOperator
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment