Skip to content

Commit

Permalink
e2e: utils.go: remove redundant functions
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Bezukh <[email protected]>
  • Loading branch information
enp0s3 committed Jul 13, 2022
1 parent 3948d52 commit 5a71cdf
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions tests/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, "")

Expand All @@ -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, "")
}
Expand Down Expand Up @@ -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{
Expand Down

0 comments on commit 5a71cdf

Please sign in to comment.