lib/vidar/cli.rb in vidar-1.13.0 vs lib/vidar/cli.rb in vidar-1.13.1
- old
+ new
@@ -95,10 +95,10 @@
kubectl_context = options[:kubectl_context] || Config.get!(:kubectl_context)
max_tries = options[:max_tries].to_i
Log.info "Current kubectl context: #{kubectl_context}"
Log.info "Looking for deploy hook..."
- template_name, error, status = Open3.capture3 "kubectl get cronjob deploy-hook-template -n #{Config.get!(:namespace)} -o name --ignore-not-found=true"
+ template_name, error, status = Run.kubectl_capture3("get cronjob deploy-hook-template -o name --ignore-not-found=true")
slack_notification = SlackNotification.get
honeycomb_notification = HoneycombNotification.get
if status.success?