mirror of
https://github.com/paralus/paralus.git
synced 2026-05-24 01:03:00 +00:00
refactor: remove unused func/var/methods (#315)
Signed-off-by: Dhruv Jain <92215138+jaydee029@users.noreply.github.com>
This commit is contained in:
@@ -165,18 +165,6 @@ func getJobState(j *batchv1.Job) (state clusterv2.StepObjectState, reason string
|
||||
return
|
||||
}
|
||||
|
||||
func getPersistentVolumeClaimState(pvc *corev1.PersistentVolumeClaim) (state clusterv2.StepObjectState, reason string) {
|
||||
if pvc.Status.Phase == corev1.ClaimBound {
|
||||
state = clusterv2.StepObjectComplete
|
||||
reason = "claim bound"
|
||||
return
|
||||
}
|
||||
|
||||
state = clusterv2.StepObjectCreated
|
||||
reason = "in progress"
|
||||
return
|
||||
}
|
||||
|
||||
// ObjectState returns the object state of runtime object
|
||||
func ObjectState(o runtime.Object) (state clusterv2.StepObjectState, reason string) {
|
||||
switch o.(type) {
|
||||
|
||||
Reference in New Issue
Block a user