Skip to content

Commit

Permalink
fix: integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
LeelaChacha committed Sep 29, 2024
1 parent 7846c8e commit cd1080e
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ func registerDefaultLifecycleForKymaWithWatcher(kyma *v1beta2.Kyma, watcher *v1b
Expect(kcpClient.Delete(ctx, issuer)).To(Succeed())
By("Deleting CA Certificate")
Expect(kcpClient.Delete(ctx, caCert)).To(Succeed())
By("Deleting CA Secret")
Expect(kcpClient.Delete(ctx, caSecret)).To(Succeed())
})

BeforeEach(func() {
Expand Down Expand Up @@ -136,8 +138,9 @@ func createCaCertificate() *certmanagerv1.Certificate {
APIVersion: certmanagerv1.SchemeGroupVersion.String(),
},
ObjectMeta: apimetav1.ObjectMeta{
Name: "klm-watcher-serving",
Namespace: istioSystemNs,
Name: "klm-watcher-serving",
Namespace: istioSystemNs,
ResourceVersion: "",
},
Status: certmanagerv1.CertificateStatus{
NotBefore: &apimetav1.Time{Time: time.Now()},
Expand Down Expand Up @@ -175,6 +178,7 @@ func createWatcherCR(managerInstanceName string, statusOnly bool) *v1beta2.Watch
Labels: map[string]string{
shared.ManagedBy: managerInstanceName,
},
ResourceVersion: "",
},
Spec: v1beta2.WatcherSpec{
ServiceInfo: v1beta2.Service{
Expand Down

0 comments on commit cd1080e

Please sign in to comment.