Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
theodolite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sören Henning
theodolite
Commits
0fe325cc
Commit
0fe325cc
authored
3 years ago
by
Benedikt Wetzel
Committed by
Sören Henning
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
clean up
parent
2306069d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
4 merge requests
!159
Re-implementation of Theodolite with Kotlin/Quarkus
,
!157
Update Graal Image in CI pipeline
,
!156
Update fabric8
,
!83
WIP: Re-implementation of Theodolite with Kotlin/Quarkus
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theodolite-quarkus/src/test/kotlin/theodolite/execution/operator/ControllerDummy.kt
+1
-19
1 addition, 19 deletions
...t/kotlin/theodolite/execution/operator/ControllerDummy.kt
with
1 addition
and
19 deletions
theodolite-quarkus/src/test/kotlin/theodolite/execution/operator/ControllerDummy.kt
+
1
−
19
View file @
0fe325cc
...
@@ -4,7 +4,6 @@ import io.fabric8.kubernetes.client.NamespacedKubernetesClient
...
@@ -4,7 +4,6 @@ import io.fabric8.kubernetes.client.NamespacedKubernetesClient
import
io.fabric8.kubernetes.client.dsl.MixedOperation
import
io.fabric8.kubernetes.client.dsl.MixedOperation
import
io.fabric8.kubernetes.client.dsl.Resource
import
io.fabric8.kubernetes.client.dsl.Resource
import
io.fabric8.kubernetes.internal.KubernetesDeserializer
import
io.fabric8.kubernetes.internal.KubernetesDeserializer
import
theodolite.k8s.K8sContextFactory
import
theodolite.model.crd.BenchmarkCRD
import
theodolite.model.crd.BenchmarkCRD
import
theodolite.model.crd.BenchmarkExecutionList
import
theodolite.model.crd.BenchmarkExecutionList
import
theodolite.model.crd.ExecutionCRD
import
theodolite.model.crd.ExecutionCRD
...
@@ -18,24 +17,9 @@ private const val BENCHMARK_PLURAL = "benchmarks"
...
@@ -18,24 +17,9 @@ private const val BENCHMARK_PLURAL = "benchmarks"
private
const
val
API_VERSION
=
"v1"
private
const
val
API_VERSION
=
"v1"
private
const
val
GROUP
=
"theodolite.com"
private
const
val
GROUP
=
"theodolite.com"
class
ControllerDummy
(
val
client
:
NamespacedKubernetesClient
)
{
class
ControllerDummy
(
client
:
NamespacedKubernetesClient
)
{
private
var
controller
:
TheodoliteController
private
var
controller
:
TheodoliteController
val
executionContext
=
K8sContextFactory
()
.
create
(
API_VERSION
,
SCOPE
,
GROUP
,
EXECUTION_PLURAL
)
val
benchmarkContext
=
K8sContextFactory
()
.
create
(
API_VERSION
,
SCOPE
,
GROUP
,
BENCHMARK_PLURAL
)
val
executionStateHandler
=
ExecutionStateHandler
(
val
executionStateHandler
=
ExecutionStateHandler
(
client
=
client
client
=
client
)
)
...
@@ -61,13 +45,11 @@ class ControllerDummy(val client: NamespacedKubernetesClient) {
...
@@ -61,13 +45,11 @@ class ControllerDummy(val client: NamespacedKubernetesClient) {
ExecutionCRD
,
ExecutionCRD
,
BenchmarkExecutionList
,
BenchmarkExecutionList
,
Resource
<
ExecutionCRD
>>
=
client
.
customResources
(
Resource
<
ExecutionCRD
>>
=
client
.
customResources
(
executionContext
,
ExecutionCRD
::
class
.
java
,
ExecutionCRD
::
class
.
java
,
BenchmarkExecutionList
::
class
.
java
BenchmarkExecutionList
::
class
.
java
)
)
val
benchmarkCRDClient
=
client
.
customResources
(
val
benchmarkCRDClient
=
client
.
customResources
(
benchmarkContext
,
BenchmarkCRD
::
class
.
java
,
BenchmarkCRD
::
class
.
java
,
KubernetesBenchmarkList
::
class
.
java
KubernetesBenchmarkList
::
class
.
java
)
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment