tests, cleanup: Remove unused functions
@@ -2905,10 +2905,6 @@ func NewInt32(x int32) *int32 {
return &x
}
-func NewInt64(x int64) *int64 {
- return &x
-}
-
func NewRandomReplicaSetFromVMI(vmi *v1.VirtualMachineInstance, replicas int32) *v1.VirtualMachineInstanceReplicaSet {
name := "replicaset" + rand.String(5)
rs := &v1.VirtualMachineInstanceReplicaSet{
@@ -4730,20 +4726,6 @@ func FormatIPForURL(ip string) string {
return ip
}
-func getClusterDnsServiceIP(virtClient kubecli.KubevirtClient) (string, error) {
- dnsServiceName := "kube-dns"
- dnsNamespace := "kube-system"
- if IsOpenShift() {
- dnsServiceName = "dns-default"
- dnsNamespace = "openshift-dns"
- }
- kubeDNSService, err := virtClient.CoreV1().Services(dnsNamespace).Get(context.Background(), dnsServiceName, metav1.GetOptions{})
- if err != nil {
- return "", err
- }
- return kubeDNSService.Spec.ClusterIP, nil
-}
-
func IsRunningOnKindInfra() bool {
provider := os.Getenv("KUBEVIRT_PROVIDER")
return strings.HasPrefix(provider, "kind")
