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

[BUG] Flyte-Binary Helm chart email notifications don't behave as expected #4024

Open
2 tasks done
peterklingelhofer opened this issue Sep 11, 2023 · 2 comments
Open
2 tasks done
Assignees
Labels
backlogged For internal use. Reserved for contributor team workflow. bug Something isn't working

Comments

@peterklingelhofer
Copy link

Describe the bug

Myself and another user both seem to be running into an issue with template literals when attempting to add notifications inline in the flyte-binary helm chart (going off of the Workflow Notifications section in the docs. Here's the Slack thread which details what's occurring: https://discuss.flyte.org/t/14164511/hi-we-are-trying-to-implement-workflow-slack-notifications-w

We see this error when attempting to use workflow in a template literal (the same is true of name):
parse error at (flyte-binary/templates/deployment.yaml:4): function "workflow" not defined. Interestingly, when we don't use template literals, we can build the helm chart successfully and receive notifications, but they come back with this subject: flyteidl.admin.EmailNotification (not using the subject we've inputted), and with the body combining these values all into a base64-encoded string: "<mailto:[email protected]|[email protected]>"[email protected] this is the email subject"hi this is the email body.

Unfortunately, we don't need the extra infrastructure of flyte-core, so we were hoping to get this working with the flyte-binary chart. In the meantime, I would be very appreciative if anyone has an example of a helm chart for Flyte Binary that has successfully gotten notifications working with the template literals from the example in the docs. Perhaps if there is no immediately obvious solution we can hope the webhooks PR is merged soon: flyteorg/flyteadmin#583

Expected behavior

Expect the helm chart to build with template literals successfully, so we can see which workflows are failing.

Additional context to reproduce

configuration:
  inline:
    notifications:
      type: "aws"
      region: "us-east-1"
      publisher:
        topicName: "arn:aws:sns:us-east-1:#########:some-name"
      processor:
        queueName: "some-name"
        accountId: "#########"
      emailer:
        sender: "[email protected]"
        subject: "hi this is the email subject"
        body: "hi this is the email body"

Yields this in the inline yaml:

configuration:
  inline:
    notifications:
      type: "aws"
      region: "us-east-1"
      publisher:
        topicName: "arn:aws:sns:us-east-1:#########:some-name"
      processor:
        queueName: "some-name"
        accountId: "#########"
      emailer:
        sender: "<mailto:[email protected]|[email protected]>"
        subject: "hi this is the email subject"
        body: "hi this is the email body"

Screenshots

No response

Are you sure this issue hasn't been raised already?

  • Yes

Have you read the Code of Conduct?

  • Yes
@peterklingelhofer peterklingelhofer added bug Something isn't working untriaged This issues has not yet been looked at by the Maintainers labels Sep 11, 2023
@peterklingelhofer peterklingelhofer changed the title [BUG] Flyte-Binary email notifications don't behave as expected [BUG] Flyte-Binary Helm chart email notifications don't behave as expected Sep 11, 2023
@eapolinario eapolinario self-assigned this Sep 15, 2023
@eapolinario eapolinario added backlogged For internal use. Reserved for contributor team workflow. and removed untriaged This issues has not yet been looked at by the Maintainers labels Sep 21, 2023
Copy link

Hello 👋, this issue has been inactive for over 9 months. To help maintain a clean and focused backlog, we'll be marking this issue as stale and will engage on it to decide if it is still applicable.
Thank you for your contribution and understanding! 🙏

@github-actions github-actions bot added the stale label Jun 18, 2024
@peterklingelhofer
Copy link
Author

Solution via escaping brackets here in the new thread: https://flyte-org.slack.com/archives/CP2HDHKE1/p1695826300502159

@github-actions github-actions bot removed the stale label Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlogged For internal use. Reserved for contributor team workflow. bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants