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

Support URL trigger sources #66

Merged
merged 1 commit into from
Jul 26, 2018

Conversation

shrinandj
Copy link
Contributor

Sensor yamls can now specify the workflow location as a url path with this change.

Refs #41

@shrinandj shrinandj requested review from spk83 and magaldima July 26, 2018 00:36
Inline string `json:"inline,omitempty" protobuf:"bytes,2,opt,name=inline"`
S3 *S3Artifact `json:"s3,omitempty" protobuf:"bytes,1,opt,name=s3"`
Inline string `json:"inline,omitempty" protobuf:"bytes,2,opt,name=inline"`
URL *URLArtifact `json:"url,omitempty" protobuf:"bytes,4,opt,name=url"`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The offset is intentionally set to 4. 3 will be used for file artifacts (#65).


func (reader *URLReader) Read() ([]byte, error) {
tr := &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you think we should be able to support providing options/configuration to the http.Client through the UrlArtifact?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea.. I'll do a separate PR for this.

Sensor yamls can now specify the workflow location as a url path with this change.

Refs argoproj#41
@shrinandj shrinandj force-pushed the shri/support-url-artifacts branch from 26068f0 to 0d6f3fb Compare July 26, 2018 00:47
Copy link
Contributor

@magaldima magaldima left a comment

Choose a reason for hiding this comment

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

lgtm! thanks for doing this

@magaldima magaldima merged commit 38d6adc into argoproj:master Jul 26, 2018
juliev0 pushed a commit to juliev0/argo-events that referenced this pull request Mar 29, 2022
Sensor yamls can now specify the workflow location as a url path with this change.

Refs argoproj#41
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