Skip to content

Commit

Permalink
Address review suggestion
Browse files Browse the repository at this point in the history
Signed-off-by: Rashmi Gottipati <chowdary.grashmi@gmail.com>
  • Loading branch information
rashmigottipati committed Apr 23, 2024
1 parent 99a3981 commit e77c330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kapp/crdupgradesafety/change_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func RequiredFieldChangeValidation(diff FieldDiff) (bool, error) {
}

if len(diff.Old.Required) == 0 && len(diff.New.Required) > 0 {
return handled(), fmt.Errorf("new values added as required when previously no required fields existed")
return handled(), fmt.Errorf("new values added as required when previously no required fields existed: %+v", diff.New.Required)
}

oldSet := sets.NewString()
Expand Down

0 comments on commit e77c330

Please sign in to comment.