Skip to content

Commit 4790dd8

Browse files
committed
Lint
1 parent e5e65dd commit 4790dd8

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

utils/service_discovery/abstract_config_store.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
INIT_CONFIGS = 'init_configs'
2727
INSTANCES = 'instances'
2828
KUBE_ANNOTATIONS = 'kube_annotations'
29-
KUBE_POD_NAME = 'kube_pod_name'
3029
KUBE_CONTAINER_NAME = 'kube_container_name'
3130
KUBE_ANNOTATION_PREFIX = 'sd.datadoghq.com'
3231

@@ -151,7 +150,6 @@ def get_check_tpls(self, identifier, **kwargs):
151150
# When not using a configuration store on kubernetes, check the pod
152151
# annotations for configs before falling back to autoconf.
153152
kube_annotations = kwargs.get(KUBE_ANNOTATIONS)
154-
kube_pod_name = kwargs.get(KUBE_POD_NAME)
155153
kube_container_name = kwargs.get(KUBE_CONTAINER_NAME)
156154
if kube_annotations:
157155
kube_config = self._get_kube_config(identifier, kube_annotations, kube_container_name)

utils/service_discovery/sd_docker_backend.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,6 @@ def _get_check_configs(self, c_id, identifier):
288288
if Platform.is_k8s():
289289
kube_metadata = self._get_kube_config(inspect.get('Id'), 'metadata') or {}
290290
platform_kwargs = {
291-
'kube_pod_name': kube_metadata.get('name'),
292291
'kube_container_name': self._get_kube_container_name(inspect.get('Id')),
293292
'kube_annotations': kube_metadata.get('annotations'),
294293
}

0 commit comments

Comments
 (0)