mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Add inline attribute
This commit is contained in:
parent
74fd0c1a58
commit
601f6bb4ad
@ -91,13 +91,13 @@ type PodState struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type PodList struct {
|
type PodList struct {
|
||||||
JSONBase
|
JSONBase `json:",inline" yaml:",inline"`
|
||||||
Items []Pod `json:"items" yaml:"items,omitempty"`
|
Items []Pod `json:"items" yaml:"items,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pod is a collection of containers, used as either input (create, update) or as output (list, get)
|
// Pod is a collection of containers, used as either input (create, update) or as output (list, get)
|
||||||
type Pod struct {
|
type Pod struct {
|
||||||
JSONBase
|
JSONBase `json:",inline" yaml:",inline"`
|
||||||
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
|
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
|
||||||
DesiredState PodState `json:"desiredState,omitempty" yaml:"desiredState,omitempty"`
|
DesiredState PodState `json:"desiredState,omitempty" yaml:"desiredState,omitempty"`
|
||||||
CurrentState PodState `json:"currentState,omitempty" yaml:"currentState,omitempty"`
|
CurrentState PodState `json:"currentState,omitempty" yaml:"currentState,omitempty"`
|
||||||
@ -111,13 +111,13 @@ type ReplicationControllerState struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ReplicationControllerList struct {
|
type ReplicationControllerList struct {
|
||||||
JSONBase
|
JSONBase `json:",inline" yaml:",inline"`
|
||||||
Items []ReplicationController `json:"items,omitempty" yaml:"items,omitempty"`
|
Items []ReplicationController `json:"items,omitempty" yaml:"items,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ReplicationController represents the configuration of a replication controller
|
// ReplicationController represents the configuration of a replication controller
|
||||||
type ReplicationController struct {
|
type ReplicationController struct {
|
||||||
JSONBase
|
JSONBase `json:",inline" yaml:",inline"`
|
||||||
DesiredState ReplicationControllerState `json:"desiredState,omitempty" yaml:"desiredState,omitempty"`
|
DesiredState ReplicationControllerState `json:"desiredState,omitempty" yaml:"desiredState,omitempty"`
|
||||||
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
|
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
|
||||||
}
|
}
|
||||||
@ -130,16 +130,16 @@ type PodTemplate struct {
|
|||||||
|
|
||||||
// ServiceList holds a list of services
|
// ServiceList holds a list of services
|
||||||
type ServiceList struct {
|
type ServiceList struct {
|
||||||
JSONBase
|
JSONBase `json:",inline" yaml:",inline"`
|
||||||
Items []Service `json:"items" yaml:"items"`
|
Items []Service `json:"items" yaml:"items"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Defines a service abstraction by a name (for example, mysql) consisting of local port
|
// Defines a service abstraction by a name (for example, mysql) consisting of local port
|
||||||
// (for example 3306) that the proxy listens on, and the labels that define the service.
|
// (for example 3306) that the proxy listens on, and the labels that define the service.
|
||||||
type Service struct {
|
type Service struct {
|
||||||
JSONBase
|
JSONBase `json:",inline" yaml:",inline"`
|
||||||
Port int `json:"port,omitempty" yaml:"port,omitempty"`
|
Port int `json:"port,omitempty" yaml:"port,omitempty"`
|
||||||
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
|
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Defines the endpoints that implement the actual service, for example:
|
// Defines the endpoints that implement the actual service, for example:
|
||||||
|
Loading…
Reference in New Issue
Block a user