Skip to content

Commit

Permalink
Merge pull request #10 from barsoom/master
Browse files Browse the repository at this point in the history
Support two digit naming schemes for running playground
  • Loading branch information
dbackeus authored Jun 17, 2024
2 parents 0214cf2 + 71a3927 commit eb544dc
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 @@ -1736,8 +1736,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 eb544dc

Please sign in to comment.