-
Notifications
You must be signed in to change notification settings - Fork 750
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
Support URL trigger sources #66
Conversation
pkg/apis/sensor/v1alpha1/types.go
Outdated
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"` |
There was a problem hiding this comment.
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}, |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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
26068f0
to
0d6f3fb
Compare
There was a problem hiding this 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
Sensor yamls can now specify the workflow location as a url path with this change. Refs argoproj#41
Sensor yamls can now specify the workflow location as a url path with this change.
Refs #41