Skip to content

Commit

Permalink
sanitize pod name for connection pool key
Browse files Browse the repository at this point in the history
Signed-off-by: Rewant Soni <[email protected]>
  • Loading branch information
rewantsoni committed Oct 1, 2024
1 parent b0ae317 commit ff021fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/csiaddons/csiaddonsnode_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (r *CSIAddonsNodeReconciler) Reconcile(ctx context.Context, req ctrl.Reques
nodeID := csiAddonsNode.Spec.Driver.NodeID
driverName := csiAddonsNode.Spec.Driver.Name

key := csiAddonsNode.Namespace + "/" + csiAddonsNode.Name
key := csiAddonsNode.Namespace + "/" + util.NormalizeLeaseName(csiAddonsNode.Name)
logger = logger.WithValues("NodeID", nodeID, "DriverName", driverName)

if !csiAddonsNode.DeletionTimestamp.IsZero() {
Expand Down

0 comments on commit ff021fe

Please sign in to comment.