I wouldn't worry about it, cucumber is mostly water and it certainly shouldn't take you out of ketosis. If that is the worst of your sins you are doing really well.
cucumber is on the "allow" list for sole source plus so you wont have come out of ketosis. in fact eating cucumber (unless you ate the whole stick!) is nothing to feel guilty about xx