Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
f3938728
Unverified
Commit
f3938728
authored
Jan 04, 2022
by
Ben Wilson
Committed by
GitHub
Jan 04, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1980 from ethereum-optimism/bwilson/fix/op-exporter-version-nil-deference
op-exporter version nil deference
parents
1644c7b2
673bfcc4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
empty-deers-buy.md
.changeset/empty-deers-buy.md
+5
-0
main.go
go/op-exporter/main.go
+4
-3
No files found.
.changeset/empty-deers-buy.md
0 → 100644
View file @
f3938728
---
'
@eth-optimism/op-exporter'
:
patch
---
Fixes panic caused by version initialized to nil
go/op-exporter/main.go
View file @
f3938728
...
...
@@ -20,6 +20,8 @@ import (
"k8s.io/client-go/kubernetes"
)
var
UnknownStatus
=
"UNKNOWN"
var
(
listenAddress
=
kingpin
.
Flag
(
"web.listen-address"
,
...
...
@@ -86,7 +88,7 @@ func main() {
healthy
:
false
,
updateTime
:
time
.
Now
(),
allowedMethods
:
nil
,
version
:
nil
,
version
:
&
UnknownStatus
,
}
http
.
Handle
(
"/metrics"
,
promhttp
.
Handler
())
http
.
Handle
(
"/health"
,
healthHandler
(
&
health
))
...
...
@@ -130,8 +132,7 @@ func getSequencerVersion(health *healthCheck, client *kubernetes.Clientset) {
}
sequencerStatefulSet
,
err
:=
client
.
AppsV1
()
.
StatefulSets
(
string
(
ns
))
.
Get
(
context
.
TODO
(),
"sequencer"
,
getOpts
)
if
err
!=
nil
{
unknownStatus
:=
"UNKNOWN"
health
.
version
=
&
unknownStatus
health
.
version
=
&
UnknownStatus
log
.
Errorf
(
"Unable to retrieve a sequencer StatefulSet: %s"
,
err
)
continue
}
...
...
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