瀏覽代碼

enable helm repo monitoring for all newly created clusters

Mohammed Nafees 4 年之前
父節點
當前提交
8c729ac587
共有 1 個文件被更改,包括 2 次插入0 次删除
  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)