Example #1
0
 def are_linked(self, pod, daemon_set):
     match_namespace = k8s_linker.match_namespace(pod, daemon_set)
     match_selector = k8s_linker.match_selector(pod, daemon_set.properties.selector)
     return match_namespace and match_selector
Example #2
0
 def are_linked(self, replica_set, deployment):
     match_namespace = k8s_linker.match_namespace(replica_set, deployment)
     match_selector = k8s_linker.match_selector(replica_set, deployment.properties.selector)
     return match_namespace and match_selector
Example #3
0
 def are_linked(self, pod, service):
     match_namespace = k8s_linker.match_namespace(pod, service)
     match_selector = k8s_linker.match_selector(pod, service.properties.selector)
     return match_namespace and match_selector