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

feat(sensor): email trigger #2793

Merged
merged 29 commits into from
Sep 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
136dbe2
chore(deps): bump github.com/antonmedv/expr from 1.14.3 to 1.15.0 (#2…
dependabot[bot] Sep 2, 2023
eb38cea
Add EmailTrigger Type
gokulav137 Sep 7, 2023
0bdf464
Add EmailTrigger which impliments Trigger interface
gokulav137 Sep 7, 2023
c785f15
Add EmailTrigger to GetTrigger
gokulav137 Sep 7, 2023
e440c25
Fix Protobuf Errors
gokulav137 Sep 7, 2023
147bd97
Make codegen
gokulav137 Sep 7, 2023
296311b
Fix type error - Cast emaiTrigger.Port int32 to int
gokulav137 Sep 7, 2023
afaf548
Move email trigger validation from sensor/trigger/email/email.go to c…
gokulav137 Sep 7, 2023
cb1aa75
Modify To email address from list of string to string with one email …
gokulav137 Sep 9, 2023
5ff643c
Refactor EmailTrigger type - Reorder for readability, bring smtp
gokulav137 Sep 9, 2023
3a8ca4d
Modify EmailTrigger To,From,Subject and Body to be optional
gokulav137 Sep 9, 2023
1be6e5d
Add optional and default comment to Port for EmailTrigger type
gokulav137 Sep 9, 2023
a3ac2ba
Add EmailTrigger Username, Host, Port validation to Sensor Validation
gokulav137 Sep 9, 2023
266e96b
Add unit tests for email package - sensors/triggers/email
gokulav137 Sep 9, 2023
5c5a6c1
Add Example for EmailTrigger
gokulav137 Sep 9, 2023
ea3ec14
Add formatting for EmailTrigger in types - add full stop
gokulav137 Sep 9, 2023
fee3853
Run make codegen
gokulav137 Sep 9, 2023
f722bcf
Refactor tests to not use variable defined outside Run
gokulav137 Sep 9, 2023
c5bc890
Fix linting errors
gokulav137 Sep 9, 2023
bd49ef9
Run make codegen - after downgrading pandoc to 2.17.1
gokulav137 Sep 9, 2023
a153daf
Merge branch 'master' into feature-sensor-email-trigger
gokulav137 Sep 9, 2023
31d9056
Modify EmailTrigger to support multiple to email addresses
gokulav137 Sep 16, 2023
bbb1f45
Modified EmailTriger example to use list for To and reduced example c…
gokulav137 Sep 16, 2023
115668e
Add support for smtp servers without authentication
gokulav137 Sep 16, 2023
9620178
Run Make codegen
gokulav137 Sep 16, 2023
dbfc55c
Modify example for documentation
gokulav137 Sep 16, 2023
37a460f
Fix typo in example DataTemplate -> dataTemplate
gokulav137 Sep 16, 2023
2858e03
Add Doc for Email Trigger
gokulav137 Sep 16, 2023
33b73ec
Merge branch 'master' into feature-sensor-email-trigger
gokulav137 Sep 16, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions api/jsonschema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3424,6 +3424,55 @@
],
"type": "object"
},
"io.argoproj.sensor.v1alpha1.EmailTrigger": {
"description": "EmailTrigger refers to the specification of the email notification trigger.",
"properties": {
"body": {
"description": "Body refers to the body/content of the email send.",
"type": "string"
},
"from": {
"description": "From refers to the address from which the email is send from.",
"type": "string"
},
"host": {
"description": "Host refers to the smtp host url to which email is send.",
"type": "string"
},
"parameters": {
"description": "Parameters is the list of key-value extracted from event's payload that are applied to the trigger resource.",
"items": {
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.TriggerParameter"
},
"type": "array"
},
"port": {
"description": "Port refers to the smtp server port to which email is send. Defaults to 0.",
"format": "int32",
"type": "integer"
},
"smtpPassword": {
"$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector",
"description": "SMTPPassword refers to the Kubernetes secret that holds the smtp password used to connect to smtp server."
},
"subject": {
"description": "Subject refers to the subject line for the email send.",
"type": "string"
},
"to": {
"description": "To refers to the email addresses to which the emails are send.",
"items": {
"type": "string"
},
"type": "array"
},
"username": {
"description": "Username refers to the username used to connect to the smtp server.",
"type": "string"
}
},
"type": "object"
},
"io.argoproj.sensor.v1alpha1.Event": {
"description": "Event represents the cloudevent received from an event source.",
"properties": {
Expand Down Expand Up @@ -4496,6 +4545,10 @@
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.CustomTrigger",
"description": "CustomTrigger refers to the trigger designed to connect to a gRPC trigger server and execute a custom trigger."
},
"email": {
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.EmailTrigger",
"description": "Email refers to the trigger designed to send an email notification"
},
"http": {
"$ref": "#/definitions/io.argoproj.sensor.v1alpha1.HTTPTrigger",
"description": "HTTP refers to the trigger designed to dispatch a HTTP request with on-the-fly constructable payload."
Expand Down
53 changes: 53 additions & 0 deletions api/openapi-spec/swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

147 changes: 147 additions & 0 deletions api/sensor.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading