Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with empty Kind field in ParentResource #705

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

andrusha19
Copy link
Contributor

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

Fix issue with empty kind field
Signed-off-by: Andrii Kotelnikov <[email protected]>
@andrusha19
Copy link
Contributor Author

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

@neelanjan00
Copy link
Member

LGTM! @ispeakc0de can you please review and approve?

@ispeakc0de ispeakc0de merged commit 10e9b77 into litmuschaos:master Jun 14, 2024
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pod-delete - TARGET_SELECTION_ERROR with custom parent Kind
3 participants