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:
@@ -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 object’s 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 {
|
||||
|
@@ -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 (
|
||||
|
Reference in New Issue
Block a user