litmuschaos / litmus-go

Apache License 2.0
66 stars 118 forks source link

Fix issue with empty Kind field in ParentResource #704

Closed andrusha19 closed 3 months ago

andrusha19 commented 3 months ago

Fix issue with empty Kind field in ParentResource

When pod kind is NOT one of [StatefulSet, DaemonSet, ReplicaSet, ReplicaController] then method workloads.GetPodOwnerTypeAndName will return empty kind, but not empty name https://github.com/litmuschaos/litmus-go/blob/master/pkg/workloads/workloads.go#L75

fixes #698