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

chore(RHTAPWATCH-1137): send messages to sns #5

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

avi-biton
Copy link
Collaborator

@avi-biton avi-biton commented Jul 16, 2024

  • Add notifier interface
  • Add notifier to the reconciler
  • Implement SNSNotifier to send messages to Amazon SNS
  • Add mock notifier and use it in integration tests
  • Add unit tests

The parameters to communicate with AWS SNS are retrieved from environment variables:

  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  • AWS_SESSION_TOKEN (optional)
    to create a client

In addition, I added:

  • NOTIFICATION_REGION for the region
  • NOTIFICATION_TOPIC_ARN for the SNS topic ARN

@avi-biton avi-biton force-pushed the sns branch 2 times, most recently from d5a797b to b4c4118 Compare July 17, 2024 08:58
cmd/main.go Outdated Show resolved Hide resolved
Copy link
Member

@yftacherzog yftacherzog left a comment

Choose a reason for hiding this comment

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

lgtm

- Add notifier interface
- Add notifier to the reconciler
- Implement SNSNotifier to send messages to Amazon SNS
- Add mock notifier and use it in integration tests
- Add unit tests

Signed-off-by: Avi Biton <[email protected]>
@avi-biton avi-biton merged commit 729534f into konflux-ci:main Jul 17, 2024
2 checks passed
@avi-biton avi-biton deleted the sns branch July 17, 2024 09:24
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

Successfully merging this pull request may close these issues.

2 participants