Make multi-key tags more explicit

This is in prep to simplify tag logic.  Don't rely on processing commas as new
tag delimiters.  Put new tags on new lines.  This had zero effect on generated
code (as intended).
This commit is contained in:
Tim Hockin 2016-06-19 05:38:27 -07:00
parent 052847f4ed
commit d88fc84bae
12 changed files with 48 additions and 24 deletions

View File

@ -82,7 +82,8 @@ type ClusterStatus struct {
Region string `json:"region,omitempty"` Region string `json:"region,omitempty"`
} }
// +genclient=true,nonNamespaced=true // +genclient=true
// +nonNamespaced=true
// Information about a registered cluster in a federated kubernetes setup. Clusters are not namespaced and have unique names in the federation. // Information about a registered cluster in a federated kubernetes setup. Clusters are not namespaced and have unique names in the federation.
type Cluster struct { type Cluster struct {

View File

@ -82,7 +82,8 @@ type ClusterStatus struct {
Region string `json:"region,omitempty" protobuf:"bytes,6,opt,name=region"` Region string `json:"region,omitempty" protobuf:"bytes,6,opt,name=region"`
} }
// +genclient=true,nonNamespaced=true // +genclient=true
// +nonNamespaced=true
// Information about a registered cluster in a federated kubernetes setup. Clusters are not namespaced and have unique names in the federation. // Information about a registered cluster in a federated kubernetes setup. Clusters are not namespaced and have unique names in the federation.
type Cluster struct { type Cluster struct {

View File

@ -283,7 +283,8 @@ type PersistentVolumeClaimVolumeSource struct {
ReadOnly bool `json:"readOnly,omitempty"` ReadOnly bool `json:"readOnly,omitempty"`
} }
// +genclient=true,nonNamespaced=true // +genclient=true
// +nonNamespaced=true
type PersistentVolume struct { type PersistentVolume struct {
unversioned.TypeMeta `json:",inline"` unversioned.TypeMeta `json:",inline"`
@ -2096,7 +2097,8 @@ const (
// ResourceList is a set of (resource name, quantity) pairs. // ResourceList is a set of (resource name, quantity) pairs.
type ResourceList map[ResourceName]resource.Quantity type ResourceList map[ResourceName]resource.Quantity
// +genclient=true,nonNamespaced=true // +genclient=true
// +nonNamespaced=true
// Node is a worker node in Kubernetes // Node is a worker node in Kubernetes
// The name of the node according to etcd is in ObjectMeta.Name. // The name of the node according to etcd is in ObjectMeta.Name.
@ -2149,7 +2151,8 @@ const (
NamespaceTerminating NamespacePhase = "Terminating" NamespaceTerminating NamespacePhase = "Terminating"
) )
// +genclient=true,nonNamespaced=true // +genclient=true
// +nonNamespaced=true
// A namespace provides a scope for Names. // A namespace provides a scope for Names.
// Use of multiple namespaces is optional // Use of multiple namespaces is optional
@ -2785,7 +2788,8 @@ type ComponentCondition struct {
Error string `json:"error,omitempty"` Error string `json:"error,omitempty"`
} }
// +genclient=true,nonNamespaced=true // +genclient=true
// +nonNamespaced=true
// ComponentStatus (and ComponentStatusList) holds the cluster validation info. // ComponentStatus (and ComponentStatusList) holds the cluster validation info.
type ComponentStatus struct { type ComponentStatus struct {

View File

@ -341,7 +341,8 @@ type PersistentVolumeSource struct {
VsphereVolume *VsphereVirtualDiskVolumeSource `json:"vsphereVolume,omitempty" protobuf:"bytes,14,opt,name=vsphereVolume"` VsphereVolume *VsphereVirtualDiskVolumeSource `json:"vsphereVolume,omitempty" protobuf:"bytes,14,opt,name=vsphereVolume"`
} }
// +genclient=true,nonNamespaced=true // +genclient=true
// +nonNamespaced=true
// PersistentVolume (PV) is a storage resource provisioned by an administrator. // PersistentVolume (PV) is a storage resource provisioned by an administrator.
// It is analogous to a node. // It is analogous to a node.
@ -2497,7 +2498,8 @@ const (
// ResourceList is a set of (resource name, quantity) pairs. // ResourceList is a set of (resource name, quantity) pairs.
type ResourceList map[ResourceName]resource.Quantity type ResourceList map[ResourceName]resource.Quantity
// +genclient=true,nonNamespaced=true // +genclient=true
// +nonNamespaced=true
// Node is a worker node in Kubernetes, formerly known as minion. // Node is a worker node in Kubernetes, formerly known as minion.
// Each node will have a unique identifier in the cache (i.e. in etcd). // Each node will have a unique identifier in the cache (i.e. in etcd).
@ -2560,7 +2562,8 @@ const (
NamespaceTerminating NamespacePhase = "Terminating" NamespaceTerminating NamespacePhase = "Terminating"
) )
// +genclient=true,nonNamespaced=true // +genclient=true
// +nonNamespaced=true
// Namespace provides a scope for Names. // Namespace provides a scope for Names.
// Use of multiple namespaces is optional. // Use of multiple namespaces is optional.
@ -3215,7 +3218,8 @@ type ComponentCondition struct {
Error string `json:"error,omitempty" protobuf:"bytes,4,opt,name=error"` Error string `json:"error,omitempty" protobuf:"bytes,4,opt,name=error"`
} }
// +genclient=true,nonNamespaced=true // +genclient=true
// +nonNamespaced=true
// ComponentStatus (and ComponentStatusList) holds the cluster validation info. // ComponentStatus (and ComponentStatusList) holds the cluster validation info.
type ComponentStatus struct { type ComponentStatus struct {

View File

@ -21,7 +21,8 @@ import (
"k8s.io/kubernetes/pkg/api/unversioned" "k8s.io/kubernetes/pkg/api/unversioned"
) )
// +genclient=true,nonNamespaced=true // +genclient=true
// +nonNamespaced=true
// Describes a certificate signing request // Describes a certificate signing request
type CertificateSigningRequest struct { type CertificateSigningRequest struct {

View File

@ -21,7 +21,8 @@ import (
"k8s.io/kubernetes/pkg/api/v1" "k8s.io/kubernetes/pkg/api/v1"
) )
// +genclient=true,nonNamespaced=true // +genclient=true
// +nonNamespaced=true
// Describes a certificate signing request // Describes a certificate signing request
type CertificateSigningRequest struct { type CertificateSigningRequest struct {

View File

@ -51,7 +51,8 @@ type ScaleStatus struct {
Selector *unversioned.LabelSelector `json:"selector,omitempty"` Selector *unversioned.LabelSelector `json:"selector,omitempty"`
} }
// +genclient=true,noMethods=true // +genclient=true
// +noMethods=true
// represents a scaling request for a resource. // represents a scaling request for a resource.
type Scale struct { type Scale struct {
@ -94,7 +95,8 @@ type CustomMetricCurrentStatusList struct {
Items []CustomMetricCurrentStatus `json:"items"` Items []CustomMetricCurrentStatus `json:"items"`
} }
// +genclient=true,nonNamespaced=true // +genclient=true
// +nonNamespaced=true
// A ThirdPartyResource is a generic representation of a resource, it is used by add-ons and plugins to add new resource // A ThirdPartyResource is a generic representation of a resource, it is used by add-ons and plugins to add new resource
// types to the API. It consists of one or more Versions of the api. // types to the API. It consists of one or more Versions of the api.
@ -624,7 +626,8 @@ type ReplicaSetStatus struct {
ObservedGeneration int64 `json:"observedGeneration,omitempty"` ObservedGeneration int64 `json:"observedGeneration,omitempty"`
} }
// +genclient=true,nonNamespaced=true // +genclient=true
// +nonNamespaced=true
// PodSecurityPolicy governs the ability to make requests that affect the SecurityContext // PodSecurityPolicy governs the ability to make requests that affect the SecurityContext
// that will be applied to a pod and container. // that will be applied to a pod and container.

View File

@ -46,7 +46,8 @@ type ScaleStatus struct {
TargetSelector string `json:"targetSelector,omitempty" protobuf:"bytes,3,opt,name=targetSelector"` TargetSelector string `json:"targetSelector,omitempty" protobuf:"bytes,3,opt,name=targetSelector"`
} }
// +genclient=true,noMethods=true // +genclient=true
// +noMethods=true
// represents a scaling request for a resource. // represents a scaling request for a resource.
type Scale struct { type Scale struct {
@ -166,7 +167,8 @@ type HorizontalPodAutoscalerList struct {
Items []HorizontalPodAutoscaler `json:"items" protobuf:"bytes,2,rep,name=items"` Items []HorizontalPodAutoscaler `json:"items" protobuf:"bytes,2,rep,name=items"`
} }
// +genclient=true,nonNamespaced=true // +genclient=true
// +nonNamespaced=true
// A ThirdPartyResource is a generic representation of a resource, it is used by add-ons and plugins to add new resource // A ThirdPartyResource is a generic representation of a resource, it is used by add-ons and plugins to add new resource
// types to the API. It consists of one or more Versions of the api. // types to the API. It consists of one or more Versions of the api.
@ -912,7 +914,8 @@ type ReplicaSetStatus struct {
ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,3,opt,name=observedGeneration"` ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,3,opt,name=observedGeneration"`
} }
// +genclient=true,nonNamespaced=true // +genclient=true
// +nonNamespaced=true
// Pod Security Policy governs the ability to make requests that affect the Security Context // Pod Security Policy governs the ability to make requests that affect the Security Context
// that will be applied to a pod and container. // that will be applied to a pod and container.

View File

@ -49,7 +49,8 @@ type PodDisruptionBudgetStatus struct {
ExpectedPods int32 `json:"expectedPods"` ExpectedPods int32 `json:"expectedPods"`
} }
// +genclient=true,noMethods=true // +genclient=true
// +noMethods=true
// PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods // PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods
type PodDisruptionBudget struct { type PodDisruptionBudget struct {

View File

@ -50,7 +50,8 @@ type PodDisruptionBudgetStatus struct {
ExpectedPods int32 `json:"expectedPods" protobuf:"varint,4,opt,name=expectedPods"` ExpectedPods int32 `json:"expectedPods" protobuf:"varint,4,opt,name=expectedPods"`
} }
// +genclient=true,noMethods=true // +genclient=true
// +noMethods=true
// PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods // PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods
type PodDisruptionBudget struct { type PodDisruptionBudget struct {

View File

@ -126,7 +126,8 @@ type RoleList struct {
Items []Role Items []Role
} }
// +genclient=true,nonNamespaced=true // +genclient=true
// +nonNamespaced=true
// ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. // ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.
type ClusterRole struct { type ClusterRole struct {
@ -138,7 +139,8 @@ type ClusterRole struct {
Rules []PolicyRule Rules []PolicyRule
} }
// +genclient=true,nonNamespaced=true // +genclient=true
// +nonNamespaced=true
// ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, // ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace,
// and adds who information via Subject. // and adds who information via Subject.

View File

@ -113,7 +113,8 @@ type RoleList struct {
Items []Role `json:"items" protobuf:"bytes,2,rep,name=items"` Items []Role `json:"items" protobuf:"bytes,2,rep,name=items"`
} }
// +genclient=true,nonNamespaced=true // +genclient=true
// +nonNamespaced=true
// ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. // ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.
type ClusterRole struct { type ClusterRole struct {
@ -125,7 +126,8 @@ type ClusterRole struct {
Rules []PolicyRule `json:"rules" protobuf:"bytes,2,rep,name=rules"` Rules []PolicyRule `json:"rules" protobuf:"bytes,2,rep,name=rules"`
} }
// +genclient=true,nonNamespaced=true // +genclient=true
// +nonNamespaced=true
// ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, // ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace,
// and adds who information via Subject. // and adds who information via Subject.