Skip to content

Commit 6f464ad

Browse files
committed
api: validate status:implemented == stage:stable
1 parent a28ce6d commit 6f464ad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

api/proposal.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,9 @@ func (k *KEPHandler) Validate(p *Proposal) []error {
257257
if err := p.Stage.IsValid(); err != nil {
258258
allErrs = append(allErrs, err)
259259
}
260+
if p.Status == ImplementedStatus && p.Stage != StableStage {
261+
allErrs = append(allErrs, fmt.Errorf("status:implemented implies stage:stable but found: %v", p.Stage))
262+
}
260263
return allErrs
261264
}
262265

0 commit comments

Comments
 (0)