1
0
mirror of https://github.com/rancher/types.git synced 2025-09-01 05:09:10 +00:00

NodeName and clusterName to ClusterNode

This commit is contained in:
Alena Prokharchyk
2017-11-29 15:40:33 -08:00
parent 606e13969e
commit 5205063b09
2 changed files with 6 additions and 0 deletions

View File

@@ -7,11 +7,13 @@ import (
const (
ClusterNodeType = "clusterNode"
ClusterNodeFieldAnnotations = "annotations"
ClusterNodeFieldClusterName = "clusterName"
ClusterNodeFieldConfigSource = "configSource"
ClusterNodeFieldCreated = "created"
ClusterNodeFieldExternalID = "externalID"
ClusterNodeFieldLabels = "labels"
ClusterNodeFieldName = "name"
ClusterNodeFieldNodeName = "nodeName"
ClusterNodeFieldOwnerReferences = "ownerReferences"
ClusterNodeFieldPodCIDR = "podCIDR"
ClusterNodeFieldProviderID = "providerID"
@@ -29,11 +31,13 @@ const (
type ClusterNode struct {
types.Resource
Annotations map[string]string `json:"annotations,omitempty"`
ClusterName string `json:"clusterName,omitempty"`
ConfigSource *NodeConfigSource `json:"configSource,omitempty"`
Created string `json:"created,omitempty"`
ExternalID string `json:"externalID,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
Name string `json:"name,omitempty"`
NodeName string `json:"nodeName,omitempty"`
OwnerReferences []OwnerReference `json:"ownerReferences,omitempty"`
PodCIDR string `json:"podCIDR,omitempty"`
ProviderID string `json:"providerID,omitempty"`