Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions controller/controller_test_helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ func updateMachineBootstrapSecret(ctx context.Context, name, bootstrapSecretName
Expect(k8sClient.Update(ctx, machine)).To(Succeed())
}

func updateMachineControlPlaneLabel(ctx context.Context, name, namespace string) {
func updateMachineControlPlaneLabel(ctx context.Context, name string) {
machine := &clusterv1.Machine{}
Expect(k8sClient.Get(ctx, client.ObjectKey{Name: name, Namespace: namespace}, machine)).To(Succeed())
Expect(k8sClient.Get(ctx, client.ObjectKey{Name: name, Namespace: "default"}, machine)).To(Succeed())
if machine.Labels == nil {
machine.Labels = map[string]string{}
}
Expand Down
1 change: 1 addition & 0 deletions controller/stackitcluster_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,7 @@ var _ = Describe("StackitCluster Controller", func() {
expectCondition(got.Status.Conditions, infrav1.ClusterCredentialsReadyCondition, metav1.ConditionTrue, "Available")
})

//nolint:dupl // Pause behavior must be verified independently for the cluster reconciler.
It("does not call the cloud API when the owning Cluster is paused", func() {
cluster := &clusterv1.Cluster{}
Expect(k8sClient.Get(ctx, types.NamespacedName{Name: clusterName, Namespace: namespace}, cluster)).To(Succeed())
Expand Down
Loading
Loading