Skip to content

MultiAZ NodeGetInfo changes#488

Merged
EvgenyUglov merged 24 commits into
mainfrom
usr/evgeny/multiaz-nodegetinfo
Mar 18, 2025
Merged

MultiAZ NodeGetInfo changes#488
EvgenyUglov merged 24 commits into
mainfrom
usr/evgeny/multiaz-nodegetinfo

Conversation

@EvgenyUglov

@EvgenyUglov EvgenyUglov commented Mar 14, 2025

Copy link
Copy Markdown
Contributor

Description

This PR adds changes to NodeGetInfo to update node topology according to zone labels from the secret

GitHub Issues

List the GitHub issues impacted by this PR:

GitHub Issue #
https://github.com/dell/csm/issues/1748

Checklist:

  • Have you run format,vet & lint checks against your submission?
  • Have you made sure that the code compiles?
  • Did you run the unit & integration tests successfully?
  • Have you maintained at least 90% code coverage?
  • Have you commented your code, particularly in hard-to-understand areas
  • Have you done corresponding changes to the documentation
  • Did you run tests in a real Kubernetes cluster?
  • Backward compatibility is not broken

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration

Comment thread service/service.go Outdated
@github-actions

Copy link
Copy Markdown
Contributor

Merging this branch will not change overall coverage

Impacted Packages Coverage Δ 🤖
github.com/dell/csi-powermax/service 0.00% (ø)

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/dell/csi-powermax/service/node.go 0.00% (ø) 0 0 0
github.com/dell/csi-powermax/service/service.go 0.00% (ø) 0 0 0

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/dell/csi-powermax/service/node_test.go
  • github.com/dell/csi-powermax/service/service_test.go

@EvgenyUglov EvgenyUglov marked this pull request as ready for review March 18, 2025 17:46
@EvgenyUglov EvgenyUglov requested a review from abhi16394 as a code owner March 18, 2025 17:46
Comment thread service/node.go
Comment thread service/service.go
arrayLabels := arrayConfig.Labels
nodeLabels, err := s.k8sUtils.GetNodeLabels(s.opts.NodeFullName)
if err != nil {
log.Infof("failed to get Node Labels with error '%s'", err.Error())

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be an Error log?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question. I followed the same way as it is implemented in NodeGetInfo. It is an Info log there. Do we want both places to show an error? We don't interrupt after this, so for me it looks more like an Info, but logically it is an error

@EvgenyUglov EvgenyUglov merged commit fb3a996 into main Mar 18, 2025
@EvgenyUglov EvgenyUglov deleted the usr/evgeny/multiaz-nodegetinfo branch March 18, 2025 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants