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
This commit is part of merge request !106. Comments created here will be created in the context of that merge request.
...@@ -11,7 +11,7 @@ import io.fabric8.kubernetes.internal.KubernetesDeserializer ...@@ -11,7 +11,7 @@ import io.fabric8.kubernetes.internal.KubernetesDeserializer
private var DEFAULT_NAMESPACE = "default" private var DEFAULT_NAMESPACE = "default"
private val logger = KotlinLogging.logger {} private val logger = KotlinLogging.logger {}
@QuarkusMain(name = "TheodoliteCRDExecutor") @QuarkusMain(name = "TheodoliteOperator")
object TheodoliteCRDExecutor { object TheodoliteCRDExecutor {
@JvmStatic @JvmStatic
fun main(args: Array<String>) { fun main(args: Array<String>) {
...@@ -23,29 +23,29 @@ object TheodoliteCRDExecutor { ...@@ -23,29 +23,29 @@ object TheodoliteCRDExecutor {
KubernetesDeserializer.registerCustomKind( KubernetesDeserializer.registerCustomKind(
"demo.k8s.io/v1alpha1", "theodolite.com/v1alpha1",
"Benchmarkexecutions", "execution",
BenchmarkExecution::class.java BenchmarkExecution::class.java
) )
KubernetesDeserializer.registerCustomKind( KubernetesDeserializer.registerCustomKind(
"demo.k8s.io/v1alpha1", "theodolite.com/v1alpha1",
"Benchmarktype", "benchmark",
KubernetesBenchmark::class.java KubernetesBenchmark::class.java
) )
val ExececutionContext = CustomResourceDefinitionContext.Builder() val ExececutionContext = CustomResourceDefinitionContext.Builder()
.withVersion("v1alpha1") .withVersion("v1alpha1")
.withScope("Namespaced") .withScope("Namespaced")
.withGroup("demo.k8s.io") .withGroup("theodolite.com")
.withPlural("benchmarkexecutions") .withPlural("executions")
.build() .build()
val TypeContext = CustomResourceDefinitionContext.Builder() val TypeContext = CustomResourceDefinitionContext.Builder()
.withVersion("v1alpha1") .withVersion("v1alpha1")
.withScope("Namespaced") .withScope("Namespaced")
.withGroup("demo.k8s.io") .withGroup("theodolite.com")
.withPlural("benchmarktypes") .withPlural("benchmarks")
.build() .build()
val informerFactory = client.informers() val informerFactory = client.informers()
......
apiVersion: demo.k8s.io/v1alpha1 apiVersion: theodolite.com/v1alpha1
kind: Benchmarkexecutions kind: execution
metadata: metadata:
name: example-webserver name: example-webserver
name: "Theodolite Test Context" name: "Theodolite Test Context"
...@@ -24,4 +24,6 @@ execution: ...@@ -24,4 +24,6 @@ execution:
duration: 60 duration: 60
repetitions: 1 repetitions: 1
restrictions: restrictions:
- "LowerBound" - "LowerBound"
\ No newline at end of file configOverrides:
-
\ No newline at end of file
apiVersion: apiextensions.k8s.io/v1beta1 apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
name: benchmark.theodolite name: benchmarks.theodolite.com
spec: spec:
group: theodolite group: theodolite.com
version: v1alpha1 version: v1alpha1
names: names:
kind: Benchmarktype kind: benchmark
plural: benchmarktypes plural: benchmarks
scope: Namespaced scope: Namespaced
subresources: subresources:
status: {} status: {}
\ No newline at end of file
apiVersion: apiextensions.k8s.io/v1beta1 apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
name: executions.theodolite name: executions.theodolite.com
spec: spec:
group: theodolite group: theodolite.com
version: v1alpha1 version: v1alpha1
names: names:
kind: Benchmarkexecutions kind: execution
plural: benchmarkexecutions plural: executions
scope: Namespaced scope: Namespaced
subresources: subresources:
status: {} status: {}
\ No newline at end of file
apiVersion: demo.k8s.io/v1alpha1 apiVersion: theodolite.com/v1alpha1
kind: Benchmarktype kind: benchmark
metadata: metadata:
name: example-webserver name: example-webserver
name: "theodolite ist cool" name: "theodolite ist cool"
......
quarkus.package.main-class=TheodoliteCRDExecutor quarkus.package.main-class=TheodoliteOperator
\ No newline at end of file \ 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