mirror of
https://github.com/kubereboot/kured.git
synced 2026-02-14 17:39:49 +00:00
reboot if forceRebootSentinel exists
This commit is contained in:
@@ -124,7 +124,7 @@ func forceRebootsentinelExists() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func rebootRequired() bool {
|
func rebootRequired() bool {
|
||||||
if sentinelExists() {
|
if sentinelExists() || forceRebootsentinelExists() {
|
||||||
log.Infof("Reboot required")
|
log.Infof("Reboot required")
|
||||||
return true
|
return true
|
||||||
} else {
|
} else {
|
||||||
@@ -135,7 +135,7 @@ func rebootRequired() bool {
|
|||||||
|
|
||||||
func rebootBlocked() bool {
|
func rebootBlocked() bool {
|
||||||
if forceRebootsentinelExists() {
|
if forceRebootsentinelExists() {
|
||||||
log.Infof("Force reboot sentinel %v exists, force rebooting activated",forceRebootSentinel)
|
log.Infof("Force reboot sentinel %v exists, force rebooting activated", forceRebootSentinel)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if prometheusURL != "" {
|
if prometheusURL != "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user