-
Notifications
You must be signed in to change notification settings - Fork 157
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
kargo Slack Posting messages not received #3166
Comments
@creeram is there some possibility of posting to netcat or socat instead so you can see what's coming through? |
@krancour What do you mean by posting to Netcat or Socat? could you give me some info on how to do that? |
Depending on your OS and package manager, you should have at least one of the command line utilities The syntax is slightly different for each and you'll have to look it up, but all three should allow you to easily listen for TCP connections on a port of your choosing and echo whatever they receive. This means if you send it an HTTP request it will show you method, path, HTTP version, all headers, and the message body. Using
Then alter your Run your promotion and see what, if anything |
It seems the message is coming through with extra quotes:
|
There's some odd interplay between the |
|
@krancour That means I will have to wait until the next version is released? |
I'm hoping for a patch release tomorrow and that's the milestone I've included this in. |
@krancour With the new release the slack post message is working. but for that i had to hardcode the slack token here
I tried creating a k8s secret for that as well but it didn't work. How can i make it work with K8 Secret?
the k8s secret used:
and how can we use variables inside that text block? like |
This doesn't match the expression used for accessing the secret (
This would:
I'm afraid I don't understand the question, as I already see you successfully using |
@krancour I tried both secrets but it didn't work.
For variable how can I use it here
|
@creeram here's a full working example:
|
Could you please help me with one more detail? how can I get the info from a variable for who did the promotion? |
That's not something that's currently exposed. It should be easy enough to add if you would please open an issue requesting it. |
Discussed in #3165
Originally posted by creeram December 20, 2024
I'm trying to post messages to Slack. The promotion is successful, but I don't receive any notifications or messages in the channel.
The Slack credentials are valid and tested with the curl command, and I can see the messages in the Slack channel.
Kargo Verision:
Screenshot of Stage promotion successful run.
There are not error logs in Kargo API and controller pods.
The text was updated successfully, but these errors were encountered: