mirror of
https://github.com/rancher/types.git
synced 2025-06-26 21:51:33 +00:00
NodeName and clusterName to ClusterNode
This commit is contained in:
parent
606e13969e
commit
5205063b09
@ -217,6 +217,8 @@ type AuthConfig struct {
|
||||
|
||||
type ClusterNode struct {
|
||||
v1.Node
|
||||
NodeName string
|
||||
ClusterName string
|
||||
}
|
||||
|
||||
type MachineTemplate struct {
|
||||
|
@ -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"`
|
||||
|
Loading…
Reference in New Issue
Block a user