From 0bb2ed690c7fdacb2f3d69b99baae5d3b8b0033e Mon Sep 17 00:00:00 2001 From: alessandroargentieri Date: Wed, 7 Jun 2023 10:38:35 +0200 Subject: [PATCH] addition of KFCluster.CreatedAt --- kfcluster.go | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/kfcluster.go b/kfcluster.go index 96578ba..b49fd68 100644 --- a/kfcluster.go +++ b/kfcluster.go @@ -5,18 +5,20 @@ import ( "encoding/json" "fmt" "strings" + "time" ) // KfCluster represents a cluster with Kubeflow installed. type KfCluster struct { - ID string `json:"id"` - Name string `json:"name,validate:required"` - NetworkID string `json:"network_id,validate:required"` - FirewallID string `json:"firewall_id"` - Size string `json:"size"` - KubeflowReady string `json:"kubeflow_ready"` - DashboardURL string `json:"dashboard_url"` - Namespace string `json:"-"` + ID string `json:"id"` + Name string `json:"name"` + NetworkID string `json:"network_id"` + FirewallID string `json:"firewall_id"` + Size string `json:"size"` + KubeflowReady string `json:"kubeflow_ready"` + DashboardURL string `json:"dashboard_url"` + CreatedAt time.Time `json:"created_at"` + Namespace string `json:"-"` } // CreateKfClusterReq is the request for creating a KfCluster.