From e72effbf12ea2d195935f29003ede1b8db62f6e2 Mon Sep 17 00:00:00 2001 From: Simon Schneider Date: Fri, 18 Jun 2021 20:15:50 +0200 Subject: [PATCH] Remove omitempty from PathType Signed-off-by: Simon Schneider --- api/openapi-spec/swagger.json | 1 + staging/src/k8s.io/api/networking/v1/types.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/api/openapi-spec/swagger.json b/api/openapi-spec/swagger.json index 5fb579b192c..db0faa7fba5 100644 --- a/api/openapi-spec/swagger.json +++ b/api/openapi-spec/swagger.json @@ -11156,6 +11156,7 @@ } }, "required": [ + "pathType", "backend" ], "type": "object" diff --git a/staging/src/k8s.io/api/networking/v1/types.go b/staging/src/k8s.io/api/networking/v1/types.go index 003c7e24b82..7edbcd5979e 100644 --- a/staging/src/k8s.io/api/networking/v1/types.go +++ b/staging/src/k8s.io/api/networking/v1/types.go @@ -426,7 +426,7 @@ type HTTPIngressPath struct { // the IngressClass. Implementations can treat this as a separate PathType // or treat it identically to Prefix or Exact 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 // will be forwarded to.