1
0
mirror of https://github.com/rancher/types.git synced 2025-07-12 12:57:58 +00:00

Merge pull request #208 from alena1108/workloadnamespaces

Workload is namespaced
This commit is contained in:
Alena Prokharchyk 2018-02-12 15:26:45 -08:00 committed by GitHub
commit 1c3602ea35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View File

@ -97,6 +97,7 @@ type PublicEndpoint struct {
}
type Workload struct {
types.Namespaced
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
}

View File

@ -958,6 +958,7 @@ func (in *ServiceAccountTokenList) DeepCopyObject() runtime.Object {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Workload) DeepCopyInto(out *Workload) {
*out = *in
out.Namespaced = in.Namespaced
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
return

View File

@ -23,8 +23,9 @@ var (
WorkloadResource = metav1.APIResource{
Name: "workloads",
SingularName: "workload",
Namespaced: false,
Kind: WorkloadGroupVersionKind.Kind,
Namespaced: true,
Kind: WorkloadGroupVersionKind.Kind,
}
)