Skip to content

Commit

Permalink
fixed cpu and memory should not show init containers by default
Browse files Browse the repository at this point in the history
  • Loading branch information
NimbleArchitect committed Sep 19, 2022
1 parent 35bc486 commit 9dedba0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pkg/plugin/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ func (b *RowBuilder) SetFlagsFrom(commonFlagList commonFlags) {
b.columnByNames = strings.Split(columnNames, ",")
}

if commonFlagList.showInitContainers {
b.ShowInitContainers = true
}

}

func (b RowBuilder) HasStdinChanged() (bool, error) {
Expand Down
1 change: 0 additions & 1 deletion pkg/plugin/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ func Resources(cmd *cobra.Command, kubeFlags *genericclioptions.ConfigFlags, arg

builder := RowBuilder{}
builder.LoopSpec = true
builder.ShowInitContainers = true
builder.PodName = args

connect := Connector{}
Expand Down

0 comments on commit 9dedba0

Please sign in to comment.