Unverified Commit 8388bd43 authored by Sonia Singla's avatar Sonia Singla Committed by GitHub
Browse files

Remove unused function newPod and imported files (#1761)

Signed-off-by: default avatarSonia Singla <soniasingla.1812@gmail.com>
Co-authored-by: default avatarxixi <i@hexilee.me>
parent 24cf4d48
Showing with 0 additions and 31 deletions
+0 -31
......@@ -18,8 +18,6 @@ import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"sigs.k8s.io/controller-runtime/pkg/envtest"
"github.com/chaos-mesh/chaos-mesh/pkg/config"
......@@ -109,32 +107,3 @@ var _ = Describe("Namespace-scoped Chaos", func() {
})
})
})
// TODO: reuse this function
func newPod(
name string,
status v1.PodPhase,
namespace string,
ans map[string]string,
ls map[string]string,
nodename string,
) v1.Pod {
return v1.Pod{
TypeMeta: metav1.TypeMeta{
Kind: "Pod",
APIVersion: "v1",
},
ObjectMeta: metav1.ObjectMeta{
Name: name,
Namespace: namespace,
Labels: ls,
Annotations: ans,
},
Spec: v1.PodSpec{
NodeName: nodename,
},
Status: v1.PodStatus{
Phase: status,
},
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment