|
54 | 54 | padMaxHeightParam = true |
55 | 55 | showAllPanels bool |
56 | 56 | ignoreRESTErrors bool |
| 57 | + disablePadding bool |
57 | 58 | monitorCluster bool |
58 | 59 | additionalMonitorMsg = pressAdditional |
59 | 60 | expandedPanel = "" |
@@ -161,6 +162,10 @@ Use --show-panels to show all available panels.`, |
161 | 162 | return err |
162 | 163 | } |
163 | 164 |
|
| 165 | + if disablePadding { |
| 166 | + padMaxHeightParam = false |
| 167 | + } |
| 168 | + |
164 | 169 | // check for default layouts |
165 | 170 | if l, ok := defaultMap[layoutParam]; ok { |
166 | 171 | layoutParam = l |
@@ -1338,6 +1343,7 @@ func init() { |
1338 | 1343 | monitorClusterCmd.Flags().StringVarP(&layoutParam, "layout", "l", defaultLayoutName, "layout to use") |
1339 | 1344 | monitorClusterCmd.Flags().BoolVarP(&showAllPanels, "show-panels", "", false, "show all available panels") |
1340 | 1345 | monitorClusterCmd.Flags().BoolVarP(&ignoreRESTErrors, "ignore-errors", "I", false, "ignore errors after initial refresh") |
| 1346 | + monitorClusterCmd.Flags().BoolVarP(&disablePadding, "disable-padding", "D", false, "disable padding of panels by default") |
1341 | 1347 | monitorClusterCmd.Flags().StringVarP(&serviceName, serviceNameOption, "S", "", serviceNameDescription) |
1342 | 1348 | monitorClusterCmd.Flags().StringVarP(&selectedCache, "cache-name", "C", "", "cache name") |
1343 | 1349 | monitorClusterCmd.Flags().StringVarP(&selectedTopic, "topic-name", "T", "", "topic name") |
|
0 commit comments