lib/command/run_detached.rb in cpl-1.3.0 vs lib/command/run_detached.rb in cpl-1.4.0
- old
+ new
@@ -96,10 +96,11 @@
spec["job"] = { "schedule" => "* * * * *", "restartPolicy" => "Never" }
spec["defaultOptions"]["autoscaling"] = {}
container_spec.delete("ports")
container_spec["env"] ||= []
- container_spec["env"] << { "name" => "CONTROLPLANE_TOKEN", "value" => ControlplaneApiDirect.new.api_token }
+ container_spec["env"] << { "name" => "CONTROLPLANE_TOKEN",
+ "value" => ControlplaneApiDirect.new.api_token[:token] }
container_spec["env"] << { "name" => "CONTROLPLANE_RUNNER", "value" => runner_script }
# Create workload clone
cp.apply_hash("kind" => "workload", "name" => workload_clone, "spec" => spec)
end