Ver Fonte

enable helm repo monitoring for all newly created clusters

Mohammed Nafees há 4 anos atrás
pai
commit
8c729ac587
1 ficheiros alterados com 2 adições e 0 exclusões
  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)