1
0
mirror of https://github.com/rancher/types.git synced 2025-09-18 07:52:41 +00:00

Create cluster reg token

This commit is contained in:
Darren Shepherd
2018-01-15 22:11:40 -07:00
parent bebdb13122
commit c4469ba9fd
2 changed files with 5 additions and 0 deletions

View File

@@ -69,6 +69,7 @@ type ClusterStatus struct {
AppliedSpec ClusterSpec `json:"appliedSpec,omitempty"`
Requested v1.ResourceList `json:"requested,omitempty"`
Limits v1.ResourceList `json:"limits,omitempty"`
ClusterName string `json:"clusterName,omitempty"`
}
type ClusterComponentStatus struct {
@@ -148,6 +149,8 @@ type ClusterEvent struct {
}
type ClusterRegistrationToken struct {
types.Namespaced
metav1.TypeMeta `json:",inline"`
// Standard objects metadata. More info:
// https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#metadata
@@ -161,6 +164,7 @@ type ClusterRegistrationToken struct {
}
type ClusterRegistrationTokenSpec struct {
ClusterName string `json:"clusterName" norman:"type=reference[cluster]"`
}
type ClusterRegistrationTokenStatus struct {

View File

@@ -71,6 +71,7 @@ type MachineStatus struct {
MachineDriverConfig string `json:"machineDriverConfig,omitempty"`
NodeAnnotations map[string]string `json:"nodeAnnotations,omitempty"`
NodeLabels map[string]string `json:"nodeLabels,omitempty"`
Token string `json:"token"`
}
var (