Skip to content

Commit

Permalink
Support two digit naming schemes for running playground
Browse files Browse the repository at this point in the history
  • Loading branch information
joakimk committed Jun 17, 2024
1 parent c282aee commit 71a3927
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions k
Original file line number Diff line number Diff line change
Expand Up @@ -1750,8 +1750,8 @@ def playground
node_hostname =
if ARGV.empty?
workers = read_kubectl("get nodes -o name").split("\n")
worker_one = workers.find { |name| name.include?("worker-1") }
abort "Error: no worker-1 node found" unless worker_one
worker_one = workers.find { |name| name.include?("worker-1") || name.include?("worker-01") }
abort "Error: no worker-1 or worker-01 node found" unless worker_one

worker_one = worker_one.delete_prefix("node/")
puts "No node argument provided, defaulting to #{worker_one}"
Expand Down

0 comments on commit 71a3927

Please sign in to comment.