chore: remove debug code
This commit is contained in:
2 files changed
-20
No files matched your search
@@ -1605,25 +1605,6 @@ func installHelmCharts(ctx context.Context, clientset KubernetesClient, shouldIn
|
|||||||
Wait: true,
|
Wait: true,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
chartPods, err := clientset.ListPods(ctx, ListPodsInput{
|
|
||||||
Namespace: chart.Namespace,
|
|
||||||
})
|
|
||||||
if err != nil {
|
|
||||||
return fmt.Errorf("Error listing chart pods: %w", err)
|
|
||||||
}
|
|
||||||
for _, pod := range chartPods {
|
|
||||||
logs, err := clientset.GetLogs(ctx, GetLogsInput{
|
|
||||||
Name: pod.Name,
|
|
||||||
Namespace: pod.Namespace,
|
|
||||||
})
|
|
||||||
if err != nil {
|
|
||||||
return fmt.Errorf("Error getting chart pod logs: %w", err)
|
|
||||||
}
|
|
||||||
common.LogExclaim(fmt.Sprintf("Logs for %s/%s", pod.Namespace, pod.Name))
|
|
||||||
for _, log := range strings.Split(string(logs), "\n") {
|
|
||||||
common.LogInfo1(log)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return fmt.Errorf("Error installing chart %s: %w", chart.ChartPath, err)
|
return fmt.Errorf("Error installing chart %s: %w", chart.ChartPath, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ setup() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
teardown_() {
|
teardown_() {
|
||||||
kubectl get pods -n cert-manager || true
|
|
||||||
global_teardown
|
global_teardown
|
||||||
dokku nginx:start
|
dokku nginx:start
|
||||||
uninstall_k3s || true
|
uninstall_k3s || true
|
||||||
|
|||||||
Reference in new issue
Block a user