@@ -85,7 +85,8 @@ type TomlConfig struct {
8585 // Common configuration
8686 UpdateRetry UpdateRetry `toml:"updateRetry"`
8787
88- // RemediationActions and ComponentRemediationActions define a static mapping from healthEvent attributes to MaintenanceResource
88+ // RemediationActions and ComponentRemediationActions define a static mapping
89+ // from healthEvent attributes to MaintenanceResource
8990
9091 // ComponentClass, RecommendedAction -> MaintenanceResource
9192 ComponentRemediationActions ComponentRemediationActions `toml:"componentRemediationActions"`
@@ -145,7 +146,10 @@ func (c *TomlConfig) validateRemediationAction(actionName string, resource Maint
145146 return nil
146147}
147148
148- func (c * TomlConfig ) validateComponentRemediationAction (componentClass , actionName string , resource MaintenanceResource ) error {
149+ func (c * TomlConfig ) validateComponentRemediationAction (
150+ componentClass , actionName string ,
151+ resource MaintenanceResource ,
152+ ) error {
149153 if componentClass == "" {
150154 return fmt .Errorf ("componentRemediationActions must have a non-empty componentClass" )
151155 }
@@ -306,8 +310,8 @@ func (c *TomlConfig) ComponentActionNames(componentClass string) []string {
306310// ResolveStoredMaintenanceResource resolves the maintenance resource for a
307311// remediation entry previously stored in the node annotation.
308312//
309- // Older remediation annotations may not have ComponentClass populated.
310- // When componentClass is unpopulated, we will resolve the action when it is still unambiguous in the current config.
313+ // Older remediation annotations may not have ComponentClass populated.
314+ // When componentClass is unpopulated, we will resolve the action when it is still unambiguous in the current config.
311315// If ambiguous, it will be treated as stale.
312316func (c * TomlConfig ) ResolveStoredMaintenanceResource (componentClass , actionName string ) (MaintenanceResource , bool ) {
313317 if componentClass != "" {
0 commit comments