Skip to content

Commit

Permalink
refactor: Update contributoor version to v0.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
mattevans committed Jan 10, 2025
1 parent ac5dec8 commit 8993af4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions cmd/cli/commands/config/config_output_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,11 +314,16 @@ func validateAndUpdateOutputServer(p *OutputServerConfigPage) {
// Update config with validated values.
if err := p.display.sidecarCfg.Update(func(cfg *config.Config) {
cfg.OutputServer.Address = serverAddress

if username != "" && password != "" {
cfg.OutputServer.Credentials = validate.EncodeCredentials(username, password)
} else {
cfg.OutputServer.Credentials = ""
}

if validate.IsEthPandaOpsServer(serverAddress) {
cfg.OutputServer.Tls = true
}
}); err != nil {
p.openErrorModal(err)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.23

require (
github.com/docker/go-connections v0.5.0
github.com/ethpandaops/contributoor v0.0.6
github.com/ethpandaops/contributoor v0.0.9
github.com/gdamore/tcell/v2 v2.7.4
github.com/mitchellh/go-homedir v1.1.0
github.com/rivo/tview v0.0.0-20241103174730-c76f7879f592
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4
github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
github.com/envoyproxy/protoc-gen-validate v1.1.0 h1:tntQDh69XqOCOZsDz0lVJQez/2L6Uu2PdjCQwWCJ3bM=
github.com/envoyproxy/protoc-gen-validate v1.1.0/go.mod h1:sXRDRVmzEbkM7CVcM06s9shE/m23dg3wzjl0UWqJ2q4=
github.com/ethpandaops/contributoor v0.0.6 h1:ss9CYNFeuWsWZchW+682zUnEQprDtaxx/BrhJZ4pqhY=
github.com/ethpandaops/contributoor v0.0.6/go.mod h1:3o+G6XtYgKdU/HgJkxOY0jdfOpct45OhbmeGKjuZ30A=
github.com/ethpandaops/contributoor v0.0.9 h1:Hq23V5Uzu/pmsX8uCsKuuPtD9rNUVYCGMvHWma/HH04=
github.com/ethpandaops/contributoor v0.0.9/go.mod h1:4ej6AhKXBLlVEb5uGUHCPwETI51iCTfsEeuczpxfoMk=
github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg=
github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U=
github.com/gdamore/encoding v1.0.0 h1:+7OoQ1Bc6eTm5niUzBa0Ctsh6JbMW6Ra+YNuAtDBdko=
Expand Down

0 comments on commit 8993af4

Please sign in to comment.