package k8s import ( "context" "log" k8s "gitea.loveuer.com/loveuer/cluster/pkg/model/k8s" "gitea.loveuer.com/loveuer/cluster/pkg/store" "gorm.io/gorm" ) func Init(ctx context.Context, db *gorm.DB, store store.Store) error { if err := db.AutoMigrate( &k8s.ClusterConfig{}, ); err != nil { log.Fatalf("failed to migrate k8s database: %v", err) return err } return nil }