Support extended pod logging options
Increase the supported controls on pod logging. Add validaiton to pod log options. Ensure the Kubelet is using a consistent, structured way to process pod log arguments. Add ?sinceSeconds=<durationInSeconds>, &sinceTime=<RFC3339>, ?timestamps=<bool>, ?tailLines=<number>, and ?limitBytes=<number>
This commit is contained in:
@@ -533,8 +533,13 @@ _kubectl_logs()
|
||||
flags+=("--follow")
|
||||
flags+=("-f")
|
||||
flags+=("--interactive")
|
||||
flags+=("--limit-bytes=")
|
||||
flags+=("--previous")
|
||||
flags+=("-p")
|
||||
flags+=("--since=")
|
||||
flags+=("--since-time=")
|
||||
flags+=("--tail=")
|
||||
flags+=("--timestamps")
|
||||
|
||||
must_have_one_flag=()
|
||||
must_have_one_noun=()
|
||||
|
Reference in New Issue
Block a user