Remove optional from core docs for 'Type' (#88029)

* Remove optional from core docs for 'Type'

* Regenerate protobuf and openapi docs

* Regenerate protobuf and openapi docs
This commit is contained in:
Bismita Guha 2020-02-14 10:40:31 +05:30 committed by GitHub
parent 498b58eff1
commit a20ae3953b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -6955,6 +6955,9 @@
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
},
"io.k8s.api.core.v1.LimitRangeList": {

View File

@ -1921,7 +1921,6 @@ message LimitRange {
// LimitRangeItem defines a min/max usage limit for any resource that matches on kind.
message LimitRangeItem {
// Type of resource that this limit applies to.
// +optional
optional string type = 1;
// Max usage constraints on this kind by resource name.

View File

@ -5209,8 +5209,7 @@ const (
// LimitRangeItem defines a min/max usage limit for any resource that matches on kind.
type LimitRangeItem struct {
// Type of resource that this limit applies to.
// +optional
Type LimitType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type,casttype=LimitType"`
Type LimitType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=LimitType"`
// Max usage constraints on this kind by resource name.
// +optional
Max ResourceList `json:"max,omitempty" protobuf:"bytes,2,rep,name=max,casttype=ResourceList,castkey=ResourceName"`