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
63ef0f8e
Commit
63ef0f8e
authored
4 years ago
by
Lorenz Boguhn
Browse files
Options
Downloads
Patches
Plain Diff
Add loadServiceManager to yaml loader
parent
81c31f08
No related branches found
No related tags found
4 merge requests
!159
Re-implementation of Theodolite with Kotlin/Quarkus
,
!157
Update Graal Image in CI pipeline
,
!83
WIP: Re-implementation of Theodolite with Kotlin/Quarkus
,
!78
Resolve "Implement Quarkus/Kotlin protype"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theodolite-quarkus/src/main/kotlin/theodolite/execution/YamlLoader.kt
+5
-5
5 additions, 5 deletions
...uarkus/src/main/kotlin/theodolite/execution/YamlLoader.kt
with
5 additions
and
5 deletions
theodolite-quarkus/src/main/kotlin/theodolite/execution/YamlLoader.kt
+
5
−
5
View file @
63ef0f8e
...
...
@@ -2,6 +2,7 @@ package theodolite.execution
import
io.fabric8.kubernetes.api.model.ConfigMap
import
io.fabric8.kubernetes.api.model.Service
import
io.fabric8.kubernetes.api.model.apiextensions.v1beta1.CustomResourceDefinition
import
io.fabric8.kubernetes.api.model.apps.Deployment
import
io.fabric8.kubernetes.client.NamespacedKubernetesClient
import
mu.KotlinLogging
...
...
@@ -26,19 +27,18 @@ class YamlLoader(client: NamespacedKubernetesClient) {
return
service
}
/**
* Parses a Service from a servive yaml
* @param path of the yaml file
* @return service from fabric8
*/
fun
loadService
(
path
:
String
):
Service
{
fun
loadService
Monitor
(
path
:
String
):
CustomResourceDefinition
{
val
service
=
loadGenericRessource
(
path
,
{
x
:
String
->
client
.
services
().
load
(
x
).
get
()
})
return
service
val
serviceMonitor
=
loadGenericRessource
(
path
,
{
x
:
String
->
client
.
customResourceDefinitions
().
load
(
x
).
get
()
})
return
serviceMonitor
}
/**
* Parses a Deployment from a Deployment yaml
* @param path of the yaml file
...
...
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