Skip to content

Commit

Permalink
Remove upgrade test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Moss committed Jun 22, 2020
1 parent 1f081d4 commit 828daa3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 119 deletions.
16 changes: 16 additions & 0 deletions controlplane/kubeadm/controllers/scale_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (

. "github.com/onsi/gomega"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/client-go/tools/record"
clusterv1 "sigs.k8s.io/cluster-api/api/v1alpha3"
Expand Down Expand Up @@ -150,3 +151,18 @@ func TestKubeadmControlPlaneReconciler_scaleDownControlPlane_NoError(t *testing.
_, err := r.scaleDownControlPlane(context.Background(), cluster, kcp, controlPlane)
g.Expect(err).ToNot(HaveOccurred())
}

type machineOpt func(*clusterv1.Machine)

func machine(name string, opts ...machineOpt) *clusterv1.Machine {
m := &clusterv1.Machine{
ObjectMeta: metav1.ObjectMeta{
Name: name,
Namespace: "default",
},
}
for _, opt := range opts {
opt(m)
}
return m
}
119 changes: 0 additions & 119 deletions controlplane/kubeadm/controllers/upgrade_test.go

This file was deleted.

0 comments on commit 828daa3

Please sign in to comment.