Skip to content

Commit

Permalink
fix config bug (#283)
Browse files Browse the repository at this point in the history
* fix config bug

Signed-off-by: liu deyi <[email protected]>

* fix config bug

Signed-off-by: liu deyi <[email protected]>
  • Loading branch information
dyliu authored Sep 9, 2021
1 parent 881ed7b commit a067d45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/microservice/aslan/core/setting/service/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ func filterProductWithoutExternalCluster(products []*commonmodels.Product) []*co
}
// 过滤外部环境托管
sources := sets.NewString(setting.SourceFromZadig, setting.HelmDeployType)
if !sources.Has(product.Source) {
// Compatible with the environment source created in the onboarding process is empty
if product.Source != "" && !sources.Has(product.Source) {
continue
}
// 过滤状态为Terminating的namespace
Expand Down

0 comments on commit a067d45

Please sign in to comment.