Skip to content

Commit

Permalink
fix(lifecycle-operator): remove recreate of default namespace
Browse files Browse the repository at this point in the history
Signed-off-by: realanna <[email protected]>
  • Loading branch information
RealAnna committed Sep 20, 2023
1 parent 0cf7d74 commit 980562c
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions lifecycle-operator/test/component/evaluation/evaluation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,6 @@ var _ = Describe("Evaluation", Ordered, func() {
common.LogErrorIfPresent(err)
})
It("KeptnEvaluationController Should succeed, as it finds KeptnEvaluationDefinition in default KLT namespace", func() {
By("create default KLT namespace")

ns := &v1.Namespace{
ObjectMeta: metav1.ObjectMeta{
Name: KLTnamespace,
},
}
err := k8sClient.Create(context.TODO(), ns)
Expect(err).To(BeNil())

By("Create EvaluationDefiniton")

evaluationDefinition = makeEvaluationDefinition(evaluationDefinitionName, KLTnamespace, metricName)
Expand All @@ -130,7 +120,7 @@ var _ = Describe("Evaluation", Ordered, func() {
By("Update KeptnMetric to have status")

metric2 := &metricsapi.KeptnMetric{}
err = k8sClient.Get(context.TODO(), types.NamespacedName{
err := k8sClient.Get(context.TODO(), types.NamespacedName{
Namespace: KLTnamespace,
Name: metric.Name,
}, metric2)
Expand Down

0 comments on commit 980562c

Please sign in to comment.