Skip to content

Commit

Permalink
Remove old comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Mtze committed Sep 25, 2023
1 parent a338d77 commit d104b6f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 37 deletions.
2 changes: 0 additions & 2 deletions HadesScheduler/kube/kube.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,11 @@ func deleteNamespace(clientset *kubernetes.Clientset, namespace string) {
func createJob(clientset *kubernetes.Clientset, namespace string, buildJob payload.BuildJob) (*batchv1.Job, error) {
log.Infof("Creating job %v in namespace %s", buildJob, namespace)

//TODO: Use function to generate build command
sharedVolumeName := "shared-volume-" + buildJob.Name

jobs := clientset.BatchV1().Jobs(namespace)
var backOffLimit int32 = 0

//TODO: Use function to generate clone command
cloneCommand := utils.BuildCloneCommands(buildJob.Credentials, buildJob.BuildConfig.Repositories...)
log.Debugf("Clone command: %s", cloneCommand)

Expand Down
35 changes: 0 additions & 35 deletions HadesScheduler/kube/kube_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,38 +27,3 @@ func TestDeleteNamespace(t *testing.T) {
client := initializeKubeconfig()
deleteNamespace(client, "test")
}

// func TestCreateJob(t *testing.T) {
// client := initializeKubeconfig()

// testBuildJob := payload.BuildJob{
// Name: "Test Build",
// Credentials: struct {
// Username string `json:"username" binding:"required"`
// Password string `json:"password" binding:"required"`
// }{
// Username: "testuser",
// Password: "testpassword",
// },
// BuildConfig: struct {
// Repositories []payload.Repository `json:"repositories" binding:"required,dive"`
// ExecutionContainer string `json:"executionContainer" binding:"required"`
// }{
// Repositories: []payload.Repository{
// {
// Path: "/tmp/testrepo1",
// URL: "https://github.com/testuser/testrepo1.git",
// },
// {
// Path: "/tmp/testrepo2",
// URL: "https://github.com/testuser/testrepo2.git",
// },
// },
// ExecutionContainer: "docker",
// },
// }

// namespace := "default"

// createJob(client, namespace, testBuildJob)
// }

0 comments on commit d104b6f

Please sign in to comment.