Method: Cloud::Sh::Commands::K8sTail#command

Defined in:
lib/cloud/sh/commands/k8s_tail.rb

#commandObject



15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/cloud/sh/commands/k8s_tail.rb', line 15

def command
  [
    exe,
    "^" + (options[:pod] == "all" ? "." : options[:pod]),
    "--context #{options[:context]}",
    "--namespace #{options[:namespace]}",
    "--regex",
    "--tail #{options[:tail]}",
    "--since 240h",
    "--colored-output pod",
    "--follow true"
  ].join(" ")
end