File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ func init() {
4545 namespace = flagSet .String ("namespace" , "" , "(optional) specify the kubernetes namespace to use" )
4646 pod = flagSet .String ("pod" , "" , "(optional) specify a single pod" )
4747 container = flagSet .String ("container" , "" , "(optional) specify a single container" )
48- output = flagSet .String ("o" , "" , "(optional) output advice to file" )
48+ output = flagSet .String ("o" , "" , "(optional) output advice to file" )
4949 docker = flagSet .Bool ("docker" , false , "(optional) using docker deployment" )
5050 )
5151
@@ -87,9 +87,9 @@ func init() {
8787 if * pod != "" {
8888 options = append (options , advise .WithPod (* pod ))
8989 }
90- if * output != "" {
91- options = append (options , advise .WithOutput (* output ))
92- }
90+ if * output != "" {
91+ options = append (options , advise .WithOutput (* output ))
92+ }
9393 if * container != "" || * docker {
9494 if * container != "" {
9595 options = append (options , advise .WithContainer (* container ))
Original file line number Diff line number Diff line change @@ -67,9 +67,9 @@ func K8s(
6767}
6868
6969// Advise generates resource allocation advice for a Kubernetes pod.
70- // The function fetches usage metrics for each container in the pod. It then
71- // checks the usage percentages against thresholds to determine if more or less
72- // of a resource is needed. Advice is generated and either printed to the console
70+ // The function fetches usage metrics for each container in the pod. It then
71+ // checks the usage percentages against thresholds to determine if more or less
72+ // of a resource is needed. Advice is generated and either printed to the console
7373// or output to a file depending on the cfg.Output field.
7474func Advise (ctx context.Context , cfg * scout.Config , pod v1.Pod ) error {
7575 var advice []string
You can’t perform that action at this time.
0 commit comments