We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7855e39 commit 5a51c30Copy full SHA for 5a51c30
pkg/pod/pod.go
@@ -184,6 +184,11 @@ func (s *Service) GetDeploymentForPod(pod *v1.Pod) (string, error) {
184
return "", nil
185
}
186
187
+ if ownerRefrence.Kind != "ReplicaSet" {
188
+ // Tortoise only supports Deployment for now, and ReplicaSet is the only controller that can own a pod in this case.
189
+ return "", nil
190
+ }
191
+
192
k := &controllerfetcher.ControllerKeyWithAPIVersion{
193
ControllerKey: controllerfetcher.ControllerKey{
194
Namespace: pod.Namespace,
0 commit comments