Skip to content

sanitize connection pool key pod name#686

Merged
mergify[bot] merged 2 commits into
csi-addons:mainfrom
rewantsoni:fix
Oct 7, 2024
Merged

sanitize connection pool key pod name#686
mergify[bot] merged 2 commits into
csi-addons:mainfrom
rewantsoni:fix

Conversation

@rewantsoni

Copy link
Copy Markdown
Contributor

The csi-addons sidecar sanitizes the holder identity. The connection pool stores the mapping with key as the unsanitized name for csiaddonsnode, which leads to the failed to find the namespace where driver issue.

To address this, we should sanitize the csiaddonsnode name before entering it into connection pool.

@rewantsoni

Copy link
Copy Markdown
Contributor Author

/hold for testing reclaim space

Madhu-1
Madhu-1 previously approved these changes Oct 1, 2024
Comment thread internal/controller/csiaddons/csiaddonsnode_controller.go
@mergify mergify Bot dismissed Madhu-1’s stale review October 1, 2024 14:09

Pull request has been modified.

Comment thread internal/controller/csiaddons/csiaddonsnode_controller.go Outdated
Comment thread internal/controller/csiaddons/csiaddonsnode_controller.go Outdated
Comment thread internal/controller/replication.storage/volumereplication_controller.go Outdated
@rewantsoni rewantsoni force-pushed the fix branch 2 times, most recently from 72be5a0 to c41ba28 Compare October 1, 2024 14:21
@nixpanic

nixpanic commented Oct 2, 2024

Copy link
Copy Markdown
Member

Can you please include a description in the commits as well? You have a nice description in the PR, and having it in the 1st commit would add it to the history in the git repository.

The csi-addons sidecar sanitizes the holder identity. The
connection pool stores the mapping with key as the unsanitized
name for csiaddonsnode, which leads to the failed to find the
namespace where driver issue.

To address this, we should sanitize the csiaddonsnode name before
entering it into connection pool.

Signed-off-by: Rewant Soni <resoni@redhat.com>
Signed-off-by: Rewant Soni <resoni@redhat.com>
@mergify mergify Bot merged commit 7b4049d into csi-addons:main Oct 7, 2024
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.

4 participants