Commit cc2fdd98 authored by Muhammad Bilal's avatar Muhammad Bilal
Browse files

added pod labels and modified kaniko image

parent 3ed1832a
Showing with 4 additions and 2 deletions
+4 -2
......@@ -192,10 +192,12 @@ fn run_kubernetes_container(
new_random_string(8)
);
let mut args: Vec<String> = Vec::with_capacity(9);
let s = container_id.clone();
args.push("run".to_string());
args.push("--restart=Never".to_string());
args.push(container_id);
args.push(format!("--labels=app={},type=plugin", container_id.clone()));
args.push(s.clone());
args.push(format!("--labels=app={},type=plugin", s.clone()));
args.push("--port=8080".to_string());
args.push(format!("--image={}", container_image));
args.push(format!(
"--env=POD_FULL_ADDRESS={}",
......
Supports Markdown
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