소스 검색

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)