From 1c9a0506b5596f9019ba80956c5df889e6b53b72 Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Sat, 3 Mar 2018 21:41:03 -0700 Subject: [PATCH] Add AgentImage to cluster --- apis/management.cattle.io/v3/cluster_types.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apis/management.cattle.io/v3/cluster_types.go b/apis/management.cattle.io/v3/cluster_types.go index 29d94f11..b854986f 100644 --- a/apis/management.cattle.io/v3/cluster_types.go +++ b/apis/management.cattle.io/v3/cluster_types.go @@ -26,6 +26,8 @@ const ( // ClusterConditionDefaultNamespaceAssigned true when cluster's default namespace has been initially assigned ClusterConditionDefaultNamespaceAssigned condition.Cond = "DefaultNamespaceAssigned" ClusterConditionAddonDeploy condition.Cond = "AddonDeploy" + ClusterConditionSystemAccountCreated condition.Cond = "SystemAccountCreated" + ClusterConditionAgentDeployed condition.Cond = "AgentDeployed" ClusterDriverImported = "imported" ClusterDriverLocal = "local" @@ -49,6 +51,7 @@ type ClusterSpec struct { DisplayName string `json:"displayName"` Description string `json:"description"` Internal bool `json:"internal" norman:"nocreate,noupdate"` + DesiredAgentImage string `json:"desiredAgentImage" norman:"nocreate,noupdate"` ImportedConfig *ImportedConfig `json:"importedConfig,omitempty" norman:"nocreate,noupdate"` GoogleKubernetesEngineConfig *GoogleKubernetesEngineConfig `json:"googleKubernetesEngineConfig,omitempty"` AzureKubernetesServiceConfig *AzureKubernetesServiceConfig `json:"azureKubernetesServiceConfig,omitempty"` @@ -68,6 +71,7 @@ type ClusterStatus struct { //Component statuses will represent cluster's components (etcd/controller/scheduler) health // https://kubernetes.io/docs/api-reference/v1.8/#componentstatus-v1-core Driver string `json:"driver"` + AgentImage string `json:"agentImage"` ComponentStatuses []ClusterComponentStatus `json:"componentStatuses,omitempty"` APIEndpoint string `json:"apiEndpoint,omitempty"` ServiceAccountToken string `json:"serviceAccountToken,omitempty"`