tested local dev k3d single node cluster local storage + removed redundant scripts
This commit is contained in:
parent
506142ccd7
commit
62ab3f88cd
34 changed files with 2602 additions and 334 deletions
|
|
@ -65,7 +65,7 @@ func k8sCreateNamespace(project string) error {
|
|||
}
|
||||
|
||||
func RunCommand(command string) error {
|
||||
slog.Debug(fmt.Sprintf("🐞 Running script command: %s", command))
|
||||
slog.Debug(fmt.Sprintf("🐞 Running command: %s", command))
|
||||
cmd := exec.Command("sh", "-c", command)
|
||||
var stdout, stderr bytes.Buffer
|
||||
cmd.Stdout = &stdout
|
||||
|
|
@ -78,8 +78,8 @@ func RunCommand(command string) error {
|
|||
return fmt.Errorf("failed to run script command: %w", err)
|
||||
}
|
||||
output := stdout.String()
|
||||
slog.Debug(fmt.Sprintf("RunCommand command executed successfully: %s", command))
|
||||
slog.Debug(fmt.Sprintf("RunCommand command output: %s", output))
|
||||
slog.Debug(fmt.Sprintf("RunCommand executed successfully: %s", command))
|
||||
slog.Debug(fmt.Sprintf("RunCommand output: %s", output))
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue