Browse Source

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

Feroze Mohideen 2 years ago
parent
commit
69a88359db
1 changed files with 3 additions and 0 deletions
  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"`
 }