mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
Removed 'Metadata' from all types
This commit is contained in:
parent
808be2d13b
commit
2260b241dc
@ -473,7 +473,7 @@ type PodStatus struct {
|
|||||||
// to hosts.
|
// to hosts.
|
||||||
type Pod struct {
|
type Pod struct {
|
||||||
TypeMeta `json:",inline" yaml:",inline"`
|
TypeMeta `json:",inline" yaml:",inline"`
|
||||||
Metadata ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
|
ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
|
||||||
|
|
||||||
// Spec defines the behavior of a pod.
|
// Spec defines the behavior of a pod.
|
||||||
Spec PodSpec `json:"spec,omitempty" yaml:"spec,omitempty"`
|
Spec PodSpec `json:"spec,omitempty" yaml:"spec,omitempty"`
|
||||||
@ -486,7 +486,7 @@ type Pod struct {
|
|||||||
// PodList is a list of Pods.
|
// PodList is a list of Pods.
|
||||||
type PodList struct {
|
type PodList struct {
|
||||||
TypeMeta `json:",inline" yaml:",inline"`
|
TypeMeta `json:",inline" yaml:",inline"`
|
||||||
Metadata ListMeta `json:"metadata" yaml:"metadata"`
|
ListMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
|
||||||
|
|
||||||
Items []Pod `json:"items" yaml:"items"`
|
Items []Pod `json:"items" yaml:"items"`
|
||||||
}
|
}
|
||||||
@ -494,7 +494,7 @@ type PodList struct {
|
|||||||
// PodTemplateSpec describes the data a pod should have when created from a template
|
// PodTemplateSpec describes the data a pod should have when created from a template
|
||||||
type PodTemplateSpec struct {
|
type PodTemplateSpec struct {
|
||||||
// Metadata of the pods created from this template.
|
// Metadata of the pods created from this template.
|
||||||
Metadata ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
|
ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
|
||||||
|
|
||||||
// Spec defines the behavior of a pod.
|
// Spec defines the behavior of a pod.
|
||||||
Spec PodSpec `json:"spec,omitempty" yaml:"spec,omitempty"`
|
Spec PodSpec `json:"spec,omitempty" yaml:"spec,omitempty"`
|
||||||
@ -503,7 +503,7 @@ type PodTemplateSpec struct {
|
|||||||
// PodTemplate describes a template for creating copies of a predefined pod.
|
// PodTemplate describes a template for creating copies of a predefined pod.
|
||||||
type PodTemplate struct {
|
type PodTemplate struct {
|
||||||
TypeMeta `json:",inline" yaml:",inline"`
|
TypeMeta `json:",inline" yaml:",inline"`
|
||||||
Metadata ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
|
ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
|
||||||
|
|
||||||
// Spec defines the behavior of a pod.
|
// Spec defines the behavior of a pod.
|
||||||
Spec PodTemplateSpec `json:"spec,omitempty" yaml:"spec,omitempty"`
|
Spec PodTemplateSpec `json:"spec,omitempty" yaml:"spec,omitempty"`
|
||||||
@ -512,7 +512,7 @@ type PodTemplate struct {
|
|||||||
// PodTemplateList is a list of PodTemplates.
|
// PodTemplateList is a list of PodTemplates.
|
||||||
type PodTemplateList struct {
|
type PodTemplateList struct {
|
||||||
TypeMeta `json:",inline" yaml:",inline"`
|
TypeMeta `json:",inline" yaml:",inline"`
|
||||||
Metadata ListMeta `json:"metadata" yaml:"metadata"`
|
ListMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
|
||||||
|
|
||||||
Items []PodTemplate `json:"items" yaml:"items"`
|
Items []PodTemplate `json:"items" yaml:"items"`
|
||||||
}
|
}
|
||||||
@ -522,7 +522,7 @@ type PodTemplateList struct {
|
|||||||
// execute a pod, whereas a BoundPod is the specification that would be run on a server.
|
// execute a pod, whereas a BoundPod is the specification that would be run on a server.
|
||||||
type BoundPod struct {
|
type BoundPod struct {
|
||||||
TypeMeta `json:",inline" yaml:",inline"`
|
TypeMeta `json:",inline" yaml:",inline"`
|
||||||
Metadata ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
|
ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
|
||||||
|
|
||||||
// Spec defines the behavior of a pod.
|
// Spec defines the behavior of a pod.
|
||||||
Spec PodSpec `json:"spec,omitempty" yaml:"spec,omitempty"`
|
Spec PodSpec `json:"spec,omitempty" yaml:"spec,omitempty"`
|
||||||
@ -532,7 +532,7 @@ type BoundPod struct {
|
|||||||
// the pod list is guaranteed to only change when the list of bound pods changes.
|
// the pod list is guaranteed to only change when the list of bound pods changes.
|
||||||
type BoundPods struct {
|
type BoundPods struct {
|
||||||
TypeMeta `json:",inline" yaml:",inline"`
|
TypeMeta `json:",inline" yaml:",inline"`
|
||||||
Metadata ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
|
ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
|
||||||
|
|
||||||
// Host is the name of a node that these pods were bound to.
|
// Host is the name of a node that these pods were bound to.
|
||||||
Host string `json:"host" yaml:"host"`
|
Host string `json:"host" yaml:"host"`
|
||||||
@ -564,7 +564,7 @@ type ReplicationControllerStatus struct {
|
|||||||
// ReplicationController represents the configuration of a replication controller.
|
// ReplicationController represents the configuration of a replication controller.
|
||||||
type ReplicationController struct {
|
type ReplicationController struct {
|
||||||
TypeMeta `json:",inline" yaml:",inline"`
|
TypeMeta `json:",inline" yaml:",inline"`
|
||||||
Metadata ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
|
ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
|
||||||
|
|
||||||
// Spec defines the desired behavior of this replication controller.
|
// Spec defines the desired behavior of this replication controller.
|
||||||
Spec ReplicationControllerSpec `json:"spec,omitempty" yaml:"spec,omitempty"`
|
Spec ReplicationControllerSpec `json:"spec,omitempty" yaml:"spec,omitempty"`
|
||||||
@ -577,7 +577,7 @@ type ReplicationController struct {
|
|||||||
// ReplicationControllerList is a collection of replication controllers.
|
// ReplicationControllerList is a collection of replication controllers.
|
||||||
type ReplicationControllerList struct {
|
type ReplicationControllerList struct {
|
||||||
TypeMeta `json:",inline" yaml:",inline"`
|
TypeMeta `json:",inline" yaml:",inline"`
|
||||||
Metadata ListMeta `json:"metadata" yaml:"metadata"`
|
ListMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
|
||||||
|
|
||||||
Items []ReplicationController `json:"items" yaml:"items"`
|
Items []ReplicationController `json:"items" yaml:"items"`
|
||||||
}
|
}
|
||||||
@ -618,7 +618,7 @@ type ServiceSpec struct {
|
|||||||
// will answer requests sent through the proxy.
|
// will answer requests sent through the proxy.
|
||||||
type Service struct {
|
type Service struct {
|
||||||
TypeMeta `json:",inline" yaml:",inline"`
|
TypeMeta `json:",inline" yaml:",inline"`
|
||||||
Metadata ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
|
ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
|
||||||
|
|
||||||
// Spec defines the behavior of a service.
|
// Spec defines the behavior of a service.
|
||||||
Spec ServiceSpec `json:"spec,omitempty" yaml:"spec,omitempty"`
|
Spec ServiceSpec `json:"spec,omitempty" yaml:"spec,omitempty"`
|
||||||
@ -630,7 +630,7 @@ type Service struct {
|
|||||||
// ServiceList holds a list of services.
|
// ServiceList holds a list of services.
|
||||||
type ServiceList struct {
|
type ServiceList struct {
|
||||||
TypeMeta `json:",inline" yaml:",inline"`
|
TypeMeta `json:",inline" yaml:",inline"`
|
||||||
Metadata ListMeta `json:"metadata" yaml:"metadata"`
|
ListMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
|
||||||
|
|
||||||
Items []Service `json:"items" yaml:"items"`
|
Items []Service `json:"items" yaml:"items"`
|
||||||
}
|
}
|
||||||
@ -639,7 +639,7 @@ type ServiceList struct {
|
|||||||
// Name: "mysql", Endpoints: ["10.10.1.1:1909", "10.10.2.2:8834"]
|
// Name: "mysql", Endpoints: ["10.10.1.1:1909", "10.10.2.2:8834"]
|
||||||
type Endpoints struct {
|
type Endpoints struct {
|
||||||
TypeMeta `json:",inline" yaml:",inline"`
|
TypeMeta `json:",inline" yaml:",inline"`
|
||||||
Metadata ObjectMeta `json:"metadata" yaml:"metadata"`
|
ObjectMeta `json:"metadata" yaml:"metadata"`
|
||||||
|
|
||||||
// Endpoints is the list of host ports that satisfy the service selector
|
// Endpoints is the list of host ports that satisfy the service selector
|
||||||
Endpoints []string `json:"endpoints" yaml:"endpoints"`
|
Endpoints []string `json:"endpoints" yaml:"endpoints"`
|
||||||
@ -648,7 +648,7 @@ type Endpoints struct {
|
|||||||
// EndpointsList is a list of endpoints.
|
// EndpointsList is a list of endpoints.
|
||||||
type EndpointsList struct {
|
type EndpointsList struct {
|
||||||
TypeMeta `json:",inline" yaml:",inline"`
|
TypeMeta `json:",inline" yaml:",inline"`
|
||||||
Metadata ListMeta `json:"metadata" yaml:"metadata"`
|
ListMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
|
||||||
|
|
||||||
Items []Endpoints `json:"items" yaml:"items"`
|
Items []Endpoints `json:"items" yaml:"items"`
|
||||||
}
|
}
|
||||||
@ -676,7 +676,7 @@ type ResourceList map[ResourceName]util.IntOrString
|
|||||||
// The name of the node according to etcd is in ID.
|
// The name of the node according to etcd is in ID.
|
||||||
type Node struct {
|
type Node struct {
|
||||||
TypeMeta `json:",inline" yaml:",inline"`
|
TypeMeta `json:",inline" yaml:",inline"`
|
||||||
Metadata ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
|
ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
|
||||||
|
|
||||||
// Spec defines the behavior of a node.
|
// Spec defines the behavior of a node.
|
||||||
Spec NodeSpec `json:"spec,omitempty" yaml:"spec,omitempty"`
|
Spec NodeSpec `json:"spec,omitempty" yaml:"spec,omitempty"`
|
||||||
@ -691,7 +691,7 @@ type Node struct {
|
|||||||
// NodeList is a list of minions.
|
// NodeList is a list of minions.
|
||||||
type NodeList struct {
|
type NodeList struct {
|
||||||
TypeMeta `json:",inline" yaml:",inline"`
|
TypeMeta `json:",inline" yaml:",inline"`
|
||||||
Metadata ListMeta `json:"metadata" yaml:"metadata"`
|
ListMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
|
||||||
|
|
||||||
Items []Node `json:"items" yaml:"items"`
|
Items []Node `json:"items" yaml:"items"`
|
||||||
}
|
}
|
||||||
@ -700,7 +700,7 @@ type NodeList struct {
|
|||||||
// required for Bindings.
|
// required for Bindings.
|
||||||
type Binding struct {
|
type Binding struct {
|
||||||
TypeMeta `json:",inline" yaml:",inline"`
|
TypeMeta `json:",inline" yaml:",inline"`
|
||||||
Metadata ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
|
ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
|
||||||
|
|
||||||
// PodID is a Pod name to be bound to a node.
|
// PodID is a Pod name to be bound to a node.
|
||||||
PodID string `json:"podID" yaml:"podID"`
|
PodID string `json:"podID" yaml:"podID"`
|
||||||
@ -711,7 +711,7 @@ type Binding struct {
|
|||||||
// Status is a return value for calls that don't return other objects.
|
// Status is a return value for calls that don't return other objects.
|
||||||
type Status struct {
|
type Status struct {
|
||||||
TypeMeta `json:",inline" yaml:",inline"`
|
TypeMeta `json:",inline" yaml:",inline"`
|
||||||
Metadata ListMeta `json:"metadata" yaml:"metadata"`
|
ListMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
|
||||||
|
|
||||||
// One of: "Success", "Failure", "Working" (for operations not yet completed)
|
// One of: "Success", "Failure", "Working" (for operations not yet completed)
|
||||||
Status string `json:"status,omitempty" yaml:"status,omitempty"`
|
Status string `json:"status,omitempty" yaml:"status,omitempty"`
|
||||||
@ -867,13 +867,13 @@ const (
|
|||||||
// clients to retrieve the final result of the operation at a later time.
|
// clients to retrieve the final result of the operation at a later time.
|
||||||
type Operation struct {
|
type Operation struct {
|
||||||
TypeMeta `json:",inline" yaml:",inline"`
|
TypeMeta `json:",inline" yaml:",inline"`
|
||||||
Metadata ObjectMeta `json:"metadata" yaml:"metadata"`
|
ObjectMeta `json:"metadata" yaml:"metadata"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// OperationList is a list of operations, as delivered to API clients.
|
// OperationList is a list of operations, as delivered to API clients.
|
||||||
type OperationList struct {
|
type OperationList struct {
|
||||||
TypeMeta `json:",inline" yaml:",inline"`
|
TypeMeta `json:",inline" yaml:",inline"`
|
||||||
Metadata ListMeta `json:"metadata" yaml:"metadata"`
|
ListMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
|
||||||
|
|
||||||
Items []Operation `json:"items" yaml:"items"`
|
Items []Operation `json:"items" yaml:"items"`
|
||||||
}
|
}
|
||||||
@ -901,7 +901,7 @@ type ObjectReference struct {
|
|||||||
// TODO: Decide whether to store these separately or with the object they apply to.
|
// TODO: Decide whether to store these separately or with the object they apply to.
|
||||||
type Event struct {
|
type Event struct {
|
||||||
TypeMeta `json:",inline" yaml:",inline"`
|
TypeMeta `json:",inline" yaml:",inline"`
|
||||||
Metadata ObjectMeta `json:"metadata" yaml:"metadata"`
|
ObjectMeta `json:"metadata" yaml:"metadata"`
|
||||||
|
|
||||||
// Required. The object that this event is about.
|
// Required. The object that this event is about.
|
||||||
InvolvedObject ObjectReference `json:"involvedObject,omitempty" yaml:"involvedObject,omitempty"`
|
InvolvedObject ObjectReference `json:"involvedObject,omitempty" yaml:"involvedObject,omitempty"`
|
||||||
@ -936,7 +936,7 @@ type Event struct {
|
|||||||
// EventList is a list of events.
|
// EventList is a list of events.
|
||||||
type EventList struct {
|
type EventList struct {
|
||||||
TypeMeta `json:",inline" yaml:",inline"`
|
TypeMeta `json:",inline" yaml:",inline"`
|
||||||
Metadata ListMeta `json:"metadata" yaml:"metadata"`
|
ListMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
|
||||||
|
|
||||||
Items []Event `json:"items" yaml:"items"`
|
Items []Event `json:"items" yaml:"items"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user