skip resource heavy commands from running on master nodes

This commit is contained in:
chrislu committed 2024-09-29 10:51:17 -07:00
1 parent ec30a504ba
commit 6564ceda91
4 files changed
+10 -6

No files matched your search

+2 -2
View File
@@ -79,8 +79,8 @@ func (c *commandVolumeFsck) Help() string {
`
}
func (c *commandVolumeFsck) HasTag(CommandTag) bool {
return false
func (c *commandVolumeFsck) HasTag(tag CommandTag) bool {
return tag == ResourceHeavy
}
func (c *commandVolumeFsck) Do(args []string, commandEnv *CommandEnv, writer io.Writer) (err error) {