mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-18 16:21:13 +00:00
commit
7673b2d161
@ -148,7 +148,7 @@ func NewCmdLogs(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.C
|
|||||||
},
|
},
|
||||||
Aliases: []string{"log"},
|
Aliases: []string{"log"},
|
||||||
}
|
}
|
||||||
cmd.Flags().BoolVar(&o.AllContainers, "all-containers", o.AllContainers, "Get all containers's logs in the pod(s).")
|
cmd.Flags().BoolVar(&o.AllContainers, "all-containers", o.AllContainers, "Get all containers' logs in the pod(s).")
|
||||||
cmd.Flags().BoolVarP(&o.Follow, "follow", "f", o.Follow, "Specify if the logs should be streamed.")
|
cmd.Flags().BoolVarP(&o.Follow, "follow", "f", o.Follow, "Specify if the logs should be streamed.")
|
||||||
cmd.Flags().BoolVar(&o.Timestamps, "timestamps", o.Timestamps, "Include timestamps on each line in the log output")
|
cmd.Flags().BoolVar(&o.Timestamps, "timestamps", o.Timestamps, "Include timestamps on each line in the log output")
|
||||||
cmd.Flags().Int64Var(&o.LimitBytes, "limit-bytes", o.LimitBytes, "Maximum bytes of logs to return. Defaults to no limit.")
|
cmd.Flags().Int64Var(&o.LimitBytes, "limit-bytes", o.LimitBytes, "Maximum bytes of logs to return. Defaults to no limit.")
|
||||||
|
@ -287,7 +287,7 @@ func TestAnonymousConfig(t *testing.T) {
|
|||||||
_, actualError := actual.Dial(context.Background(), "", "")
|
_, actualError := actual.Dial(context.Background(), "", "")
|
||||||
_, expectedError := expected.Dial(context.Background(), "", "")
|
_, expectedError := expected.Dial(context.Background(), "", "")
|
||||||
if !reflect.DeepEqual(expectedError, actualError) {
|
if !reflect.DeepEqual(expectedError, actualError) {
|
||||||
t.Fatalf("CopyConfig dropped the Dial field")
|
t.Fatalf("AnonymousClientConfig dropped the Dial field")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
actual.Dial = nil
|
actual.Dial = nil
|
||||||
|
Loading…
Reference in New Issue
Block a user