Skip to content

Fix key in connection pool#704

Merged
mergify[bot] merged 2 commits into
csi-addons:mainfrom
Madhu-1:fix-connection-key
Nov 13, 2024
Merged

Fix key in connection pool#704
mergify[bot] merged 2 commits into
csi-addons:mainfrom
Madhu-1:fix-connection-key

Conversation

@Madhu-1

@Madhu-1 Madhu-1 commented Nov 12, 2024

Copy link
Copy Markdown
Member

In the connection pool we store the connection with unique identifier, the pod name and the namespace is used as the key to the connection in the pool and GetLeaderByDriver get the leader based on the driver name and uses the identity of the leader which is pod name as the key to get the connection.

as its been 2 years to support legacy
endpoint, lets remove the support for it.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
@Madhu-1 Madhu-1 changed the title Fix connection key in connection pool Fix key in connection pool Nov 12, 2024
Comment thread internal/controller/csiaddons/csiaddonsnode_controller.go Outdated
In the connection pool we store the connection
with unique identifier, the pod name and the
namespace is used as the key to the connection
in the pool and GetLeaderByDriver get the leader
based on the driver name and uses the identity
of the leader which is pod name as the key to
get the connection.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
@Madhu-1 Madhu-1 requested a review from nixpanic November 12, 2024 16:43
@mergify mergify Bot merged commit 6821a14 into csi-addons:main Nov 13, 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.

3 participants