Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Rke
Commits
65efa5ba
Unverified
Commit
65efa5ba
authored
5 years ago
by
Dax McDonald
Committed by
GitHub
5 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #1926 from daxmc99/fix_formatting
Fix formatting
parents
ed86a382
d7a4f2d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cluster/defaults.go
+2
-1
cluster/defaults.go
with
2 additions
and
1 deletion
+2
-1
cluster/defaults.go
+
2
-
1
View file @
65efa5ba
...
...
@@ -220,7 +220,8 @@ func (c *Cluster) setClusterDefaults(ctx context.Context, flags ExternalFlags) e
func
(
c
*
Cluster
)
setNodeUpgradeStrategy
()
{
if
c
.
UpgradeStrategy
==
nil
{
logrus
.
Infof
(
"No input provided for maxUnavailable, setting it to default value of %v"
,
DefaultMaxUnavailable
)
// we need to escape the "%" at the end of "10%" here so its not interpreted
logrus
.
Debugf
(
"No input provided for maxUnavailable, setting it to default value of %v"
,
DefaultMaxUnavailable
+
"%"
)
c
.
UpgradeStrategy
=
&
v3
.
NodeUpgradeStrategy
{
MaxUnavailable
:
DefaultMaxUnavailable
,
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help