You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
triggers:
- template:
name: slack-trigger
slack:
slackToken:
name: slack-secret
key: token
channel: __PLACEHOLDER__
message: hello world
parameters:
- src:
dependencyName: event
dataKey: body.channel
dest: slack.channel
- src:
dependencyName: event
dataKey: body.message # will become template eventually
dest: slack.message
and I want to fill the channel (and potentially parts of the message) in a k8s configmap (or secret) instead of the event body.
I want different slack channels between dev and prod deployments but the template should be shared.
I also need different channels depending on the body (with internal mapping , e.g. body with {key: "foo"} will go to bar), I can use a lua/jq script for this
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am creating a slack trigger like this:
and I want to fill the channel (and potentially parts of the message) in a k8s configmap (or secret) instead of the event body.
I want different slack channels between dev and prod deployments but the template should be shared.
I also need different channels depending on the body (with internal mapping , e.g. body with
{key: "foo"}
will go tobar
), I can use a lua/jq script for thisBeta Was this translation helpful? Give feedback.
All reactions