Skip to content

Commit

Permalink
Fix all log command (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
rothgar authored Oct 23, 2023
1 parent 6706e2d commit 6d9f78e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ func logs(cmd *cobra.Command, args []string) error {

// we only look at the first argument to determine if it is a control plane log source or node
logTarget := args[0]
if logTarget == "all" {
args = args[1:]
args = append(args, "scheduler", "kube-apiserver-audit", "kube-controller-manager", "kube-apiserver", "authenticator", "cloud-controller-manager")
}

logsChan := make(chan string)
logsDoneChan := make(chan bool, len(args))

Expand Down Expand Up @@ -89,11 +94,6 @@ func logs(cmd *cobra.Command, args []string) error {
// check first argument if it is a control plane log source or node
if contains(cloudwatchLogStreams, logTarget) || (logTarget == "all") {

if logTarget == "all" {
args = args[1:]
args = append(args, "scheduler", "kube-apiserver-audit", "kube-controller-manager", "kube-apiserver", "authenticator", "cloud-controller-manager")
}

var cwlStreamInput cloudwatchlogs.DescribeLogStreamsInput
var streams *cloudwatchlogs.DescribeLogStreamsOutput
var limit int32 = 100
Expand Down

0 comments on commit 6d9f78e

Please sign in to comment.