Skip to content

Commit

Permalink
validate participating-sigs as well
Browse files Browse the repository at this point in the history
  • Loading branch information
dims committed Jan 19, 2020
1 parent 35383bb commit c65e917
Show file tree
Hide file tree
Showing 27 changed files with 28 additions and 55 deletions.
2 changes: 0 additions & 2 deletions keps/0001-kubernetes-enhancement-proposal-process.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ authors:
- "@calebamiles"
- "@jbeda"
owning-sig: sig-architecture
participating-sigs:
- kubernetes-wide
reviewers:
- "@timothysc"
approvers:
Expand Down
2 changes: 1 addition & 1 deletion keps/sig-api-machinery/20190226-network-proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors:
- "@anfernee"
owning-sig: sig-api-machinery
participating-sigs:
- sig-networking
- sig-network
- sig-cloud-provider
reviewers:
- TBD
Expand Down
2 changes: 1 addition & 1 deletion keps/sig-api-machinery/20190927-insecure-backend-proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors:
- "@deads2k"
owning-sig: sig-api-machinery
participating-sigs:
- sig-apimachinery
- sig-api-machinery
- sig-auth
- sig-cli
reviewers:
Expand Down
3 changes: 2 additions & 1 deletion keps/sig-auth/20190711-external-credential-providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ authors:
- "@awly"
owning-sig: sig-auth
participating-sigs:
- sig-cli, sig-api-machinery
- sig-cli
- sig-api-machinery
reviewers:
- "@liggitt"
- "@mikedanese"
Expand Down
2 changes: 1 addition & 1 deletion keps/sig-cli/20190920-future-of-kubectl-cp.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors:
- "@sallyom"
owning-sig: sig-cli
participating-sigs:
- sig-Usability
- sig-usability
reviewers:
- "@liggitt"
- "@brendandburns"
Expand Down
6 changes: 0 additions & 6 deletions keps/sig-cloud-provider/0018-testgrid-conformance-e2e.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ owning-sig: sig-cloud-provider
participating-sigs:
- sig-testing
- sig-release
- sig-aws
- sig-azure
- sig-gcp
- sig-ibmcloud
- sig-openstack
- sig-vmware
reviewers:
- TBD
approvers:
Expand Down
4 changes: 0 additions & 4 deletions keps/sig-cloud-provider/20180530-cloud-controller-manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ authors:
- "@hogepodge"
owning-sig: sig-api-machinery
participating-sigs:
- sig-aws
- sig-azure
- sig-cloud-provider
- sig-gcp
- sig-openstack
- sig-storage
reviewers:
- "@andrewsykim"
Expand Down
5 changes: 0 additions & 5 deletions keps/sig-cloud-provider/20180731-cloud-provider-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ owning-sig: sig-cloud-provider
participating-sigs:
- sig-docs
- sig-cluster-lifecycle
- sig-aws
- sig-azure
- sig-gcp
- sig-openstack
- sig-vmware
reviewers:
- "@andrewsykim"
- "@calebamiles"
Expand Down
2 changes: 0 additions & 2 deletions keps/sig-cloud-provider/20190125-out-of-tree-aws.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ title: Support Out-of-Tree AWS Cloud Provider
authors:
- "@andrewsykim"
owning-sig: sig-cloud-provider
participating-sigs:
- sig-aws
reviewers:
- TBD
approvers:
Expand Down
2 changes: 0 additions & 2 deletions keps/sig-cloud-provider/20190125-out-of-tree-gce.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ title: Support Out-of-Tree GCE Cloud Provider
authors:
- "@andrewsykim"
owning-sig: sig-cloud-provider
participating-sigs:
- sig-gcp
reviewers:
- TBD
approvers:
Expand Down
2 changes: 0 additions & 2 deletions keps/sig-cloud-provider/20190125-out-of-tree-ibm.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ title: Support Out-of-Tree IBM Cloud Provider
authors:
- "@andrewsykim"
owning-sig: sig-cloud-provider
participating-sigs:
- sig-ibm
reviewers:
- TBD
approvers:
Expand Down
2 changes: 0 additions & 2 deletions keps/sig-cloud-provider/20190125-out-of-tree-openstack.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ authors:
- "@andrewsykim"
- "@adisky"
owning-sig: sig-cloud-provider
participating-sigs:
- sig-openstack
reviewers:
- "@lingxiankong"
- "@chrigl"
Expand Down
2 changes: 0 additions & 2 deletions keps/sig-cloud-provider/20190125-out-of-tree-vsphere.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ authors:
- "@frapposelli"
- "@andrewsykim"
owning-sig: sig-cloud-provider
participating-sigs:
- sig-vmware
reviewers:
- "@frapposelli"
- "@cantbewong"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@ authors:
owning-sig: sig-cloud-provider
participating-sigs:
- sig-apps
- sig-aws
- sig-azure
- sig-apimachinery
- sig-gcp
- sig-api-machinery
- sig-network
- sig-openstack
- sig-storage
reviewers:
- "@andrewsykim"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors:
- "@andrewsykim"
owning-sig: sig-cloud-provider
participating-sigs:
- sig-apimachinery
- sig-api-machinery
reviewers:
- "@cheftako"
- "@mcrute"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ authors:
- "@feiskyer"
owning-sig: sig-cloud-provider
participating-sigs:
- sig-azure
- sig-storage
reviewers:
- "@khenidak"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ title: Cross resource group nodes
authors:
- "@feiskyer"
owning-sig: sig-cloud-provider
participating-sigs:
- sig-azure
reviewers:
- "@khenidak"
- "@justaugustus"
Expand Down
2 changes: 0 additions & 2 deletions keps/sig-cloud-provider/azure/20190125-out-of-tree-azure.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ authors:
- "@dstrebel"
- "@feiskyer"
owning-sig: sig-cloud-provider
participating-sigs:
- sig-azure
reviewers:
- "@dstrebel"
- "@justaugustus"
Expand Down
1 change: 0 additions & 1 deletion keps/sig-instrumentation/20190425-metrics-watch-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ authors:
owning-sig: sig-instrumentation
participating-sigs:
- sig-autoscaling
- (?)
reviewers:
- TBD
approvers:
Expand Down
2 changes: 1 addition & 1 deletion keps/sig-network/20180612-ipv4-ipv6-dual-stack.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors:
- "feiskyer@"
owning-sig: sig-network
participating-sigs:
- sig-clusterlifecycle
- sig-cluster-lifecycle
reviewers:
- TBD
approvers:
Expand Down
2 changes: 1 addition & 1 deletion keps/sig-node/0009-node-heartbeat.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors:
owning-sig: sig-node
participating-sigs:
- sig-scalability
- sig-apimachinery
- sig-api-machinery
- sig-scheduling
reviewers:
- "@deads2k"
Expand Down
2 changes: 1 addition & 1 deletion keps/sig-release/20190316-rebase-images-to-distroless.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors:
owning-sig: sig-release
participating-sigs:
- sig-release
- cloud-provider
- sig-cloud-provider
reviewers:
- "@tallclair"
approvers:
Expand Down
4 changes: 2 additions & 2 deletions keps/sig-release/20190331-release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors:
- "@jeefy"
owning-sig: sig-release
participating-sigs:
- sig-contribex
- sig-contributor-experience
- sig-docs
reviewers:
- "@spiffxp"
Expand Down Expand Up @@ -162,4 +162,4 @@ A GitHub repo will need to be setup to host code for both the `release-notes` to
new release notes website. Said repo will also need to be integrated with Netlify for hosting. An
initial design idea to power the automatic generation of release notes was to use a Knative pipeline.
This would require a Kubernetes cluster to run on, as well as a GitHub token and webhook registration.
Lastly, a DNS entry will be needed to point to the Netlify site (proposal: relnotes.k8s.io)
Lastly, a DNS entry will be needed to point to the Netlify site (proposal: relnotes.k8s.io)
2 changes: 1 addition & 1 deletion keps/sig-release/k8s-image-promoter.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors:
- "@javier-b-perez"
owning-sig: sig-release
participating-sigs:
- TBD
- wg-k8s-infra
reviewers:
- "@AishSundar"
- "@BenTheElder"
Expand Down
2 changes: 1 addition & 1 deletion keps/sig-scheduling/20190409-resource-quota-ga.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors:
owning-sig: sig-api-machinery
participating-sigs:
- sig-scheduling
- sig-apimachinery
- sig-api-machinery
reviewers:
- "@bsalamat"
- "@k82cn"
Expand Down
4 changes: 2 additions & 2 deletions keps/sig-storage/20190129-csi-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors:
- "@jsafrane"
owning-sig: sig-storage
participating-sigs:
- sig-arch
- sig-architecture
- sig-cluster-lifecycle
reviewers:
- "@saadali"
Expand Down Expand Up @@ -129,4 +129,4 @@ Major milestones in the life cycle of a KEP should be tracked in `Implementation
Major milestones might include

- 2019-01-29 KEP Created
- 2019-01-05 Implementation started
- 2019-01-05 Implementation started
15 changes: 12 additions & 3 deletions pkg/kepval/keps/validations/yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,22 @@ func ValidateStructure(parsed map[interface{}]interface{}) error {
}
fallthrough
case "authors", "reviewers", "approvers":
switch v := value.(type) {
switch values := value.(type) {
case []interface{}:
if len(v) == 0 {
if len(values) == 0 {
return &MustHaveAtLeastOneValue{k}
}
if strings.ToLower(k) == "participating-sigs" {
for _, value := range values {
v := value.(string)
index := sort.SearchStrings(listSIGsAndWGs, v)
if index >= len(listSIGsAndWGs) || listSIGsAndWGs[index] != v {
return &ValueMustBeOneOf{k, v, listSIGsAndWGs}
}
}
}
case interface{}:
return &ValueMustBeListOfStrings{k, v}
return &ValueMustBeListOfStrings{k, values}
}
}
}
Expand Down

0 comments on commit c65e917

Please sign in to comment.