Skip to content

Commit

Permalink
fix: ignore default workload vclusters creation for k3d (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
CristhianF7 authored Dec 15, 2023
1 parent 230fe57 commit 9ac0f76
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,15 @@ func main() {
log.Infof("adding default services for cluster %s", importedCluster.ClusterName)
services.AddDefaultServices(&importedCluster)

go func() {
log.Infof("adding default environments for cluster %s", importedCluster.ClusterName)
err := environments.CreateDefaultEnvironments(importedCluster)
if err != nil {
log.Infof("Error creating default environments %s", err.Error())
}
}()
if importedCluster.CloudProvider != "k3d" {
go func() {
log.Infof("adding default environments for cluster %s", importedCluster.ClusterName)
err := environments.CreateDefaultEnvironments(importedCluster)
if err != nil {
log.Infof("Error creating default environments %s", err.Error())
}
}()
}
}
defer db.Client.Client.Disconnect(db.Client.Context)

Expand Down

0 comments on commit 9ac0f76

Please sign in to comment.