Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
KubeCube
Commits
50abe645
Unverified
Commit
50abe645
authored
3 years ago
by
weilaaa
Committed by
GitHub
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
add logs for warden reporter (#106)
parent
a46bdf3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/warden/reporter/report.go
+2
-1
pkg/warden/reporter/report.go
with
2 additions
and
1 deletion
+2
-1
pkg/warden/reporter/report.go
+
2
-
1
View file @
50abe645
...
...
@@ -59,7 +59,7 @@ func (r *Reporter) registerIfNeed(ctx context.Context) error {
return
err
}
clog
.
Info
(
"pivot
cluster
address is %v"
,
cfg
.
Host
)
clog
.
Info
(
"pivot
kubecube
address is %v"
,
r
.
PivotCube
Host
)
return
wait
.
Poll
(
3
*
time
.
Second
,
15
*
time
.
Second
,
func
()
(
done
bool
,
err
error
)
{
cluster
:=
&
clusterv1
.
Cluster
{
...
...
@@ -93,6 +93,7 @@ func (r *Reporter) report() bool {
}
if
resp
.
StatusCode
!=
http
.
StatusOK
{
log
.
Debug
(
"kubecube is unhealthy with resp code: %v"
,
resp
.
StatusCode
)
return
false
}
...
...
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