Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
ad381d88
Commit
ad381d88
authored
Jun 29, 2018
by
Oleg Ivanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the wrong elasticsearch node counter
parent
90f681be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
elasticsearch_logging_discovery.go
...elasticsearch/es-image/elasticsearch_logging_discovery.go
+2
-2
No files found.
cluster/addons/fluentd-elasticsearch/es-image/elasticsearch_logging_discovery.go
View file @
ad381d88
...
...
@@ -20,6 +20,7 @@ import (
"flag"
"fmt"
"os"
"strconv"
"strings"
"time"
...
...
@@ -104,7 +105,7 @@ func main() {
var
endpoints
*
api
.
Endpoints
addrs
:=
[]
string
{}
// Wait for some endpoints.
count
:=
0
count
,
_
:=
strconv
.
Atoi
(
os
.
Getenv
(
"MINIMUM_MASTER_NODES"
))
for
t
:=
time
.
Now
();
time
.
Since
(
t
)
<
5
*
time
.
Minute
;
time
.
Sleep
(
10
*
time
.
Second
)
{
endpoints
,
err
=
client
.
Core
()
.
Endpoints
(
namespace
)
.
Get
(
serviceName
,
metav1
.
GetOptions
{})
if
err
!=
nil
{
...
...
@@ -115,7 +116,6 @@ func main() {
if
len
(
addrs
)
>
0
&&
len
(
addrs
)
==
count
{
break
}
count
=
len
(
addrs
)
}
// If there was an error finding endpoints then log a warning and quit.
if
err
!=
nil
{
...
...
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