Skip to content

Commit b3022f4

Browse files
committed
api: make approvers required
I chose approvers for the KEP that needed modifcation by plumbing through git history and looking at #1247 which introduced the original KEP
1 parent 0575b02 commit b3022f4

File tree

5 files changed

+42
-5
lines changed

5 files changed

+42
-5
lines changed

api/proposal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ type Proposal struct {
110110
OwningSIG string `json:"owningSig" yaml:"owning-sig" validate:"required"`
111111
ParticipatingSIGs []string `json:"participatingSigs" yaml:"participating-sigs,flow,omitempty"`
112112
Reviewers []string `json:"reviewers" yaml:",flow"`
113-
Approvers []string `json:"approvers" yaml:",flow"`
113+
Approvers []string `json:"approvers" yaml:",flow" validate:"required"`
114114
PRRApprovers []string `json:"prrApprovers" yaml:"prr-approvers,flow"`
115115
Editor string `json:"editor" yaml:"editor,omitempty"`
116116
CreationDate string `json:"creationDate" yaml:"creation-date"`

keps/sig-network/2449-move-externalDNS-out-of-kubernetes-incubator/kep.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@ title: Move ExternalDNS out of Kubernetes incubator
22
kep-number: 2449
33
authors:
44
- "@njuettner"
5+
approvers:
6+
- bowei
7+
- thockin
58
owning-sig: sig-network
69
status: implemented

pkg/repo/repo_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ func TestProposalValidate(t *testing.T) {
7070
file string
7171
errs []error
7272
}{
73+
{
74+
name: "valid KEP: minimum fields",
75+
file: "testdata/valid-kep-minimum.yaml",
76+
errs: nil,
77+
},
7378
{
7479
name: "valid KEP: all fields",
7580
file: "testdata/valid-kep-full.yaml",

pkg/repo/testdata/repos/valid/keps/sig-owns-participates/1-the-bare-minimum/kep.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ status: a non-empty string
99
# creation-date: yyyy-mm-dd
1010
# reviewers:
1111
# - "@beth"
12-
# approvers:
13-
# - "@carolyn"
12+
approvers:
13+
- "@dorothy"
1414
# prr-approvers:
15-
# - "@dorothy"
15+
# - "@carolyn"
1616
# stage: stable
1717
# latest-milestone: v1.4
1818
# milestone:
1919
# alpha: v1.1
2020
# beta: v1.2
21-
# stable: v1.3
21+
# stable: v1.3
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
title: minimal
2+
kep-number: 1337
3+
authors:
4+
- "@jpbetz"
5+
- "@roycaihw"
6+
- "@sttts"
7+
owning-sig: sig-api-machinery
8+
participating-sigs:
9+
- sig-api-machinery
10+
- sig-architecture
11+
reviewers:
12+
- "@deads2k"
13+
- "@lavalamp"
14+
- "@liggitt"
15+
- "@mbohlool"
16+
- "@sttts"
17+
approvers:
18+
- "@deads2k"
19+
- "@lavalamp"
20+
creation-date: 2018-04-15
21+
last-updated: 2018-04-24
22+
status: provisional
23+
24+
stage: beta
25+
latest-milestone: "v1.19"
26+
milestone:
27+
alpha: "v1.19"
28+
beta: "v1.20"
29+
stable: "v1.22"

0 commit comments

Comments
 (0)