mirror of
https://github.com/kubernetes/sample-controller.git
synced 2026-05-19 00:00:14 +08:00
Drop meaningless ,inline from json tags
Kubernetes-commit: bed4a34ad8901d9a01efcb9594838f96ec9d4563
This commit is contained in:
committed by
Kubernetes Publisher
parent
293a2737bc
commit
2ee136681a
@@ -25,7 +25,7 @@ import (
|
|||||||
|
|
||||||
// Foo is a specification for a Foo resource
|
// Foo is a specification for a Foo resource
|
||||||
type Foo struct {
|
type Foo struct {
|
||||||
metav1.TypeMeta `json:",inline"`
|
metav1.TypeMeta `json:""`
|
||||||
metav1.ObjectMeta `json:"metadata,omitempty"`
|
metav1.ObjectMeta `json:"metadata,omitempty"`
|
||||||
|
|
||||||
Spec FooSpec `json:"spec"`
|
Spec FooSpec `json:"spec"`
|
||||||
@@ -47,7 +47,7 @@ type FooStatus struct {
|
|||||||
|
|
||||||
// FooList is a list of Foo resources
|
// FooList is a list of Foo resources
|
||||||
type FooList struct {
|
type FooList struct {
|
||||||
metav1.TypeMeta `json:",inline"`
|
metav1.TypeMeta `json:""`
|
||||||
metav1.ListMeta `json:"metadata,omitempty"`
|
metav1.ListMeta `json:"metadata,omitempty"`
|
||||||
|
|
||||||
Items []Foo `json:"items"`
|
Items []Foo `json:"items"`
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ import (
|
|||||||
//
|
//
|
||||||
// Foo is a specification for a Foo resource
|
// Foo is a specification for a Foo resource
|
||||||
type FooApplyConfiguration struct {
|
type FooApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
v1.TypeMetaApplyConfiguration `json:""`
|
||||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||||
Spec *FooSpecApplyConfiguration `json:"spec,omitempty"`
|
Spec *FooSpecApplyConfiguration `json:"spec,omitempty"`
|
||||||
Status *FooStatusApplyConfiguration `json:"status,omitempty"`
|
Status *FooStatusApplyConfiguration `json:"status,omitempty"`
|
||||||
|
|||||||
Reference in New Issue
Block a user