softplayer-backend/internal/controllers/environments.go

28 lines
413 B
Go
Raw Normal View History

2024-03-19 15:49:29 +00:00
package controllers
import (
"context"
"log"
ctrl "sigs.k8s.io/controller-runtime"
)
type Environemnt struct {
Controller ctrl.Manager
Data *EnvironemntData
}
type EnvironemntData struct {
Name string
Provider string
}
func (env *Environemnt) Create(ctx context.Context) error {
log.Printf("%s", env.Data.Name)
log.Printf("%s", env.Data.Provider)
// Create a configmap
//
return nil
}