Skip to content

Commit

Permalink
feat: clean up development tool a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
rangoo94 committed Oct 25, 2024
1 parent 0d9d3af commit c8a82a5
Show file tree
Hide file tree
Showing 21 changed files with 1,871 additions and 1,625 deletions.
15 changes: 8 additions & 7 deletions cmd/tcl/devbox-mutating-webhook/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,16 @@ func main() {
script := `
set -e
/usr/bin/mc config host add minio "http://devbox-storage:9000" "minioadmin" "minioadmin"
/usr/bin/mc cp minio/devbox/binaries/testworkflow-init /.tk-devbox/init
/usr/bin/mc cp --disable-multipart minio/devbox/bin/init /.tk-devbox/init
chmod 777 /.tk-devbox/init
chmod +x /.tk-devbox/init
ls -lah /.tk-devbox`
if usesToolkit {
script = `
set -e
/usr/bin/mc config host add minio "http://devbox-storage:9000" "minioadmin" "minioadmin"
/usr/bin/mc cp minio/devbox/binaries/testworkflow-init /.tk-devbox/init
/usr/bin/mc cp minio/devbox/binaries/testworkflow-toolkit /.tk-devbox/toolkit
/usr/bin/mc cp --disable-multipart minio/devbox/bin/init /.tk-devbox/init
/usr/bin/mc cp --disable-multipart minio/devbox/bin/toolkit /.tk-devbox/toolkit
chmod 777 /.tk-devbox/init
chmod 777 /.tk-devbox/toolkit
chmod +x /.tk-devbox/init
Expand All @@ -107,10 +107,11 @@ func main() {
}

pod.Spec.InitContainers = append([]corev1.Container{{
Name: "devbox-init",
Image: "minio/mc:latest",
Command: []string{"/bin/sh", "-c"},
Args: []string{script},
Name: "devbox-init",
Image: "minio/mc:latest",
ImagePullPolicy: corev1.PullIfNotPresent,
Command: []string{"/bin/sh", "-c"},
Args: []string{script},
}}, pod.Spec.InitContainers...)

// TODO: Handle it better, to not be ambiguous
Expand Down
1 change: 0 additions & 1 deletion cmd/tcl/kubectl-testkube/devbox/README.md

This file was deleted.

179 changes: 0 additions & 179 deletions cmd/tcl/kubectl-testkube/devbox/agent.go

This file was deleted.

Loading

0 comments on commit c8a82a5

Please sign in to comment.