Merge pull request #103003 from sschne/bugfix/fix-required-pathtype

remove omitempty tag from PathType
This commit is contained in:
Kubernetes Prow Robot 2021-06-27 23:17:25 -07:00 committed by GitHub
commit d9ef459918
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -11159,6 +11159,7 @@
} }
}, },
"required": [ "required": [
"pathType",
"backend" "backend"
], ],
"type": "object" "type": "object"

View File

@ -426,7 +426,7 @@ type HTTPIngressPath struct {
// the IngressClass. Implementations can treat this as a separate PathType // the IngressClass. Implementations can treat this as a separate PathType
// or treat it identically to Prefix or Exact path types. // or treat it identically to Prefix or Exact path types.
// Implementations are required to support all path types. // Implementations are required to support all path types.
PathType *PathType `json:"pathType,omitempty" protobuf:"bytes,3,opt,name=pathType"` PathType *PathType `json:"pathType" protobuf:"bytes,3,opt,name=pathType"`
// Backend defines the referenced service endpoint to which the traffic // Backend defines the referenced service endpoint to which the traffic
// will be forwarded to. // will be forwarded to.