litmuschaos / litmus-go

Apache License 2.0
69 stars 122 forks source link

Fix issue with empty Kind field in ParentResource #705

Closed andrusha19 closed 4 months ago

andrusha19 commented 5 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

andrusha19 commented 5 months ago

Hi, @neelanjan00 Could you look at this. It's quite straight forward Thanks

neelanjan00 commented 4 months ago

LGTM! @ispeakc0de can you please review and approve?