Skip to content

Commit

Permalink
fix: forbid target img and hotfix
Browse files Browse the repository at this point in the history
Signed-off-by: lijie <lijie@pingcap.com>
  • Loading branch information
jayl1e committed Dec 13, 2023
1 parent 1fef7da commit 79ad448
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tibuild/pkg/rest/service/dev_build_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ func validateReq(req DevBuild) error {
if !hotfixVersionValidator.MatchString((spec.Version)) {
return fmt.Errorf("verion must be like v7.0.0-20230102... for hotfix")
}
if spec.TargetImg != "" {
return fmt.Errorf("target image shall be empty for hotfix")
}
}
return nil
}
Expand Down

0 comments on commit 79ad448

Please sign in to comment.