Просмотр исходного кода

add flag for on mgmt cluster to db (#4405)

Feroze Mohideen 2 лет назад
Родитель
Сommit
69a88359db
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      internal/models/datastore.go

+ 3 - 0
internal/models/datastore.go

@@ -46,4 +46,7 @@ type Datastore struct {
 
 	// Status describes the status of a datastore
 	Status DatastoreStatus `json:"status"`
+
+	// OnManagementCluster is a flag that indicates whether the datastore is hosted on the management cluster or on the customer's cluster
+	OnManagementCluster bool `json:"on_management_cluster" gorm:"not null;default:false"`
 }