1
0
mirror of https://github.com/rancher/types.git synced 2025-09-17 23:38:20 +00:00

Generate code

This commit is contained in:
Darren Shepherd
2018-02-14 22:34:37 -07:00
parent 1623cca1ee
commit 1815a97836
3 changed files with 6 additions and 2 deletions

View File

@@ -3308,6 +3308,7 @@ func (in *NodeStatus) DeepCopy() *NodeStatus {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *NodeTemplate) DeepCopyInto(out *NodeTemplate) {
*out = *in
out.Namespaced = in.Namespaced
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)

View File

@@ -23,8 +23,9 @@ var (
NodeTemplateResource = metav1.APIResource{
Name: "nodetemplates",
SingularName: "nodetemplate",
Namespaced: false,
Kind: NodeTemplateGroupVersionKind.Kind,
Namespaced: true,
Kind: NodeTemplateGroupVersionKind.Kind,
}
)

View File

@@ -23,6 +23,7 @@ const (
NodeTemplateFieldEngineStorageDriver = "engineStorageDriver"
NodeTemplateFieldLabels = "labels"
NodeTemplateFieldName = "name"
NodeTemplateFieldNamespaceId = "namespaceId"
NodeTemplateFieldOwnerReferences = "ownerReferences"
NodeTemplateFieldRemoved = "removed"
NodeTemplateFieldState = "state"
@@ -52,6 +53,7 @@ type NodeTemplate struct {
EngineStorageDriver string `json:"engineStorageDriver,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
Name string `json:"name,omitempty"`
NamespaceId string `json:"namespaceId,omitempty"`
OwnerReferences []OwnerReference `json:"ownerReferences,omitempty"`
Removed string `json:"removed,omitempty"`
State string `json:"state,omitempty"`