mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
Merge pull request #85728 from prksu/make-apiservice.spec.service-optional
Make APIService.spec.service optional in the openapi v2 spec
This commit is contained in:
commit
e28ae9ce09
2
api/openapi-spec/swagger.json
generated
2
api/openapi-spec/swagger.json
generated
@ -20607,7 +20607,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"service",
|
|
||||||
"groupPriorityMinimum",
|
"groupPriorityMinimum",
|
||||||
"versionPriority"
|
"versionPriority"
|
||||||
],
|
],
|
||||||
@ -20778,7 +20777,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"service",
|
|
||||||
"groupPriorityMinimum",
|
"groupPriorityMinimum",
|
||||||
"versionPriority"
|
"versionPriority"
|
||||||
],
|
],
|
||||||
|
@ -48,6 +48,7 @@ type APIServiceSpec struct {
|
|||||||
// on port 443
|
// on port 443
|
||||||
// If the Service is nil, that means the handling for the API groupversion is handled locally on this server.
|
// If the Service is nil, that means the handling for the API groupversion is handled locally on this server.
|
||||||
// The call will simply delegate to the normal handler chain to be fulfilled.
|
// The call will simply delegate to the normal handler chain to be fulfilled.
|
||||||
|
// +optional
|
||||||
Service *ServiceReference
|
Service *ServiceReference
|
||||||
// Group is the API group name this server hosts
|
// Group is the API group name this server hosts
|
||||||
Group string
|
Group string
|
||||||
|
@ -76,6 +76,7 @@ message APIServiceSpec {
|
|||||||
// on port 443
|
// on port 443
|
||||||
// If the Service is nil, that means the handling for the API groupversion is handled locally on this server.
|
// If the Service is nil, that means the handling for the API groupversion is handled locally on this server.
|
||||||
// The call will simply delegate to the normal handler chain to be fulfilled.
|
// The call will simply delegate to the normal handler chain to be fulfilled.
|
||||||
|
// +optional
|
||||||
optional ServiceReference service = 1;
|
optional ServiceReference service = 1;
|
||||||
|
|
||||||
// Group is the API group name this server hosts
|
// Group is the API group name this server hosts
|
||||||
|
@ -48,7 +48,8 @@ type APIServiceSpec struct {
|
|||||||
// on port 443
|
// on port 443
|
||||||
// If the Service is nil, that means the handling for the API groupversion is handled locally on this server.
|
// If the Service is nil, that means the handling for the API groupversion is handled locally on this server.
|
||||||
// The call will simply delegate to the normal handler chain to be fulfilled.
|
// The call will simply delegate to the normal handler chain to be fulfilled.
|
||||||
Service *ServiceReference `json:"service" protobuf:"bytes,1,opt,name=service"`
|
// +optional
|
||||||
|
Service *ServiceReference `json:"service,omitempty" protobuf:"bytes,1,opt,name=service"`
|
||||||
// Group is the API group name this server hosts
|
// Group is the API group name this server hosts
|
||||||
Group string `json:"group,omitempty" protobuf:"bytes,2,opt,name=group"`
|
Group string `json:"group,omitempty" protobuf:"bytes,2,opt,name=group"`
|
||||||
// Version is the API version this server hosts. For example, "v1"
|
// Version is the API version this server hosts. For example, "v1"
|
||||||
|
@ -76,6 +76,7 @@ message APIServiceSpec {
|
|||||||
// on port 443
|
// on port 443
|
||||||
// If the Service is nil, that means the handling for the API groupversion is handled locally on this server.
|
// If the Service is nil, that means the handling for the API groupversion is handled locally on this server.
|
||||||
// The call will simply delegate to the normal handler chain to be fulfilled.
|
// The call will simply delegate to the normal handler chain to be fulfilled.
|
||||||
|
// +optional
|
||||||
optional ServiceReference service = 1;
|
optional ServiceReference service = 1;
|
||||||
|
|
||||||
// Group is the API group name this server hosts
|
// Group is the API group name this server hosts
|
||||||
|
@ -48,7 +48,8 @@ type APIServiceSpec struct {
|
|||||||
// on port 443
|
// on port 443
|
||||||
// If the Service is nil, that means the handling for the API groupversion is handled locally on this server.
|
// If the Service is nil, that means the handling for the API groupversion is handled locally on this server.
|
||||||
// The call will simply delegate to the normal handler chain to be fulfilled.
|
// The call will simply delegate to the normal handler chain to be fulfilled.
|
||||||
Service *ServiceReference `json:"service" protobuf:"bytes,1,opt,name=service"`
|
// +optional
|
||||||
|
Service *ServiceReference `json:"service,omitempty" protobuf:"bytes,1,opt,name=service"`
|
||||||
// Group is the API group name this server hosts
|
// Group is the API group name this server hosts
|
||||||
Group string `json:"group,omitempty" protobuf:"bytes,2,opt,name=group"`
|
Group string `json:"group,omitempty" protobuf:"bytes,2,opt,name=group"`
|
||||||
// Version is the API version this server hosts. For example, "v1"
|
// Version is the API version this server hosts. For example, "v1"
|
||||||
|
Loading…
Reference in New Issue
Block a user