adm: Take network settings into account during netmap contract update #234
No reviewers
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#234
Loading…
Reference in a new issue
No description provided.
Delete branch "acid-ant/frostfs-node:bugfix/100-adm-updt-contract"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Close #100
Signed-off-by: Anton Nikiforov an.nikiforov@yadro.com
@ -582,0 +575,4 @@
if method == updateMethodName {
arr, err := c.getNetConfigFromNetmapContract()
if err != nil {
panic(err)
Do we really need panic? Maybe return error?
Used panic here because don't want to change method signature and this approach was used before in this method.
@ -75,3 +76,3 @@
more appropriate for a specific deployment.
Use `__SYSTEM__` prefix for system attributes instead of `__NEOFS__`
Use `__SYSTEM__` prefix for system attributes instead of `__NEOFS__`
Unrelated to the commit.
Moved to another commit.
@ -582,0 +582,4 @@
panic(err)
}
for k, v := range m {
if slices.Contains(netmapConfigKeys, k) {
Do we really need this dependency? >_<
I mean we could use it, but let's create a task to use it across the whole repo, I think there are other places which could benefit.
Replaced slice with map.
4d23ac4d7d
to4d19cdc851
4d19cdc851
to49f712e0b6
49f712e0b6
to850d304a10
@ -86,2 +75,4 @@
alphabetContract,
}, contractList...)
netmapConfigKeys = map[string]any{
We use it only in 1 place, can we just iterate over a slice?
Done, please review.
@ -582,0 +574,4 @@
if method == updateMethodName {
arr, err := c.getNetConfigFromNetmapContract()
if err != nil {
panic(err)
Why do we panic here?
Used panic here because don't want to change method signature and this approach was used before in this method.
850d304a10
to9be5652b41