Commit bf5adf39 authored by kalvin's avatar kalvin

环境变量

parent 5c9a00fd
......@@ -6,6 +6,5 @@ COPY run.py .
RUN pip install requests
RUN chmod +x ./run.py
RUN export NAMESPACE=`cat /var/run/secrets/kubernetes.io/serviceaccount/namespace`
CMD ["python", "-c", "run.py"]
\ No newline at end of file
......@@ -2,7 +2,6 @@ import requests
import time
import json
def check():
url = "http://192.168.29.116:9001/api/etcd/get_env_job_status"
querystring = {"namespace": os.getenv('NAMESPACE')}
......@@ -13,7 +12,6 @@ def check():
count = 0
all_job_is_done = False
while True:
res = check()
for instance in res["details"]["instances"]:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment