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

Feature sensor email trigger #1

Open
wants to merge 31 commits into
base: master
Choose a base branch
from

Conversation

gokulav137
Copy link
Owner

Checklist:

@gokulav137 gokulav137 marked this pull request as ready for review September 9, 2023 11:52
dependabot bot and others added 20 commits September 9, 2023 19:19
…goproj#2781)

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: gokulav137 <[email protected]>
Signed-off-by: gokulav137 <[email protected]>
    - EmailTrigger use EmailService to send email
    - Execute asserts receiver email is provided
    - Execute asserts receiver emails are valid emails
    - Execute asserts Body cannot be empty
    - Execute asserts Subject cannot be empty

Signed-off-by: gokulav137 <[email protected]>
- Change Port from int to int32
- Fix typo portobuf to protobuf
- Change protobuf type for port from bytes to varint
- Fix typo protobuff to protobuf

Signed-off-by: gokulav137 <[email protected]>
Signed-off-by: gokulav137 <[email protected]>
…ontrollers/sensor/validate.go

Signed-off-by: gokulav137 <[email protected]>
…address

Change is made as notification.emailService doesnot support multiple to
email addresses

Signed-off-by: gokulav137 <[email protected]>
username and password together

Signed-off-by: gokulav137 <[email protected]>
- Add optional comment to EmailTrigger type
- Move validation for To,From,Subject and Body from
	controller validation to trigger execution validation

Signed-off-by: gokulav137 <[email protected]>
EmailTrigger Port default value specified as 0

Signed-off-by: gokulav137 <[email protected]>
- Username can't be empty
- Host can't be empty
- Port should be between 0-65535

Signed-off-by: gokulav137 <[email protected]>
- Test EmailTrigger.FetchResource
- Test EmailTrigger.ApplyResource
- Test EmailTrigger.Execute

Signed-off-by: gokulav137 <[email protected]>
Signed-off-by: gokulav137 <[email protected]>
Signed-off-by: gokulav137 <[email protected]>
@gokulav137 gokulav137 force-pushed the feature-sensor-email-trigger branch from 4e85cd9 to bd49ef9 Compare September 9, 2023 13:52
gokulav137 and others added 8 commits September 9, 2023 19:49
- Modified EmailTrigger.To from string to []string
- Refactored email sending logic to send an email each to all the
	addresses in To

Signed-off-by: gokulav137 <[email protected]>
…omplexity

Removed parameterization to reduce complexity in example

Signed-off-by: gokulav137 <[email protected]>
- Modify types comment for Username and SMTPPassword to be optional
- Remove Username and SMTPPassword requirement check
- Refactor SMTPPassword retrieval from secrets to only when SMTPPassword is
	not nil

Signed-off-by: gokulav137 <[email protected]>
Signed-off-by: gokulav137 <[email protected]>
- Add dynamic to email use case and commented satic to email use case

Signed-off-by: gokulav137 <[email protected]>
Signed-off-by: gokulav137 <[email protected]>
gokulav137 and others added 3 commits September 16, 2023 14:12
…afe maps

- HTTP client
- CustomTrigger client
- Kafka client
- Pulsar client
- NATS client
- Lambda client
- OpenWhisk client
- Eventbus client
- Servicebus client

Signed-off-by: gokulav137 <[email protected]>
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.

1 participant