Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ARM
k8s
Kured
Commits
6a4dcc8f
Commit
6a4dcc8f
authored
Jun 01, 2018
by
Frank Vissing
Browse files
reboot if forceRebootSentinel exists
parent
989594ac
Changes
1
Show whitespace changes
Inline
Side-by-side
cmd/kured/main.go
View file @
6a4dcc8f
...
...
@@ -124,7 +124,7 @@ func forceRebootsentinelExists() bool {
}
func
rebootRequired
()
bool
{
if
sentinelExists
()
{
if
sentinelExists
()
||
forceRebootsentinelExists
()
{
log
.
Infof
(
"Reboot required"
)
return
true
}
else
{
...
...
@@ -135,7 +135,7 @@ func rebootRequired() bool {
func
rebootBlocked
()
bool
{
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
}
if
prometheusURL
!=
""
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment