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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sören Henning
theodolite
Commits
0f2eec98
Commit
0f2eec98
authored
Apr 4, 2022
by
Benedikt Wetzel
Browse files
Options
Downloads
Patches
Plain Diff
Enhance code quality by only catching specific exception typ
parent
8bb1c760
No related branches found
No related tags found
1 merge request
!262
Make the clean up of ServiceMonitors optional when Operator is starting
Pipeline
#7566
passed
Apr 4, 2022
Stage: build
Stage: test
Stage: check
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
theodolite/src/main/kotlin/theodolite/execution/operator/ClusterSetup.kt
+4
-2
4 additions, 2 deletions
...main/kotlin/theodolite/execution/operator/ClusterSetup.kt
with
4 additions
and
2 deletions
theodolite/src/main/kotlin/theodolite/execution/operator/ClusterSetup.kt
+
4
−
2
View file @
0f2eec98
package
theodolite.execution.operator
import
io.fabric8.kubernetes.client.KubernetesClientException
import
io.fabric8.kubernetes.client.NamespacedKubernetesClient
import
io.fabric8.kubernetes.client.dsl.MixedOperation
import
io.fabric8.kubernetes.client.dsl.Resource
...
...
@@ -84,8 +85,9 @@ class ClusterSetup(
labelValue
=
"theodolite"
,
context
=
serviceMonitorContext
)
}
catch
(
e
:
Exception
)
{
}
catch
(
e
:
KubernetesClient
Exception
)
{
logger
.
warn
{
"Service monitors could not be cleaned up. It may be that service monitors are not registered by the Kubernetes API."
}
logger
.
debug
{
"Error is: ${e.message}"
}
}
}
}
\ No newline at end of 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