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

Delete controllers package #270

Merged
merged 14 commits into from
Apr 27, 2020
Prev Previous commit
Next Next commit
skip node owners
  • Loading branch information
rbren committed Apr 24, 2020
commit d9ca8c9d734ffc85f079caa4a97a47e2e29ad07c
3 changes: 3 additions & 0 deletions pkg/kube/workload.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ func NewGenericWorkload(originalResource kubeAPICoreV1.Pod, dynamicClientPointer
logrus.Warn("More than 1 owner found")
}
firstOwner := owners[0]
if firstOwner.Kind == "Node" {
break
}
workload.Kind = firstOwner.Kind
workload.Name = firstOwner.Name

Expand Down