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 79fcbe6 commit 6b9514cCopy full SHA for 6b9514c
k8smonitor/kubernetes_wrapper.py
@@ -1,5 +1,4 @@
1
import kubernetes
2
-import subprocess
3
4
def discover():
5
config = kubernetes.config
k8smonitor/main.py
@@ -2,6 +2,7 @@
import uuid
import json
import websocket
+
6
from k8smonitor import config
7
from k8smonitor import kubernetes_wrapper
8
@@ -10,7 +11,7 @@
10
11
url = 'ws://%(hostname)s:%(port)s/api/v1/register/%(uuid)s' % {
12
'hostname': config.KUBERNETES_AGENT['HOSTNAME'],
13
'port': config.KUBERNETES_AGENT['PORT'],
- 'uuid': myUuid,
14
+ 'uuid': str(myUuid),
15
}
16
17
print('attempting to connect to %s' % url)
0 commit comments