Skip to content

Commit

Permalink
chore: Fast failure when the changed configSpec does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
sophon-zt committed Oct 25, 2023
1 parent d740ebb commit 2fa8cc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/apps/operations/reconfigure_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ func processMergedFailed(resource *OpsResource, isInvalid bool, err error) error
// if failed to validate configure, set opsRequest to failed and return
failedCondition := appsv1alpha1.NewReconfigureFailedCondition(resource.OpsRequest, err)
resource.OpsRequest.SetStatusCondition(*failedCondition)
return nil
return &FastFaileError{message: err.Error()}
}

func formatConfigPatchToMessage(configPatch *core.ConfigPatchInfo, execStatus *core.PolicyExecStatus) string {
Expand Down

0 comments on commit 2fa8cc0

Please sign in to comment.