e2e: utils.go: remove redundant functions
@@ -1053,12 +1053,6 @@ func NewRandomVMIWithWatchdog() *v1.VirtualMachineInstance {
return vmi
}
-func NewRandomVMIWithConfigMap(configMapName string) *v1.VirtualMachineInstance {
- vmi := NewRandomVMIWithPVC(DiskAlpineHostPath)
- AddConfigMapDisk(vmi, configMapName, configMapName)
- return vmi
-}
-
func AddConfigMapDisk(vmi *v1.VirtualMachineInstance, configMapName string, volumeName string) {
AddConfigMapDiskWithCustomLabel(vmi, configMapName, volumeName, "")
@@ -1080,12 +1074,6 @@ func AddConfigMapDiskWithCustomLabel(vmi *v1.VirtualMachineInstance, configMapNa
})
}
-func NewRandomVMIWithSecret(secretName string) *v1.VirtualMachineInstance {
- vmi := NewRandomVMIWithPVC(DiskAlpineHostPath)
- AddSecretDisk(vmi, secretName, secretName)
- return vmi
-}
-
func AddSecretDisk(vmi *v1.VirtualMachineInstance, secretName string, volumeName string) {
AddSecretDiskWithCustomLabel(vmi, secretName, volumeName, "")
}
@@ -1145,12 +1133,6 @@ func AddDownwardMetricsVolume(vmi *v1.VirtualMachineInstance, volumeName string)
})
}
-func NewRandomVMIWithServiceAccount(serviceAccountName string) *v1.VirtualMachineInstance {
- vmi := NewRandomVMIWithPVC(DiskAlpineHostPath)
- AddServiceAccountDisk(vmi, serviceAccountName)
- return vmi
-}
-
func AddServiceAccountDisk(vmi *v1.VirtualMachineInstance, serviceAccountName string) {
volumeName := serviceAccountName + "-disk"
vmi.Spec.Volumes = append(vmi.Spec.Volumes, v1.Volume{
