Ejemplo n.º 1
0
 def get(cls, graph, kind, extractor):
     return cls(graph=graph,
                upstream_proxy=upstream.UpstreamProxy(
                    k8s.ResourceProxyFactory.get(kind)),
                extractor=extractor,
                synchronizer=utils.NodeSynchronizer(graph, create=False),
                resync_period=CONFIG.probes.kubernetes.resync_period)
Ejemplo n.º 2
0
 def get(cls, graph, kind, extractor):
     return cls(graph=graph,
                upstream_proxy=upstream.UpstreamProxy(
                    k8s.ResourceProxyFactory.get(kind)),
                extractor=extractor)