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
75e2dc63
Commit
75e2dc63
authored
2 years ago
by
Sören Henning
Browse files
Options
Downloads
Patches
Plain Diff
Support patching load generator from resources and sut from load dimension
parent
40b904ee
No related branches found
No related tags found
No related merge requests found
Pipeline
#10432
passed
2 years ago
Stage: build
Stage: test
Stage: check
Stage: deploy
Stage: smoketest
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theodolite/src/main/kotlin/rocks/theodolite/kubernetes/KubernetesBenchmarkDeploymentBuilder.kt
+16
-5
16 additions, 5 deletions
...dolite/kubernetes/KubernetesBenchmarkDeploymentBuilder.kt
with
16 additions
and
5 deletions
theodolite/src/main/kotlin/rocks/theodolite/kubernetes/KubernetesBenchmarkDeploymentBuilder.kt
+
16
−
5
View file @
75e2dc63
...
@@ -40,14 +40,25 @@ class KubernetesBenchmarkDeploymentBuilder (val kubernetesBenchmark: KubernetesB
...
@@ -40,14 +40,25 @@ class KubernetesBenchmarkDeploymentBuilder (val kubernetesBenchmark: KubernetesB
val
appResources
=
loadKubernetesResources
(
kubernetesBenchmark
.
sut
.
resources
,
this
.
client
).
toResourceMap
()
val
appResources
=
loadKubernetesResources
(
kubernetesBenchmark
.
sut
.
resources
,
this
.
client
).
toResourceMap
()
val
loadGenResources
=
loadKubernetesResources
(
kubernetesBenchmark
.
loadGenerator
.
resources
,
this
.
client
).
toResourceMap
()
val
loadGenResources
=
loadKubernetesResources
(
kubernetesBenchmark
.
loadGenerator
.
resources
,
this
.
client
).
toResourceMap
()
// patch the load dimension
the resources
// patch the load dimension
loadPatcherDefinitions
.
forEach
{
patcherDefinition
->
loadPatcherDefinitions
.
forEach
{
patcherDefinition
->
loadGenResources
[
patcherDefinition
.
resource
]
=
if
(
appResources
.
keys
.
contains
(
patcherDefinition
.
resource
))
{
PatchHandler
.
patchResource
(
loadGenResources
,
patcherDefinition
,
load
.
toString
())
appResources
[
patcherDefinition
.
resource
]
=
PatchHandler
.
patchResource
(
appResources
,
patcherDefinition
,
load
.
toString
())
}
else
{
loadGenResources
[
patcherDefinition
.
resource
]
=
PatchHandler
.
patchResource
(
loadGenResources
,
patcherDefinition
,
load
.
toString
())
}
}
}
// patch the resource dimension
resourcePatcherDefinitions
.
forEach
{
patcherDefinition
->
resourcePatcherDefinitions
.
forEach
{
patcherDefinition
->
appResources
[
patcherDefinition
.
resource
]
=
if
(
appResources
.
keys
.
contains
(
patcherDefinition
.
resource
))
{
PatchHandler
.
patchResource
(
appResources
,
patcherDefinition
,
resource
.
toString
())
appResources
[
patcherDefinition
.
resource
]
=
PatchHandler
.
patchResource
(
appResources
,
patcherDefinition
,
resource
.
toString
())
}
else
{
loadGenResources
[
patcherDefinition
.
resource
]
=
PatchHandler
.
patchResource
(
loadGenResources
,
patcherDefinition
,
resource
.
toString
())
}
}
}
// Patch the given overrides
// Patch the given overrides
...
...
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