Skip to content

Commit

Permalink
adapt cilium and e2e tests to gardener v1.90.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DockToFuture committed Mar 7, 2024
1 parent a967d3b commit 5295077
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions pkg/controller/actuator_reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ func (a *actuator) Reconcile(ctx context.Context, _ logr.Logger, network *extens
ShootWebhooksResourceName,
*webhookConfig,
cluster,
true,
); err != nil {
return fmt.Errorf("could not reconcile shoot webhooks: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/force_delete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var _ = Describe("Network Extension Tests", Label("Network"), func() {
By("Wait for Shoot to be force-deleted")
ctx, cancel = context.WithTimeout(parentCtx, 10*time.Minute)
defer cancel()
Expect(f.ForceDeleteShootAndWaitForDeletion(ctx, f.Shoot)).To(Succeed())
Expect(f.ForceDeleteShootAndWaitForDeletion(ctx, f.Shoot, f.ShootFramework.SeedClient.Client())).To(Succeed())

By("Network Test status")
Expect(succeeded).To(BeTrue())
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/network_connectivity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ var _ = Describe("Network Extension Tests", Label("Network"), func() {

shootKubeconfigSecret := &corev1.Secret{}
gardenClient := f.GardenClient.Client()
gardenClient.Get(ctx, kubernetesutils.Key(f.Shoot.Namespace, gardenerutils.ComputeShootProjectSecretName(f.Shoot.Name, gardenerutils.ShootProjectSecretSuffixKubeconfig)), shootKubeconfigSecret)
gardenClient.Get(ctx, kubernetesutils.Key(f.Shoot.Namespace, gardenerutils.ComputeShootProjectResourceName(f.Shoot.Name, gardenerutils.ShootProjectSecretSuffixKubeconfig)), shootKubeconfigSecret)
Expect(err).NotTo(HaveOccurred())

f.ShootFramework.ShootClient, err = access.CreateShootClientFromAdminKubeconfig(ctx, f.GardenClient, f.Shoot)
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func testNetwork(ctx context.Context, f *framework.ShootCreationFramework) bool

shootKubeconfigSecret := &corev1.Secret{}
gardenClient := f.GardenClient.Client()
gardenClient.Get(ctx, kubernetesutils.Key(f.Shoot.Namespace, gardenerutils.ComputeShootProjectSecretName(f.Shoot.Name, gardenerutils.ShootProjectSecretSuffixKubeconfig)), shootKubeconfigSecret)
gardenClient.Get(ctx, kubernetesutils.Key(f.Shoot.Namespace, gardenerutils.ComputeShootProjectResourceName(f.Shoot.Name, gardenerutils.ShootProjectSecretSuffixKubeconfig)), shootKubeconfigSecret)
ExpectWithOffset(1, err).NotTo(HaveOccurred())

f.ShootFramework.ShootClient, err = access.CreateShootClientFromAdminKubeconfig(ctx, f.GardenClient, f.Shoot)
Expand Down

0 comments on commit 5295077

Please sign in to comment.