Skip to content

Commit

Permalink
fix(pixiu): fix addCluster failed (caoyingjunz#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangaokang authored Sep 3, 2024
1 parent eaa3930 commit 1aab415
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/sql.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ CREATE TABLE `clusters` (
gmt_create datetime COMMENT '创建时间',
gmt_modified datetime COMMENT '修改时间',
resource_version int COMMENT '版本号',
plan_id int COMMENT 'plan表的id号',
name varchar(128) COMMENT 'k8s 集群名称',
alias_name varchar(128) COMMENT 'k8s 集群中文名称',
cluster_type int COMMENT 'Kubernetes 集群的类型',
Expand Down
2 changes: 1 addition & 1 deletion pkg/db/model/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ type Cluster struct {
PlanId int64

// 集群运行状态 0: 运行中 1: 部署中 2: 等待部署 3: 部署失败 4: 运行中断 5: 所有的 node 不健康
ClusterStatus `gorm:"type:tinyint" json:"status"`
ClusterStatus `gorm:"column:status;type:tinyint" json:"status"`

// 集群的版本
KubernetesVersion string `gorm:"type:varchar(255)" json:"kubernetes_version,omitempty"`
Expand Down

0 comments on commit 1aab415

Please sign in to comment.