fix request
This commit is contained in:
@@ -18,10 +18,9 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: service
|
- name: service
|
||||||
image: hjacobs/kube-ops-view:2017.0.dev1-d9a1e2b-dirty
|
image: hjacobs/kube-ops-view:latest
|
||||||
args:
|
args:
|
||||||
- --redis-url=redis://kube-ops-view-redis:6379
|
- --redis-url=redis://kube-ops-view-redis:6379
|
||||||
- --debug
|
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ def map_container(cont: dict, pod: dict):
|
|||||||
def request(cluster, path, **kwargs):
|
def request(cluster, path, **kwargs):
|
||||||
if 'timeout' not in kwargs:
|
if 'timeout' not in kwargs:
|
||||||
# sane default timeout
|
# sane default timeout
|
||||||
kwargs['time'] = 5
|
kwargs['timeout'] = 5
|
||||||
return session.get(urljoin(cluster.api_server_url, path), auth=cluster.auth, verify=cluster.ssl_ca_cert, **kwargs)
|
return session.get(urljoin(cluster.api_server_url, path), auth=cluster.auth, verify=cluster.ssl_ca_cert, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user