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

Need to call out that quotes cannot be used in this handler's webhook_url env var #28

Open
asachs01 opened this issue Mar 30, 2020 · 0 comments

Comments

@asachs01
Copy link
Contributor

After running into some errors surrounding the webhook url in my config that looked like:

---
type: Handler
api_version: core/v2
metadata:
  name: slack-default
  namespace: default
spec:
  command: sensu-slack-handler --channel '#alerts' --username 'sensu'
  env_vars:
  - SLACK_WEBHOOK_URL='https://hooks.slack.com/services/ABCDEFG/HIJKLMNOP/1234567890'
  filters:
  - is_incident
  - not_silenced
  - no_contacts
  handlers: null
  runtime_assets:
  - sensu/sensu-slack-handler
  secrets: null
  timeout: 10
  type: pipe

I reached out to our engineering team, who advised that the slack golang library + yaml does not allow the env var to be surrounded by quotes. We need to ensure that we call this out in the readme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant