Skip to content

Commit

Permalink
fix: do not panic when termination-log is not writeable (#8221)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Weibel <michael@helio.exchange>
  • Loading branch information
mweibel authored Mar 24, 2022
1 parent e7600cb commit 6ee1b03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func GetSecrets(ctx context.Context, clientSet kubernetes.Interface, namespace,
func WriteTerminateMessage(message string) {
err := ioutil.WriteFile("/dev/termination-log", []byte(message), 0o600)
if err != nil {
panic(err)
println("unable to write termination log: " + err.Error())
}
}

Expand Down

0 comments on commit 6ee1b03

Please sign in to comment.