-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
56 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package k8s | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/ls1intum/hades/shared/payload" | ||
"github.com/ls1intum/hades/shared/utils" | ||
log "github.com/sirupsen/logrus" | ||
) | ||
|
||
type Scheduler struct{} | ||
|
||
type K8sConfig struct{} | ||
|
||
func NewK8sScheduler() Scheduler { | ||
log.Debug("Initializing Kubernetes scheduler") | ||
|
||
var k8sCfg K8sConfig | ||
utils.LoadConfig(&k8sCfg) | ||
log.Debugf("Kubernetes config: %+v", k8sCfg) | ||
|
||
return Scheduler{} | ||
} | ||
|
||
func (k Scheduler) ScheduleJob(ctx context.Context, job payload.QueuePayload) error { | ||
log.Debug("Scheduling job in Kubernetes") | ||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters