Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect Mattermost websocket subpath URLs #1040

Merged
merged 1 commit into from
Apr 13, 2023

Conversation

tchellomello
Copy link
Contributor

@tchellomello tchellomello commented Apr 13, 2023

Description

Changes proposed in this pull request:

Whenever a subpath is passed on the Mattermost.URL, we should use the same path for its websocket connection string.

Testing

Related issue(s)

Fixes: #1037

Whenever a subpath is passed on the Mattermost.URL, we should use the
same path for its websocket connection string.

Signed-off-by: Marcelo Mello <[email protected]>
Copy link
Member

@pkosiec pkosiec left a comment

Choose a reason for hiding this comment

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

LGTM 🚀 Thanks a lot!

@pkosiec pkosiec enabled auto-merge (squash) April 13, 2023 15:47
@pkosiec pkosiec merged commit bd64d77 into kubeshop:main Apr 13, 2023
@tchellomello tchellomello deleted the fix-websocket-mattermost branch April 13, 2023 16:02
@tchellomello
Copy link
Contributor Author

@pkosiec I tested with the image ghcr.io/kubeshop/pr/botkube:1040-PR and it's working now :)

❯ kubectl get pods -w
NAME                       READY   STATUS    RESTARTS   AGE
botkube-5474f55bc6-89x4t   2/2     Running   0          41s

❯ kubectl images 
[Summary]: 1 namespaces, 1 pods, 2 containers and 2 different images
+--------------------------+-------------+----------------------------------------------------+
|           Pod            |  Container  |                       Image                        |
+--------------------------+-------------+----------------------------------------------------+
| botkube-5474f55bc6-89x4t | botkube     | ghcr.io/kubeshop/pr/botkube:1040-PR                |
+                          +-------------+----------------------------------------------------+
|                          | cfg-watcher | ghcr.io/kubeshop/k8s-sidecar:ignore-initial-events |
+--------------------------+-------------+----------------------------------------------------+

pkosiec pushed a commit to pkosiec/botkube that referenced this pull request May 11, 2023
Whenever a subpath is passed on the Mattermost.URL, we should use the
same path for its websocket connection string.

Signed-off-by: Marcelo Mello <[email protected]>
(cherry picked from commit bd64d77)
pkosiec pushed a commit that referenced this pull request May 11, 2023
Whenever a subpath is passed on the Mattermost.URL, we should use the
same path for its websocket connection string.

Signed-off-by: Marcelo Mello <[email protected]>
(cherry picked from commit bd64d77)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Botkube connects to Mattermost instance and then dies immediately (due to wrong websocket connection URL)
2 participants