Skip to content

Commit

Permalink
Merge pull request #101 from tengqm/fix-1.17-api-gen
Browse files Browse the repository at this point in the history
Fix generator for 1.17 API reference
  • Loading branch information
k8s-ci-robot authored Dec 25, 2019
2 parents abee8df + 96ddf11 commit b41e64a
Show file tree
Hide file tree
Showing 5 changed files with 4,381 additions and 797 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
WEBROOT=~/src/github.com/kubernetes/website
K8SROOT=~/k8s/src/k8s.io/kubernetes
MINOR_VERSION=16
MINOR_VERSION=17

APISRC=gen-apidocs/generators
APIDST=$(WEBROOT)/static/docs/reference/generated/kubernetes-api/v1.$(MINOR_VERSION)
Expand Down
4 changes: 4 additions & 0 deletions gen-apidocs/generators/api/definition.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,10 @@ func (d *Definition) GetOperationGroupName() string {
if strings.ToLower(d.Group.String()) == "rbac" {
return "RbacAuthorization"
}
if strings.ToLower(d.Group.String()) == "flowcontrol" {
return "FlowcontrolApiserver"
}

return strings.Title(d.Group.String())
}

Expand Down
1 change: 1 addition & 0 deletions gen-apidocs/generators/api/open_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func buildGroupMap(specs []*loads.Document) map[string]string {
mapping["apiregistration"] = "apiregistration.k8s.io"
mapping["apiextensions"] = "apiextensions.k8s.io"
mapping["certificates"] = "certificates.k8s.io"
mapping["flowcontrol"] = "flowcontrol.apiserver.k8s.io"
mapping["meta"] = "meta"
mapping["core"] = "core"
mapping["extensions"] = "extensions"
Expand Down
10 changes: 8 additions & 2 deletions gen-apidocs/generators/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ resource_categories:
version: v1
group: core
- name: EndpointSlice
version: v1alpha1
version: v1beta1
group: discovery
- name: Ingress
version: v1beta1
Expand All @@ -82,7 +82,7 @@ resource_categories:
version: v1beta1
group: storage
- name: CSINode
version: v1beta1
version: v1
group: storage
- name: Secret
version: v1
Expand Down Expand Up @@ -164,6 +164,9 @@ resource_categories:
- name: ComponentStatus
version: v1
group: core
- name: FlowSchema
version: v1alpha1
group: flowcontrol
- name: Lease
version: v1
group: coordination
Expand All @@ -180,6 +183,9 @@ resource_categories:
version: v1
group: core
description_note: "These are assigned to <a href=\"#pod-v1-core\">Pods</a> using <a href=\"#persistentvolumeclaim-v1-core\">PersistentVolumeClaims</a>."
- name: PriorityLevelConfiguration
version: v1alpha1
group: flowcontrol
- name: ResourceQuota
version: v1
group: core
Expand Down
Loading

0 comments on commit b41e64a

Please sign in to comment.