Skip to content

Commit d4c644b

Browse files
authored
Merge pull request #10 from aojea/patch-1
Dump cluster logs when shutting down the cluster
2 parents 0ec0800 + 7bc1f36 commit d4c644b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

deployer/deployer.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,12 @@ func (d *deployer) Down() error {
519519
}
520520

521521
ctx := context.TODO()
522+
klog.V(1).Info("deployer starting Down()")
523+
524+
if err := d.DumpClusterLogs(); err != nil {
525+
klog.Warningf("Dumping cluster logs at the begin of Down() failed: %s", err)
526+
}
527+
522528
instName, fwRuleName, nwName := d.instanceName(), d.firewallRuleName(), d.networkName()
523529
gcloudCmds := [][]string{
524530
{"--quiet", "compute", "instances", "delete", "--zone=" + d.GCPZone, instName},

0 commit comments

Comments
 (0)