Skip to content

Commit

Permalink
api: make approvers required
Browse files Browse the repository at this point in the history
I chose approvers for the KEP that needed modifcation by plumbing
through git history and looking at
kubernetes#1247 which introduced
the original KEP
  • Loading branch information
spiffxp authored and hh committed Dec 7, 2021
1 parent 77182b7 commit c1635f5
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ type Proposal struct {
OwningSIG string `json:"owningSig" yaml:"owning-sig" validate:"required"`
ParticipatingSIGs []string `json:"participatingSigs" yaml:"participating-sigs,flow,omitempty"`
Reviewers []string `json:"reviewers" yaml:",flow"`
Approvers []string `json:"approvers" yaml:",flow"`
Approvers []string `json:"approvers" yaml:",flow" validate:"required"`
PRRApprovers []string `json:"prrApprovers" yaml:"prr-approvers,flow"`
Editor string `json:"editor" yaml:"editor,omitempty"`
CreationDate string `json:"creationDate" yaml:"creation-date"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@ title: Move ExternalDNS out of Kubernetes incubator
kep-number: 2449
authors:
- "@njuettner"
approvers:
- bowei
- thockin
owning-sig: sig-network
status: implemented
5 changes: 5 additions & 0 deletions pkg/repo/repo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ func TestProposalValidate(t *testing.T) {
file string
errs []error
}{
{
name: "valid KEP: minimum fields",
file: "testdata/valid-kep-minimum.yaml",
errs: nil,
},
{
name: "valid KEP: all fields",
file: "testdata/valid-kep-full.yaml",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ status: a non-empty string
# creation-date: yyyy-mm-dd
# reviewers:
# - "@beth"
# approvers:
# - "@carolyn"
approvers:
- "@dorothy"
# prr-approvers:
# - "@dorothy"
# - "@carolyn"
# stage: stable
# latest-milestone: v1.4
# milestone:
# alpha: v1.1
# beta: v1.2
# stable: v1.3
# stable: v1.3
29 changes: 29 additions & 0 deletions pkg/repo/testdata/valid-kep-minimum.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
title: minimal
kep-number: 1337
authors:
- "@jpbetz"
- "@roycaihw"
- "@sttts"
owning-sig: sig-api-machinery
participating-sigs:
- sig-api-machinery
- sig-architecture
reviewers:
- "@deads2k"
- "@lavalamp"
- "@liggitt"
- "@mbohlool"
- "@sttts"
approvers:
- "@deads2k"
- "@lavalamp"
creation-date: 2018-04-15
last-updated: 2018-04-24
status: provisional

stage: beta
latest-milestone: "v1.19"
milestone:
alpha: "v1.19"
beta: "v1.20"
stable: "v1.22"

0 comments on commit c1635f5

Please sign in to comment.