add nonNamespaced comment tag; change the interface name

This commit is contained in:
Chao Xu
2016-01-12 14:05:27 -08:00
parent b7438274dc
commit ec9771ccb6
28 changed files with 183 additions and 144 deletions

View File

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