Browse Source

enable helm repo monitoring for all newly created clusters

Mohammed Nafees 4 năm trước cách đây
mục cha
commit
8c729ac587
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      internal/repository/gorm/cluster.go

+ 2 - 0
internal/repository/gorm/cluster.go

@@ -120,6 +120,8 @@ func (repo *ClusterRepository) UpdateClusterCandidateCreatedClusterID(
 func (repo *ClusterRepository) CreateCluster(
 	cluster *models.Cluster,
 ) (*models.Cluster, error) {
+	cluster.MonitorHelmReleases = true
+
 	ctxDB := repo.db.WithContext(context.Background())
 
 	err := repo.EncryptClusterData(cluster, repo.key)