diff --git a/Gopkg.toml b/Gopkg.toml index 8109064692..c730975ec4 100644 --- a/Gopkg.toml +++ b/Gopkg.toml @@ -10,6 +10,7 @@ required = [ "github.com/golang/protobuf/protoc-gen-go", "github.com/gogo/protobuf/protoc-gen-gofast", "github.com/gogo/protobuf/protoc-gen-gogofast", + "gopkg.in/src-d/go-git.v4" ] [[constraint]] diff --git a/examples/sensors/trigger-source-git.yaml b/examples/sensors/trigger-source-git.yaml new file mode 100644 index 0000000000..1fee2d7f81 --- /dev/null +++ b/examples/sensors/trigger-source-git.yaml @@ -0,0 +1,72 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Sensor +metadata: + name: trigger-source-git + labels: + sensors.argoproj.io/sensor-controller-instanceid: argo-events +spec: + deploySpec: + containers: + - name: "sensor" + # this is an experimental image + image: "argoproj/sensor:v0.7.3" + imagePullPolicy: Always + volumeMounts: + - mountPath: /git/argoproj + name: argoproj + volumes: + - name: argoproj + emptyDir: {} + serviceAccountName: argo-events-sa + dependencies: + - name: "webhook-gateway-http:foo" + eventProtocol: + type: "HTTP" + http: + port: "9300" + triggers: + - name: workflow-trigger-1 + resource: + namespace: argo-events + group: argoproj.io + version: v1alpha1 + kind: Workflow + source: + git: + url: "https://github.com/argoproj/argo.git" + cloneDirectory: "/git/argoproj" + creds: + username: + name: github-secret + key: username + password: + name: github-secret + key: password + namespace: argo-events + filePath: "examples/hello-world.yaml" + tag: "v2.2.1" + - name: workflow-trigger-2 + resource: + namespace: argo-events + group: argoproj.io + version: v1alpha1 + kind: Workflow + source: + git: + url: "https://github.com/argoproj/argo.git" + cloneDirectory: "/git/argoproj" + creds: + username: + name: github-secret + key: username + password: + name: github-secret + key: password + namespace: argo-events + filePath: "examples/hello-world.yaml" + branch: "release-2.0" + # optional + remote: + name: "myremote" + urls: + - "https://github.com/VaibhavPage/argo.git" diff --git a/pkg/apis/common/generated.pb.go b/pkg/apis/common/generated.pb.go index 3101b74d67..5ac96b2433 100644 --- a/pkg/apis/common/generated.pb.go +++ b/pkg/apis/common/generated.pb.go @@ -17,9 +17,9 @@ limitations under the License. package common -import "github.com/gogo/protobuf/proto" -import "fmt" -import "math" +import proto "github.com/gogo/protobuf/proto" +import fmt "fmt" +import math "math" import v11 "k8s.io/api/core/v1" @@ -27,10 +27,10 @@ import github_com_minio_minio_go "github.com/minio/minio-go" import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" -import "strings" -import "reflect" +import strings "strings" +import reflect "reflect" -import "io" +import io "io" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal @@ -46,7 +46,7 @@ const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package func (m *Event) Reset() { *m = Event{} } func (*Event) ProtoMessage() {} func (*Event) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_1ecb42411ad60761, []int{0} + return fileDescriptor_generated_fe300a967e896a62, []int{0} } func (m *Event) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -74,7 +74,7 @@ var xxx_messageInfo_Event proto.InternalMessageInfo func (m *EventContext) Reset() { *m = EventContext{} } func (*EventContext) ProtoMessage() {} func (*EventContext) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_1ecb42411ad60761, []int{1} + return fileDescriptor_generated_fe300a967e896a62, []int{1} } func (m *EventContext) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -102,7 +102,7 @@ var xxx_messageInfo_EventContext proto.InternalMessageInfo func (m *EventProtocol) Reset() { *m = EventProtocol{} } func (*EventProtocol) ProtoMessage() {} func (*EventProtocol) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_1ecb42411ad60761, []int{2} + return fileDescriptor_generated_fe300a967e896a62, []int{2} } func (m *EventProtocol) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -130,7 +130,7 @@ var xxx_messageInfo_EventProtocol proto.InternalMessageInfo func (m *Http) Reset() { *m = Http{} } func (*Http) ProtoMessage() {} func (*Http) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_1ecb42411ad60761, []int{3} + return fileDescriptor_generated_fe300a967e896a62, []int{3} } func (m *Http) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -158,7 +158,7 @@ var xxx_messageInfo_Http proto.InternalMessageInfo func (m *Nats) Reset() { *m = Nats{} } func (*Nats) ProtoMessage() {} func (*Nats) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_1ecb42411ad60761, []int{4} + return fileDescriptor_generated_fe300a967e896a62, []int{4} } func (m *Nats) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -186,7 +186,7 @@ var xxx_messageInfo_Nats proto.InternalMessageInfo func (m *S3Artifact) Reset() { *m = S3Artifact{} } func (*S3Artifact) ProtoMessage() {} func (*S3Artifact) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_1ecb42411ad60761, []int{5} + return fileDescriptor_generated_fe300a967e896a62, []int{5} } func (m *S3Artifact) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -214,7 +214,7 @@ var xxx_messageInfo_S3Artifact proto.InternalMessageInfo func (m *S3Bucket) Reset() { *m = S3Bucket{} } func (*S3Bucket) ProtoMessage() {} func (*S3Bucket) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_1ecb42411ad60761, []int{6} + return fileDescriptor_generated_fe300a967e896a62, []int{6} } func (m *S3Bucket) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -242,7 +242,7 @@ var xxx_messageInfo_S3Bucket proto.InternalMessageInfo func (m *S3Filter) Reset() { *m = S3Filter{} } func (*S3Filter) ProtoMessage() {} func (*S3Filter) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_1ecb42411ad60761, []int{7} + return fileDescriptor_generated_fe300a967e896a62, []int{7} } func (m *S3Filter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -270,7 +270,7 @@ var xxx_messageInfo_S3Filter proto.InternalMessageInfo func (m *URI) Reset() { *m = URI{} } func (*URI) ProtoMessage() {} func (*URI) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_1ecb42411ad60761, []int{8} + return fileDescriptor_generated_fe300a967e896a62, []int{8} } func (m *URI) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3022,10 +3022,10 @@ var ( ) func init() { - proto.RegisterFile("github.com/argoproj/argo-events/pkg/apis/common/generated.proto", fileDescriptor_generated_1ecb42411ad60761) + proto.RegisterFile("github.com/argoproj/argo-events/pkg/apis/common/generated.proto", fileDescriptor_generated_fe300a967e896a62) } -var fileDescriptor_generated_1ecb42411ad60761 = []byte{ +var fileDescriptor_generated_fe300a967e896a62 = []byte{ // 1309 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xcf, 0x6f, 0x1b, 0xc5, 0x17, 0x8f, 0x13, 0xdb, 0xb1, 0xc7, 0xed, 0x37, 0xe9, 0xf4, 0x5b, 0x61, 0x05, 0xd5, 0x09, 0x46, diff --git a/pkg/apis/gateway/v1alpha1/generated.pb.go b/pkg/apis/gateway/v1alpha1/generated.pb.go index b9d85e04cf..a14fedd9a5 100644 --- a/pkg/apis/gateway/v1alpha1/generated.pb.go +++ b/pkg/apis/gateway/v1alpha1/generated.pb.go @@ -17,19 +17,19 @@ limitations under the License. package v1alpha1 -import "github.com/gogo/protobuf/proto" -import "fmt" -import "math" -import "github.com/argoproj/argo-events/pkg/apis/common" +import proto "github.com/gogo/protobuf/proto" +import fmt "fmt" +import math "math" +import common "github.com/argoproj/argo-events/pkg/apis/common" import v11 "k8s.io/api/core/v1" import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" -import "strings" -import "reflect" +import strings "strings" +import reflect "reflect" -import "io" +import io "io" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal @@ -45,7 +45,7 @@ const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package func (m *Gateway) Reset() { *m = Gateway{} } func (*Gateway) ProtoMessage() {} func (*Gateway) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_d61eb949e4c0f5b3, []int{0} + return fileDescriptor_generated_d7e7992cb16da963, []int{0} } func (m *Gateway) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -73,7 +73,7 @@ var xxx_messageInfo_Gateway proto.InternalMessageInfo func (m *GatewayList) Reset() { *m = GatewayList{} } func (*GatewayList) ProtoMessage() {} func (*GatewayList) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_d61eb949e4c0f5b3, []int{1} + return fileDescriptor_generated_d7e7992cb16da963, []int{1} } func (m *GatewayList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -101,7 +101,7 @@ var xxx_messageInfo_GatewayList proto.InternalMessageInfo func (m *GatewayNotificationWatcher) Reset() { *m = GatewayNotificationWatcher{} } func (*GatewayNotificationWatcher) ProtoMessage() {} func (*GatewayNotificationWatcher) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_d61eb949e4c0f5b3, []int{2} + return fileDescriptor_generated_d7e7992cb16da963, []int{2} } func (m *GatewayNotificationWatcher) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -129,7 +129,7 @@ var xxx_messageInfo_GatewayNotificationWatcher proto.InternalMessageInfo func (m *GatewaySpec) Reset() { *m = GatewaySpec{} } func (*GatewaySpec) ProtoMessage() {} func (*GatewaySpec) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_d61eb949e4c0f5b3, []int{3} + return fileDescriptor_generated_d7e7992cb16da963, []int{3} } func (m *GatewaySpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -157,7 +157,7 @@ var xxx_messageInfo_GatewaySpec proto.InternalMessageInfo func (m *GatewayStatus) Reset() { *m = GatewayStatus{} } func (*GatewayStatus) ProtoMessage() {} func (*GatewayStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_d61eb949e4c0f5b3, []int{4} + return fileDescriptor_generated_d7e7992cb16da963, []int{4} } func (m *GatewayStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -185,7 +185,7 @@ var xxx_messageInfo_GatewayStatus proto.InternalMessageInfo func (m *NodeStatus) Reset() { *m = NodeStatus{} } func (*NodeStatus) ProtoMessage() {} func (*NodeStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_d61eb949e4c0f5b3, []int{5} + return fileDescriptor_generated_d7e7992cb16da963, []int{5} } func (m *NodeStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -213,7 +213,7 @@ var xxx_messageInfo_NodeStatus proto.InternalMessageInfo func (m *NotificationWatchers) Reset() { *m = NotificationWatchers{} } func (*NotificationWatchers) ProtoMessage() {} func (*NotificationWatchers) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_d61eb949e4c0f5b3, []int{6} + return fileDescriptor_generated_d7e7992cb16da963, []int{6} } func (m *NotificationWatchers) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -241,7 +241,7 @@ var xxx_messageInfo_NotificationWatchers proto.InternalMessageInfo func (m *SensorNotificationWatcher) Reset() { *m = SensorNotificationWatcher{} } func (*SensorNotificationWatcher) ProtoMessage() {} func (*SensorNotificationWatcher) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_d61eb949e4c0f5b3, []int{7} + return fileDescriptor_generated_d7e7992cb16da963, []int{7} } func (m *SensorNotificationWatcher) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2444,10 +2444,10 @@ var ( ) func init() { - proto.RegisterFile("github.com/argoproj/argo-events/pkg/apis/gateway/v1alpha1/generated.proto", fileDescriptor_generated_d61eb949e4c0f5b3) + proto.RegisterFile("github.com/argoproj/argo-events/pkg/apis/gateway/v1alpha1/generated.proto", fileDescriptor_generated_d7e7992cb16da963) } -var fileDescriptor_generated_d61eb949e4c0f5b3 = []byte{ +var fileDescriptor_generated_d7e7992cb16da963 = []byte{ // 1073 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x5d, 0x6f, 0x1b, 0x45, 0x17, 0xce, 0xda, 0x71, 0x6c, 0x8f, 0x93, 0x7e, 0xcc, 0xdb, 0x57, 0x2c, 0x46, 0x72, 0x2a, 0x5f, diff --git a/pkg/apis/gateway/v1alpha1/openapi_generated.go b/pkg/apis/gateway/v1alpha1/openapi_generated.go index 0bfe83b03f..ac1aa9c10e 100644 --- a/pkg/apis/gateway/v1alpha1/openapi_generated.go +++ b/pkg/apis/gateway/v1alpha1/openapi_generated.go @@ -163,7 +163,6 @@ func schema_pkg_apis_gateway_v1alpha1_GatewayNotificationWatcher(ref common.Refe Required: []string{"name", "port", "endpoint"}, }, }, - Dependencies: []string{}, } } @@ -267,6 +266,7 @@ func schema_pkg_apis_gateway_v1alpha1_GatewayStatus(ref common.ReferenceCallback Description: "Nodes is a mapping between a node ID and the node's status it records the states for the configurations of gateway.", Type: []string{"object"}, AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Ref: ref("github.com/argoproj/argo-events/pkg/apis/gateway/v1alpha1.NodeStatus"), @@ -400,6 +400,5 @@ func schema_pkg_apis_gateway_v1alpha1_SensorNotificationWatcher(ref common.Refer Required: []string{"name"}, }, }, - Dependencies: []string{}, } } diff --git a/pkg/apis/sensor/v1alpha1/generated.pb.go b/pkg/apis/sensor/v1alpha1/generated.pb.go index 3967b6f2f5..b3cc89e3b0 100644 --- a/pkg/apis/sensor/v1alpha1/generated.pb.go +++ b/pkg/apis/sensor/v1alpha1/generated.pb.go @@ -17,19 +17,19 @@ limitations under the License. package v1alpha1 -import "github.com/gogo/protobuf/proto" -import "fmt" -import "math" -import "github.com/argoproj/argo-events/pkg/apis/common" +import proto "github.com/gogo/protobuf/proto" +import fmt "fmt" +import math "math" +import common "github.com/argoproj/argo-events/pkg/apis/common" -import v11 "k8s.io/api/core/v1" +import v1 "k8s.io/api/core/v1" import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" -import "strings" -import "reflect" +import strings "strings" +import reflect "reflect" -import "io" +import io "io" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal @@ -45,7 +45,7 @@ const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package func (m *ArtifactLocation) Reset() { *m = ArtifactLocation{} } func (*ArtifactLocation) ProtoMessage() {} func (*ArtifactLocation) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_00c8a4131a6a39b4, []int{0} + return fileDescriptor_generated_83408b5aadd35c22, []int{0} } func (m *ArtifactLocation) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -73,7 +73,7 @@ var xxx_messageInfo_ArtifactLocation proto.InternalMessageInfo func (m *ConfigmapArtifact) Reset() { *m = ConfigmapArtifact{} } func (*ConfigmapArtifact) ProtoMessage() {} func (*ConfigmapArtifact) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_00c8a4131a6a39b4, []int{1} + return fileDescriptor_generated_83408b5aadd35c22, []int{1} } func (m *ConfigmapArtifact) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -101,7 +101,7 @@ var xxx_messageInfo_ConfigmapArtifact proto.InternalMessageInfo func (m *DataFilter) Reset() { *m = DataFilter{} } func (*DataFilter) ProtoMessage() {} func (*DataFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_00c8a4131a6a39b4, []int{2} + return fileDescriptor_generated_83408b5aadd35c22, []int{2} } func (m *DataFilter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -129,7 +129,7 @@ var xxx_messageInfo_DataFilter proto.InternalMessageInfo func (m *DependencyGroup) Reset() { *m = DependencyGroup{} } func (*DependencyGroup) ProtoMessage() {} func (*DependencyGroup) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_00c8a4131a6a39b4, []int{3} + return fileDescriptor_generated_83408b5aadd35c22, []int{3} } func (m *DependencyGroup) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -157,7 +157,7 @@ var xxx_messageInfo_DependencyGroup proto.InternalMessageInfo func (m *EventDependency) Reset() { *m = EventDependency{} } func (*EventDependency) ProtoMessage() {} func (*EventDependency) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_00c8a4131a6a39b4, []int{4} + return fileDescriptor_generated_83408b5aadd35c22, []int{4} } func (m *EventDependency) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -185,7 +185,7 @@ var xxx_messageInfo_EventDependency proto.InternalMessageInfo func (m *EventDependencyFilter) Reset() { *m = EventDependencyFilter{} } func (*EventDependencyFilter) ProtoMessage() {} func (*EventDependencyFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_00c8a4131a6a39b4, []int{5} + return fileDescriptor_generated_83408b5aadd35c22, []int{5} } func (m *EventDependencyFilter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -213,7 +213,7 @@ var xxx_messageInfo_EventDependencyFilter proto.InternalMessageInfo func (m *FileArtifact) Reset() { *m = FileArtifact{} } func (*FileArtifact) ProtoMessage() {} func (*FileArtifact) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_00c8a4131a6a39b4, []int{6} + return fileDescriptor_generated_83408b5aadd35c22, []int{6} } func (m *FileArtifact) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -238,10 +238,94 @@ func (m *FileArtifact) XXX_DiscardUnknown() { var xxx_messageInfo_FileArtifact proto.InternalMessageInfo +func (m *GitArtifact) Reset() { *m = GitArtifact{} } +func (*GitArtifact) ProtoMessage() {} +func (*GitArtifact) Descriptor() ([]byte, []int) { + return fileDescriptor_generated_83408b5aadd35c22, []int{7} +} +func (m *GitArtifact) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GitArtifact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *GitArtifact) XXX_Merge(src proto.Message) { + xxx_messageInfo_GitArtifact.Merge(dst, src) +} +func (m *GitArtifact) XXX_Size() int { + return m.Size() +} +func (m *GitArtifact) XXX_DiscardUnknown() { + xxx_messageInfo_GitArtifact.DiscardUnknown(m) +} + +var xxx_messageInfo_GitArtifact proto.InternalMessageInfo + +func (m *GitCreds) Reset() { *m = GitCreds{} } +func (*GitCreds) ProtoMessage() {} +func (*GitCreds) Descriptor() ([]byte, []int) { + return fileDescriptor_generated_83408b5aadd35c22, []int{8} +} +func (m *GitCreds) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GitCreds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *GitCreds) XXX_Merge(src proto.Message) { + xxx_messageInfo_GitCreds.Merge(dst, src) +} +func (m *GitCreds) XXX_Size() int { + return m.Size() +} +func (m *GitCreds) XXX_DiscardUnknown() { + xxx_messageInfo_GitCreds.DiscardUnknown(m) +} + +var xxx_messageInfo_GitCreds proto.InternalMessageInfo + +func (m *GitRemoteConfig) Reset() { *m = GitRemoteConfig{} } +func (*GitRemoteConfig) ProtoMessage() {} +func (*GitRemoteConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_generated_83408b5aadd35c22, []int{9} +} +func (m *GitRemoteConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GitRemoteConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (dst *GitRemoteConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_GitRemoteConfig.Merge(dst, src) +} +func (m *GitRemoteConfig) XXX_Size() int { + return m.Size() +} +func (m *GitRemoteConfig) XXX_DiscardUnknown() { + xxx_messageInfo_GitRemoteConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_GitRemoteConfig proto.InternalMessageInfo + func (m *GroupVersionKind) Reset() { *m = GroupVersionKind{} } func (*GroupVersionKind) ProtoMessage() {} func (*GroupVersionKind) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_00c8a4131a6a39b4, []int{7} + return fileDescriptor_generated_83408b5aadd35c22, []int{10} } func (m *GroupVersionKind) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -269,7 +353,7 @@ var xxx_messageInfo_GroupVersionKind proto.InternalMessageInfo func (m *NodeStatus) Reset() { *m = NodeStatus{} } func (*NodeStatus) ProtoMessage() {} func (*NodeStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_00c8a4131a6a39b4, []int{8} + return fileDescriptor_generated_83408b5aadd35c22, []int{11} } func (m *NodeStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -297,7 +381,7 @@ var xxx_messageInfo_NodeStatus proto.InternalMessageInfo func (m *ResourceObject) Reset() { *m = ResourceObject{} } func (*ResourceObject) ProtoMessage() {} func (*ResourceObject) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_00c8a4131a6a39b4, []int{9} + return fileDescriptor_generated_83408b5aadd35c22, []int{12} } func (m *ResourceObject) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -325,7 +409,7 @@ var xxx_messageInfo_ResourceObject proto.InternalMessageInfo func (m *ResourceParameter) Reset() { *m = ResourceParameter{} } func (*ResourceParameter) ProtoMessage() {} func (*ResourceParameter) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_00c8a4131a6a39b4, []int{10} + return fileDescriptor_generated_83408b5aadd35c22, []int{13} } func (m *ResourceParameter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -353,7 +437,7 @@ var xxx_messageInfo_ResourceParameter proto.InternalMessageInfo func (m *ResourceParameterSource) Reset() { *m = ResourceParameterSource{} } func (*ResourceParameterSource) ProtoMessage() {} func (*ResourceParameterSource) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_00c8a4131a6a39b4, []int{11} + return fileDescriptor_generated_83408b5aadd35c22, []int{14} } func (m *ResourceParameterSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -381,7 +465,7 @@ var xxx_messageInfo_ResourceParameterSource proto.InternalMessageInfo func (m *RetryStrategy) Reset() { *m = RetryStrategy{} } func (*RetryStrategy) ProtoMessage() {} func (*RetryStrategy) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_00c8a4131a6a39b4, []int{12} + return fileDescriptor_generated_83408b5aadd35c22, []int{15} } func (m *RetryStrategy) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -409,7 +493,7 @@ var xxx_messageInfo_RetryStrategy proto.InternalMessageInfo func (m *Sensor) Reset() { *m = Sensor{} } func (*Sensor) ProtoMessage() {} func (*Sensor) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_00c8a4131a6a39b4, []int{13} + return fileDescriptor_generated_83408b5aadd35c22, []int{16} } func (m *Sensor) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -437,7 +521,7 @@ var xxx_messageInfo_Sensor proto.InternalMessageInfo func (m *SensorList) Reset() { *m = SensorList{} } func (*SensorList) ProtoMessage() {} func (*SensorList) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_00c8a4131a6a39b4, []int{14} + return fileDescriptor_generated_83408b5aadd35c22, []int{17} } func (m *SensorList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -465,7 +549,7 @@ var xxx_messageInfo_SensorList proto.InternalMessageInfo func (m *SensorSpec) Reset() { *m = SensorSpec{} } func (*SensorSpec) ProtoMessage() {} func (*SensorSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_00c8a4131a6a39b4, []int{15} + return fileDescriptor_generated_83408b5aadd35c22, []int{18} } func (m *SensorSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -493,7 +577,7 @@ var xxx_messageInfo_SensorSpec proto.InternalMessageInfo func (m *SensorStatus) Reset() { *m = SensorStatus{} } func (*SensorStatus) ProtoMessage() {} func (*SensorStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_00c8a4131a6a39b4, []int{16} + return fileDescriptor_generated_83408b5aadd35c22, []int{19} } func (m *SensorStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -521,7 +605,7 @@ var xxx_messageInfo_SensorStatus proto.InternalMessageInfo func (m *TimeFilter) Reset() { *m = TimeFilter{} } func (*TimeFilter) ProtoMessage() {} func (*TimeFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_00c8a4131a6a39b4, []int{17} + return fileDescriptor_generated_83408b5aadd35c22, []int{20} } func (m *TimeFilter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -549,7 +633,7 @@ var xxx_messageInfo_TimeFilter proto.InternalMessageInfo func (m *Trigger) Reset() { *m = Trigger{} } func (*Trigger) ProtoMessage() {} func (*Trigger) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_00c8a4131a6a39b4, []int{18} + return fileDescriptor_generated_83408b5aadd35c22, []int{21} } func (m *Trigger) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -577,7 +661,7 @@ var xxx_messageInfo_Trigger proto.InternalMessageInfo func (m *TriggerCondition) Reset() { *m = TriggerCondition{} } func (*TriggerCondition) ProtoMessage() {} func (*TriggerCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_00c8a4131a6a39b4, []int{19} + return fileDescriptor_generated_83408b5aadd35c22, []int{22} } func (m *TriggerCondition) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -605,7 +689,7 @@ var xxx_messageInfo_TriggerCondition proto.InternalMessageInfo func (m *URLArtifact) Reset() { *m = URLArtifact{} } func (*URLArtifact) ProtoMessage() {} func (*URLArtifact) Descriptor() ([]byte, []int) { - return fileDescriptor_generated_00c8a4131a6a39b4, []int{20} + return fileDescriptor_generated_83408b5aadd35c22, []int{23} } func (m *URLArtifact) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -638,6 +722,9 @@ func init() { proto.RegisterType((*EventDependency)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.EventDependency") proto.RegisterType((*EventDependencyFilter)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.EventDependencyFilter") proto.RegisterType((*FileArtifact)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.FileArtifact") + proto.RegisterType((*GitArtifact)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.GitArtifact") + proto.RegisterType((*GitCreds)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.GitCreds") + proto.RegisterType((*GitRemoteConfig)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.GitRemoteConfig") proto.RegisterType((*GroupVersionKind)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.GroupVersionKind") proto.RegisterType((*NodeStatus)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.NodeStatus") proto.RegisterType((*ResourceObject)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.ResourceObject") @@ -716,6 +803,16 @@ func (m *ArtifactLocation) MarshalTo(dAtA []byte) (int, error) { } i += n4 } + if m.Git != nil { + dAtA[i] = 0x32 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Git.Size())) + n5, err := m.Git.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n5 + } return i, nil } @@ -852,11 +949,11 @@ func (m *EventDependency) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x1a i++ i = encodeVarintGenerated(dAtA, i, uint64(m.Filters.Size())) - n5, err := m.Filters.MarshalTo(dAtA[i:]) + n6, err := m.Filters.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n5 + i += n6 dAtA[i] = 0x20 i++ if m.Connected { @@ -891,21 +988,21 @@ func (m *EventDependencyFilter) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x12 i++ i = encodeVarintGenerated(dAtA, i, uint64(m.Time.Size())) - n6, err := m.Time.MarshalTo(dAtA[i:]) + n7, err := m.Time.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n6 + i += n7 } if m.Context != nil { dAtA[i] = 0x1a i++ i = encodeVarintGenerated(dAtA, i, uint64(m.Context.Size())) - n7, err := m.Context.MarshalTo(dAtA[i:]) + n8, err := m.Context.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n7 + i += n8 } if len(m.Data) > 0 { for _, msg := range m.Data { @@ -944,6 +1041,147 @@ func (m *FileArtifact) MarshalTo(dAtA []byte) (int, error) { return i, nil } +func (m *GitArtifact) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GitArtifact) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.URL))) + i += copy(dAtA[i:], m.URL) + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.CloneDirectory))) + i += copy(dAtA[i:], m.CloneDirectory) + if m.Creds != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Creds.Size())) + n9, err := m.Creds.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n9 + } + dAtA[i] = 0x22 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) + i += copy(dAtA[i:], m.Namespace) + dAtA[i] = 0x2a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.SSHKeyPath))) + i += copy(dAtA[i:], m.SSHKeyPath) + dAtA[i] = 0x32 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.FilePath))) + i += copy(dAtA[i:], m.FilePath) + dAtA[i] = 0x3a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Branch))) + i += copy(dAtA[i:], m.Branch) + dAtA[i] = 0x42 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Tag))) + i += copy(dAtA[i:], m.Tag) + if m.Remote != nil { + dAtA[i] = 0x4a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Remote.Size())) + n10, err := m.Remote.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n10 + } + return i, nil +} + +func (m *GitCreds) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GitCreds) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Username != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Username.Size())) + n11, err := m.Username.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n11 + } + if m.Password != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Password.Size())) + n12, err := m.Password.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n12 + } + return i, nil +} + +func (m *GitRemoteConfig) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GitRemoteConfig) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + if len(m.URLS) > 0 { + for _, s := range m.URLS { + dAtA[i] = 0x12 + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + return i, nil +} + func (m *GroupVersionKind) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1012,19 +1250,19 @@ func (m *NodeStatus) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x32 i++ i = encodeVarintGenerated(dAtA, i, uint64(m.StartedAt.Size())) - n8, err := m.StartedAt.MarshalTo(dAtA[i:]) + n13, err := m.StartedAt.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n8 + i += n13 dAtA[i] = 0x3a i++ i = encodeVarintGenerated(dAtA, i, uint64(m.CompletedAt.Size())) - n9, err := m.CompletedAt.MarshalTo(dAtA[i:]) + n14, err := m.CompletedAt.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n9 + i += n14 dAtA[i] = 0x42 i++ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) @@ -1033,11 +1271,11 @@ func (m *NodeStatus) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x4a i++ i = encodeVarintGenerated(dAtA, i, uint64(m.Event.Size())) - n10, err := m.Event.MarshalTo(dAtA[i:]) + n15, err := m.Event.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n10 + i += n15 } return i, nil } @@ -1098,19 +1336,19 @@ func (m *ResourceObject) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x2a i++ i = encodeVarintGenerated(dAtA, i, uint64(m.GroupVersionKind.Size())) - n11, err := m.GroupVersionKind.MarshalTo(dAtA[i:]) + n16, err := m.GroupVersionKind.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n11 + i += n16 dAtA[i] = 0x32 i++ i = encodeVarintGenerated(dAtA, i, uint64(m.Source.Size())) - n12, err := m.Source.MarshalTo(dAtA[i:]) + n17, err := m.Source.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n12 + i += n17 return i, nil } @@ -1133,11 +1371,11 @@ func (m *ResourceParameter) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintGenerated(dAtA, i, uint64(m.Src.Size())) - n13, err := m.Src.MarshalTo(dAtA[i:]) + n18, err := m.Src.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n13 + i += n18 } dAtA[i] = 0x12 i++ @@ -1214,27 +1452,27 @@ func (m *Sensor) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) - n14, err := m.ObjectMeta.MarshalTo(dAtA[i:]) + n19, err := m.ObjectMeta.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n14 + i += n19 dAtA[i] = 0x12 i++ i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) - n15, err := m.Spec.MarshalTo(dAtA[i:]) + n20, err := m.Spec.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n15 + i += n20 dAtA[i] = 0x1a i++ i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) - n16, err := m.Status.MarshalTo(dAtA[i:]) + n21, err := m.Status.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n16 + i += n21 return i, nil } @@ -1256,11 +1494,11 @@ func (m *SensorList) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) - n17, err := m.ListMeta.MarshalTo(dAtA[i:]) + n22, err := m.ListMeta.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n17 + i += n22 if len(m.Items) > 0 { for _, msg := range m.Items { dAtA[i] = 0x12 @@ -1319,21 +1557,21 @@ func (m *SensorSpec) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x1a i++ i = encodeVarintGenerated(dAtA, i, uint64(m.DeploySpec.Size())) - n18, err := m.DeploySpec.MarshalTo(dAtA[i:]) + n23, err := m.DeploySpec.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n18 + i += n23 } if m.EventProtocol != nil { dAtA[i] = 0x22 i++ i = encodeVarintGenerated(dAtA, i, uint64(m.EventProtocol.Size())) - n19, err := m.EventProtocol.MarshalTo(dAtA[i:]) + n24, err := m.EventProtocol.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n19 + i += n24 } dAtA[i] = 0x2a i++ @@ -1376,19 +1614,19 @@ func (m *SensorStatus) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x12 i++ i = encodeVarintGenerated(dAtA, i, uint64(m.StartedAt.Size())) - n20, err := m.StartedAt.MarshalTo(dAtA[i:]) + n25, err := m.StartedAt.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n20 + i += n25 dAtA[i] = 0x1a i++ i = encodeVarintGenerated(dAtA, i, uint64(m.CompletedAt.Size())) - n21, err := m.CompletedAt.MarshalTo(dAtA[i:]) + n26, err := m.CompletedAt.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n21 + i += n26 dAtA[i] = 0x22 i++ i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) @@ -1417,11 +1655,11 @@ func (m *SensorStatus) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x12 i++ i = encodeVarintGenerated(dAtA, i, uint64((&v).Size())) - n22, err := (&v).MarshalTo(dAtA[i:]) + n27, err := (&v).MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n22 + i += n27 } } dAtA[i] = 0x30 @@ -1479,11 +1717,11 @@ func (m *Trigger) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x12 i++ i = encodeVarintGenerated(dAtA, i, uint64(m.Resource.Size())) - n23, err := m.Resource.MarshalTo(dAtA[i:]) + n28, err := m.Resource.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n23 + i += n28 } dAtA[i] = 0x1a i++ @@ -1493,21 +1731,21 @@ func (m *Trigger) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x22 i++ i = encodeVarintGenerated(dAtA, i, uint64(m.RetryStrategy.Size())) - n24, err := m.RetryStrategy.MarshalTo(dAtA[i:]) + n29, err := m.RetryStrategy.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n24 + i += n29 } if m.When != nil { dAtA[i] = 0x2a i++ i = encodeVarintGenerated(dAtA, i, uint64(m.When.Size())) - n25, err := m.When.MarshalTo(dAtA[i:]) + n30, err := m.When.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n25 + i += n30 } return i, nil } @@ -1625,6 +1863,10 @@ func (m *ArtifactLocation) Size() (n int) { l = m.Configmap.Size() n += 1 + l + sovGenerated(uint64(l)) } + if m.Git != nil { + l = m.Git.Size() + n += 1 + l + sovGenerated(uint64(l)) + } return n } @@ -1730,6 +1972,71 @@ func (m *FileArtifact) Size() (n int) { return n } +func (m *GitArtifact) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.URL) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.CloneDirectory) + n += 1 + l + sovGenerated(uint64(l)) + if m.Creds != nil { + l = m.Creds.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + l = len(m.Namespace) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.SSHKeyPath) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.FilePath) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Branch) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Tag) + n += 1 + l + sovGenerated(uint64(l)) + if m.Remote != nil { + l = m.Remote.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *GitCreds) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Username != nil { + l = m.Username.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Password != nil { + l = m.Password.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *GitRemoteConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.URLS) > 0 { + for _, s := range m.URLS { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + func (m *GroupVersionKind) Size() (n int) { if m == nil { return 0 @@ -2034,6 +2341,7 @@ func (this *ArtifactLocation) String() string { `File:` + strings.Replace(fmt.Sprintf("%v", this.File), "FileArtifact", "FileArtifact", 1) + `,`, `URL:` + strings.Replace(fmt.Sprintf("%v", this.URL), "URLArtifact", "URLArtifact", 1) + `,`, `Configmap:` + strings.Replace(fmt.Sprintf("%v", this.Configmap), "ConfigmapArtifact", "ConfigmapArtifact", 1) + `,`, + `Git:` + strings.Replace(fmt.Sprintf("%v", this.Git), "GitArtifact", "GitArtifact", 1) + `,`, `}`, }, "") return s @@ -2109,6 +2417,46 @@ func (this *FileArtifact) String() string { }, "") return s } +func (this *GitArtifact) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GitArtifact{`, + `URL:` + fmt.Sprintf("%v", this.URL) + `,`, + `CloneDirectory:` + fmt.Sprintf("%v", this.CloneDirectory) + `,`, + `Creds:` + strings.Replace(fmt.Sprintf("%v", this.Creds), "GitCreds", "GitCreds", 1) + `,`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `SSHKeyPath:` + fmt.Sprintf("%v", this.SSHKeyPath) + `,`, + `FilePath:` + fmt.Sprintf("%v", this.FilePath) + `,`, + `Branch:` + fmt.Sprintf("%v", this.Branch) + `,`, + `Tag:` + fmt.Sprintf("%v", this.Tag) + `,`, + `Remote:` + strings.Replace(fmt.Sprintf("%v", this.Remote), "GitRemoteConfig", "GitRemoteConfig", 1) + `,`, + `}`, + }, "") + return s +} +func (this *GitCreds) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GitCreds{`, + `Username:` + strings.Replace(fmt.Sprintf("%v", this.Username), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`, + `Password:` + strings.Replace(fmt.Sprintf("%v", this.Password), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`, + `}`, + }, "") + return s +} +func (this *GitRemoteConfig) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GitRemoteConfig{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `URLS:` + fmt.Sprintf("%v", this.URLS) + `,`, + `}`, + }, "") + return s +} func (this *GroupVersionKind) String() string { if this == nil { return "nil" @@ -2131,8 +2479,8 @@ func (this *NodeStatus) String() string { `DisplayName:` + fmt.Sprintf("%v", this.DisplayName) + `,`, `Type:` + fmt.Sprintf("%v", this.Type) + `,`, `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`, - `StartedAt:` + strings.Replace(strings.Replace(this.StartedAt.String(), "MicroTime", "v1.MicroTime", 1), `&`, ``, 1) + `,`, - `CompletedAt:` + strings.Replace(strings.Replace(this.CompletedAt.String(), "MicroTime", "v1.MicroTime", 1), `&`, ``, 1) + `,`, + `StartedAt:` + strings.Replace(strings.Replace(this.StartedAt.String(), "MicroTime", "v11.MicroTime", 1), `&`, ``, 1) + `,`, + `CompletedAt:` + strings.Replace(strings.Replace(this.CompletedAt.String(), "MicroTime", "v11.MicroTime", 1), `&`, ``, 1) + `,`, `Message:` + fmt.Sprintf("%v", this.Message) + `,`, `Event:` + strings.Replace(fmt.Sprintf("%v", this.Event), "Event", "common.Event", 1) + `,`, `}`, @@ -2200,7 +2548,7 @@ func (this *Sensor) String() string { return "nil" } s := strings.Join([]string{`&Sensor{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "v11.ObjectMeta", 1), `&`, ``, 1) + `,`, `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "SensorSpec", "SensorSpec", 1), `&`, ``, 1) + `,`, `Status:` + strings.Replace(strings.Replace(this.Status.String(), "SensorStatus", "SensorStatus", 1), `&`, ``, 1) + `,`, `}`, @@ -2212,7 +2560,7 @@ func (this *SensorList) String() string { return "nil" } s := strings.Join([]string{`&SensorList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "v11.ListMeta", 1), `&`, ``, 1) + `,`, `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Sensor", "Sensor", 1), `&`, ``, 1) + `,`, `}`, }, "") @@ -2225,7 +2573,7 @@ func (this *SensorSpec) String() string { s := strings.Join([]string{`&SensorSpec{`, `Dependencies:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Dependencies), "EventDependency", "EventDependency", 1), `&`, ``, 1) + `,`, `Triggers:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Triggers), "Trigger", "Trigger", 1), `&`, ``, 1) + `,`, - `DeploySpec:` + strings.Replace(fmt.Sprintf("%v", this.DeploySpec), "PodSpec", "v11.PodSpec", 1) + `,`, + `DeploySpec:` + strings.Replace(fmt.Sprintf("%v", this.DeploySpec), "PodSpec", "v1.PodSpec", 1) + `,`, `EventProtocol:` + strings.Replace(fmt.Sprintf("%v", this.EventProtocol), "EventProtocol", "common.EventProtocol", 1) + `,`, `Circuit:` + fmt.Sprintf("%v", this.Circuit) + `,`, `DependencyGroups:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.DependencyGroups), "DependencyGroup", "DependencyGroup", 1), `&`, ``, 1) + `,`, @@ -2249,8 +2597,8 @@ func (this *SensorStatus) String() string { mapStringForNodes += "}" s := strings.Join([]string{`&SensorStatus{`, `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`, - `StartedAt:` + strings.Replace(strings.Replace(this.StartedAt.String(), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `CompletedAt:` + strings.Replace(strings.Replace(this.CompletedAt.String(), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, + `StartedAt:` + strings.Replace(strings.Replace(this.StartedAt.String(), "Time", "v11.Time", 1), `&`, ``, 1) + `,`, + `CompletedAt:` + strings.Replace(strings.Replace(this.CompletedAt.String(), "Time", "v11.Time", 1), `&`, ``, 1) + `,`, `Message:` + fmt.Sprintf("%v", this.Message) + `,`, `Nodes:` + mapStringForNodes + `,`, `CompletionCount:` + fmt.Sprintf("%v", this.CompletionCount) + `,`, @@ -2504,11 +2852,44 @@ func (m *ArtifactLocation) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Git", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Git == nil { + m.Git = &GitArtifact{} + } + if err := m.Git.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err } if skippy < 0 { return ErrInvalidLengthGenerated @@ -3310,6 +3691,549 @@ func (m *FileArtifact) Unmarshal(dAtA []byte) error { } return nil } +func (m *GitArtifact) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GitArtifact: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GitArtifact: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.URL = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CloneDirectory", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CloneDirectory = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creds", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Creds == nil { + m.Creds = &GitCreds{} + } + if err := m.Creds.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Namespace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SSHKeyPath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SSHKeyPath = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FilePath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FilePath = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Branch", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Branch = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tag", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tag = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Remote", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Remote == nil { + m.Remote = &GitRemoteConfig{} + } + if err := m.Remote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GitCreds) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GitCreds: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GitCreds: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Username == nil { + m.Username = &v1.SecretKeySelector{} + } + if err := m.Username.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Password == nil { + m.Password = &v1.SecretKeySelector{} + } + if err := m.Password.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GitRemoteConfig) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GitRemoteConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GitRemoteConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field URLS", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.URLS = append(m.URLS, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *GroupVersionKind) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -4721,7 +5645,7 @@ func (m *SensorSpec) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.DeploySpec == nil { - m.DeploySpec = &v11.PodSpec{} + m.DeploySpec = &v1.PodSpec{} } if err := m.DeploySpec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -5779,126 +6703,142 @@ var ( ) func init() { - proto.RegisterFile("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1/generated.proto", fileDescriptor_generated_00c8a4131a6a39b4) -} - -var fileDescriptor_generated_00c8a4131a6a39b4 = []byte{ - // 1863 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0xcb, 0x6f, 0x1b, 0xc7, - 0x19, 0xd7, 0xf2, 0x25, 0xf2, 0xa3, 0x64, 0xc9, 0xd3, 0x14, 0x61, 0x55, 0x94, 0x34, 0xb6, 0x17, - 0xb7, 0x48, 0x96, 0xb6, 0x94, 0x06, 0x6e, 0x8b, 0x3e, 0x44, 0xd2, 0x8e, 0x1d, 0xc9, 0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, 0x62, 0x19, 0x4e, 0x70, 0xb2, 0xc9, 0x55, 0x7c, 0x41, 0x72, 0x7d, 0x6a, - 0xc0, 0x76, 0x44, 0x42, 0x3f, 0xa1, 0x0f, 0xba, 0x83, 0xbd, 0xb3, 0xce, 0x21, 0x33, 0x6c, 0x44, - 0xb5, 0xb2, 0x39, 0x11, 0x9e, 0x07, 0x44, 0x43, 0x28, 0x7d, 0x3c, 0x24, 0xc1, 0xfa, 0xfc, 0x58, - 0x07, 0xa5, 0x4b, 0x03, 0xd7, 0x93, 0xbc, 0x54, 0xfe, 0x4b, 0xe2, 0x83, 0x21, 0x09, 0xb0, 0x44, - 0x30, 0xef, 0xc2, 0x6e, 0x5e, 0x07, 0x7d, 0x0d, 0x8a, 0x76, 0x30, 0x91, 0xb3, 0xaf, 0xa6, 0xf8, - 0xdf, 0x61, 0x30, 0xc1, 0x42, 0x26, 0x97, 0x7c, 0x5f, 0xff, 0x7f, 0x4a, 0x2d, 0xf9, 0x3e, 0x16, - 0x32, 0xd3, 0x81, 0x7a, 0xe6, 0xdf, 0x92, 0x4b, 0xfc, 0xe3, 0x6d, 0x1f, 0xe0, 0x82, 0x44, 0xde, - 0xd9, 0xa4, 0x4b, 0x22, 0xd5, 0xb0, 0xaa, 0x29, 0xb3, 0x7a, 0x9c, 0xac, 0xe0, 0x8c, 0x56, 0xc7, - 0x7a, 0xfa, 0xac, 0xb9, 0xf1, 0xf9, 0xb3, 0xe6, 0xc6, 0x17, 0xcf, 0x9a, 0x1b, 0x9f, 0xce, 0x9a, - 0xc6, 0xd3, 0x59, 0xd3, 0xf8, 0x7c, 0xd6, 0x34, 0xbe, 0x98, 0x35, 0x8d, 0x7f, 0xcd, 0x9a, 0xc6, - 0x67, 0xff, 0x6e, 0x6e, 0x7c, 0x58, 0x8d, 0xef, 0xff, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x12, - 0x2d, 0xde, 0x4c, 0x51, 0x18, 0x00, 0x00, + proto.RegisterFile("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1/generated.proto", fileDescriptor_generated_83408b5aadd35c22) +} + +var fileDescriptor_generated_83408b5aadd35c22 = []byte{ + // 2123 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x59, 0xcb, 0x73, 0x1b, 0x49, + 0x19, 0xcf, 0xe8, 0x65, 0xe9, 0x93, 0x1d, 0x3b, 0xcd, 0xc2, 0x0a, 0x03, 0x56, 0x6a, 0x28, 0xa8, + 0x85, 0xda, 0x1d, 0x25, 0xce, 0xb2, 0x15, 0xa0, 0x58, 0x88, 0xa4, 0x3c, 0xbc, 0x76, 0x12, 0xa7, + 0x95, 0x64, 0xab, 0x16, 0xaa, 0xc8, 0x78, 0xa6, 0x2d, 0xcd, 0x7a, 0x34, 0x3d, 0xd5, 0xdd, 0x72, + 0x56, 0x14, 0x8f, 0xe5, 0x79, 0x84, 0x3d, 0x73, 0xe5, 0x4a, 0x15, 0x47, 0xee, 0x9c, 0x72, 0x5c, + 0x6e, 0x7b, 0x52, 0x11, 0x51, 0xc5, 0x85, 0xff, 0x60, 0x4f, 0x54, 0x3f, 0xe6, 0x21, 0xd9, 0x26, + 0x8a, 0x95, 0x53, 0x3c, 0xdf, 0xf7, 0xf5, 0xef, 0xeb, 0xfe, 0xfa, 0x7b, 0xfc, 0x5a, 0x81, 0x3b, + 0xfd, 0x40, 0x0c, 0x46, 0x07, 0x8e, 0x47, 0x87, 0x2d, 0x97, 0xf5, 0x69, 0xcc, 0xe8, 0x87, 0xea, + 0x8f, 0xb7, 0xc8, 0x31, 0x89, 0x04, 0x6f, 0xc5, 0x47, 0xfd, 0x96, 0x1b, 0x07, 0xbc, 0xc5, 0x49, + 0xc4, 0x29, 0x6b, 0x1d, 0x5f, 0x75, 0xc3, 0x78, 0xe0, 0x5e, 0x6d, 0xf5, 0x49, 0x44, 0x98, 0x2b, + 0x88, 0xef, 0xc4, 0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, 0x88, 0x06, 0x50, 0x7a, 0x3a, 0x20, + 0xd1, 0xf2, 0xfc, 0xd8, 0x5c, 0x4a, 0x87, 0x46, 0x7e, 0xa0, 0x78, 0xa9, 0x7a, 0x92, 0xbf, 0x3f, + 0x20, 0x11, 0x56, 0x1e, 0xec, 0x3b, 0xb0, 0x31, 0x6f, 0x83, 0xbe, 0x0c, 0x45, 0x37, 0x1a, 0xab, + 0xd9, 0x57, 0xd3, 0xfc, 0xef, 0x46, 0x34, 0xc6, 0x52, 0xa6, 0x54, 0x61, 0x68, 0x9e, 0xf7, 0x5a, + 0x15, 0x86, 0x58, 0xca, 0x6c, 0x0f, 0xea, 0xb9, 0xff, 0x17, 0x58, 0xe0, 0x77, 0xe9, 0x6d, 0x80, + 0x63, 0xc2, 0x82, 0xc3, 0x71, 0x87, 0x30, 0xdd, 0xb0, 0xaa, 0x19, 0xb3, 0x7a, 0x9c, 0x6a, 0x70, + 0xce, 0xaa, 0xed, 0x3c, 0x7b, 0xbe, 0x75, 0xe1, 0xd3, 0xe7, 0x5b, 0x17, 0x3e, 0x7b, 0xbe, 0x75, + 0xe1, 0xe3, 0xe9, 0x96, 0xf5, 0x6c, 0xba, 0x65, 0x7d, 0x3a, 0xdd, 0xb2, 0x3e, 0x9b, 0x6e, 0x59, + 0xff, 0x9a, 0x6e, 0x59, 0x9f, 0xfc, 0x7b, 0xeb, 0xc2, 0x07, 0xd5, 0xe4, 0xfc, 0xff, 0x0b, 0x00, + 0x00, 0xff, 0xff, 0xec, 0xeb, 0x5f, 0xe1, 0xd2, 0x1b, 0x00, 0x00, } diff --git a/pkg/apis/sensor/v1alpha1/generated.proto b/pkg/apis/sensor/v1alpha1/generated.proto index 88c055e601..1bc45753c2 100644 --- a/pkg/apis/sensor/v1alpha1/generated.proto +++ b/pkg/apis/sensor/v1alpha1/generated.proto @@ -40,6 +40,8 @@ message ArtifactLocation { optional URLArtifact url = 4; optional ConfigmapArtifact configmap = 5; + + optional GitArtifact git = 6; } // ConfigmapArtifact contains information about artifact in k8 configmap @@ -123,6 +125,61 @@ message FileArtifact { optional string path = 1; } +// GitArtifact contains information about an artifact stored in git +message GitArtifact { + // Git URL + optional string url = 1; + + // Directory to clone the repository. We clone complete directory because GitArtifact is not limited to any specific Git service providers. + // Hence we don't use any specific git provider client. + optional string cloneDirectory = 2; + + // Creds contain reference to git username and password + // +optional + optional GitCreds creds = 3; + + // Namespace where creds are stored. + // +optional + optional string namespace = 4; + + // SSHKeyPath is path to your ssh key path. Use this if you don't want to provide username and password. + // ssh key path must be mounted in sensor pod. + // +optional + optional string sshKeyPath = 5; + + // Path to file that contains trigger resource definition + optional string filePath = 6; + + // Branch to use to pull trigger resource + // +optional + optional string branch = 7; + + // Tag to use to pull trigger resource + // +optional + optional string tag = 8; + + // Git remote to manage set of tracked repositories. Defaults to "origin". + // Refer https://git-scm.com/docs/git-remote + // +optional + optional GitRemoteConfig remote = 9; +} + +// GitCreds contain reference to git username and password +message GitCreds { + optional k8s.io.api.core.v1.SecretKeySelector username = 1; + + optional k8s.io.api.core.v1.SecretKeySelector password = 2; +} + +message GitRemoteConfig { + // Name of the remote to fetch from. + optional string name = 1; + + // URLs the URLs of a remote repository. It must be non-empty. Fetch will + // always use the first URL, while push will use all of them. + repeated string urls = 2; +} + // GroupVersionKind unambiguously identifies a kind. It doesn't anonymously include GroupVersion // to avoid automatic coercion. It doesn't use a GroupVersion to avoid custom marshalling. message GroupVersionKind { diff --git a/pkg/apis/sensor/v1alpha1/openapi_generated.go b/pkg/apis/sensor/v1alpha1/openapi_generated.go index 0123dac4e3..13050addd3 100644 --- a/pkg/apis/sensor/v1alpha1/openapi_generated.go +++ b/pkg/apis/sensor/v1alpha1/openapi_generated.go @@ -22,8 +22,8 @@ limitations under the License. package v1alpha1 import ( - "github.com/go-openapi/spec" - "k8s.io/kube-openapi/pkg/common" + spec "github.com/go-openapi/spec" + common "k8s.io/kube-openapi/pkg/common" ) func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { @@ -35,6 +35,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.EventDependency": schema_pkg_apis_sensor_v1alpha1_EventDependency(ref), "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.EventDependencyFilter": schema_pkg_apis_sensor_v1alpha1_EventDependencyFilter(ref), "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.FileArtifact": schema_pkg_apis_sensor_v1alpha1_FileArtifact(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.GitArtifact": schema_pkg_apis_sensor_v1alpha1_GitArtifact(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.GitCreds": schema_pkg_apis_sensor_v1alpha1_GitCreds(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.GitRemoteConfig": schema_pkg_apis_sensor_v1alpha1_GitRemoteConfig(ref), "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.GroupVersionKind": schema_pkg_apis_sensor_v1alpha1_GroupVersionKind(ref), "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.NodeStatus": schema_pkg_apis_sensor_v1alpha1_NodeStatus(ref), "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ResourceObject": schema_pkg_apis_sensor_v1alpha1_ResourceObject(ref), @@ -85,11 +88,16 @@ func schema_pkg_apis_sensor_v1alpha1_ArtifactLocation(ref common.ReferenceCallba Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ConfigmapArtifact"), }, }, + "git": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.GitArtifact"), + }, + }, }, }, }, Dependencies: []string{ - "github.com/argoproj/argo-events/pkg/apis/common.S3Artifact", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ConfigmapArtifact", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.FileArtifact", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.URLArtifact"}, + "github.com/argoproj/argo-events/pkg/apis/common.S3Artifact", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ConfigmapArtifact", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.FileArtifact", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.GitArtifact", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.URLArtifact"}, } } @@ -125,7 +133,6 @@ func schema_pkg_apis_sensor_v1alpha1_ConfigmapArtifact(ref common.ReferenceCallb Required: []string{"name", "namespace", "key"}, }, }, - Dependencies: []string{}, } } @@ -168,7 +175,6 @@ func schema_pkg_apis_sensor_v1alpha1_DataFilter(ref common.ReferenceCallback) co Required: []string{"path", "type", "value"}, }, }, - Dependencies: []string{}, } } @@ -204,7 +210,6 @@ func schema_pkg_apis_sensor_v1alpha1_DependencyGroup(ref common.ReferenceCallbac Required: []string{"name", "dependencies"}, }, }, - Dependencies: []string{}, } } @@ -315,7 +320,143 @@ func schema_pkg_apis_sensor_v1alpha1_FileArtifact(ref common.ReferenceCallback) }, }, }, - Dependencies: []string{}, + } +} + +func schema_pkg_apis_sensor_v1alpha1_GitArtifact(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "GitArtifact contains information about an artifact stored in git", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "url": { + SchemaProps: spec.SchemaProps{ + Description: "Git URL", + Type: []string{"string"}, + Format: "", + }, + }, + "cloneDirectory": { + SchemaProps: spec.SchemaProps{ + Description: "Directory to clone the repository. We clone complete directory because GitArtifact is not limited to any specific Git service providers. Hence we don't use any specific git provider client.", + Type: []string{"string"}, + Format: "", + }, + }, + "creds": { + SchemaProps: spec.SchemaProps{ + Description: "Creds contain reference to git username and password", + Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.GitCreds"), + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace where creds are stored.", + Type: []string{"string"}, + Format: "", + }, + }, + "sshKeyPath": { + SchemaProps: spec.SchemaProps{ + Description: "SSHKeyPath is path to your ssh key path. Use this if you don't want to provide username and password. ssh key path must be mounted in sensor pod.", + Type: []string{"string"}, + Format: "", + }, + }, + "filePath": { + SchemaProps: spec.SchemaProps{ + Description: "Path to file that contains trigger resource definition", + Type: []string{"string"}, + Format: "", + }, + }, + "branch": { + SchemaProps: spec.SchemaProps{ + Description: "Branch to use to pull trigger resource", + Type: []string{"string"}, + Format: "", + }, + }, + "tag": { + SchemaProps: spec.SchemaProps{ + Description: "Tag to use to pull trigger resource", + Type: []string{"string"}, + Format: "", + }, + }, + "remote": { + SchemaProps: spec.SchemaProps{ + Description: "Git remote to manage set of tracked repositories. Defaults to \"origin\". Refer https://git-scm.com/docs/git-remote", + Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.GitRemoteConfig"), + }, + }, + }, + Required: []string{"url", "cloneDirectory", "filePath"}, + }, + }, + Dependencies: []string{ + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.GitCreds", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.GitRemoteConfig"}, + } +} + +func schema_pkg_apis_sensor_v1alpha1_GitCreds(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "GitCreds contain reference to git username and password", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "username": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), + }, + }, + "password": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), + }, + }, + }, + Required: []string{"username", "password"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.SecretKeySelector"}, + } +} + +func schema_pkg_apis_sensor_v1alpha1_GitRemoteConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the remote to fetch from.", + Type: []string{"string"}, + Format: "", + }, + }, + "urls": { + SchemaProps: spec.SchemaProps{ + Description: "URLs the URLs of a remote repository. It must be non-empty. Fetch will always use the first URL, while push will use all of them.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + Required: []string{"name", "urls"}, + }, + }, } } @@ -348,7 +489,6 @@ func schema_pkg_apis_sensor_v1alpha1_GroupVersionKind(ref common.ReferenceCallba Required: []string{"group", "version", "kind"}, }, }, - Dependencies: []string{}, } } @@ -471,6 +611,7 @@ func schema_pkg_apis_sensor_v1alpha1_ResourceObject(ref common.ReferenceCallback Description: "Map of string keys and values that can be used to organize and categorize (scope and select) objects. This overrides any labels in the unstructured object with the same key.", Type: []string{"object"}, AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"string"}, @@ -563,7 +704,6 @@ func schema_pkg_apis_sensor_v1alpha1_ResourceParameterSource(ref common.Referenc Required: []string{"event", "path"}, }, }, - Dependencies: []string{}, } } @@ -573,10 +713,8 @@ func schema_pkg_apis_sensor_v1alpha1_RetryStrategy(ref common.ReferenceCallback) SchemaProps: spec.SchemaProps{ Description: "RetryStrategy represents a strategy for retrying operations", Type: []string{"object"}, - Properties: map[string]spec.Schema{}, }, }, - Dependencies: []string{}, } } @@ -791,6 +929,7 @@ func schema_pkg_apis_sensor_v1alpha1_SensorStatus(ref common.ReferenceCallback) Description: "Nodes is a mapping between a node ID and the node's status it records the states for the FSM of this sensor.", Type: []string{"object"}, AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.NodeStatus"), @@ -832,7 +971,6 @@ func schema_pkg_apis_sensor_v1alpha1_TimeFilter(ref common.ReferenceCallback) co }, }, }, - Dependencies: []string{}, } } @@ -922,7 +1060,6 @@ func schema_pkg_apis_sensor_v1alpha1_TriggerCondition(ref common.ReferenceCallba }, }, }, - Dependencies: []string{}, } } @@ -949,6 +1086,5 @@ func schema_pkg_apis_sensor_v1alpha1_URLArtifact(ref common.ReferenceCallback) c Required: []string{"path"}, }, }, - Dependencies: []string{}, } } diff --git a/pkg/apis/sensor/v1alpha1/types.go b/pkg/apis/sensor/v1alpha1/types.go index e332c940ec..6d92044de2 100644 --- a/pkg/apis/sensor/v1alpha1/types.go +++ b/pkg/apis/sensor/v1alpha1/types.go @@ -18,9 +18,10 @@ package v1alpha1 import ( "fmt" + "hash/fnv" + "github.com/argoproj/argo-events/pkg/apis/common" apicommon "github.com/argoproj/argo-events/pkg/apis/common" - "hash/fnv" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -335,6 +336,7 @@ type ArtifactLocation struct { File *FileArtifact `json:"file,omitempty" protobuf:"bytes,3,opt,name=file"` URL *URLArtifact `json:"url,omitempty" protobuf:"bytes,4,opt,name=url"` Configmap *ConfigmapArtifact `json:"configmap,omitempty" protobuf:"bytes,5,opt,name=configmap"` + Git *GitArtifact `json:"git,omitempty" protobuf:"bytes,6,opt,name=git"` } // ConfigmapArtifact contains information about artifact in k8 configmap @@ -358,6 +360,51 @@ type URLArtifact struct { VerifyCert bool `json:"verifyCert,omitempty" protobuf:"bytes,2,opt,name=verifyCert"` } +// GitArtifact contains information about an artifact stored in git +type GitArtifact struct { + // Git URL + URL string `json:"url" protobuf:"bytes,1,name=url"` + // Directory to clone the repository. We clone complete directory because GitArtifact is not limited to any specific Git service providers. + // Hence we don't use any specific git provider client. + CloneDirectory string `json:"cloneDirectory" protobuf:"bytes,2,name=cloneDirectory"` + // Creds contain reference to git username and password + // +optional + Creds *GitCreds `json:"creds,omitempty" protobuf:"bytes,3,opt,name=creds"` + // Namespace where creds are stored. + // +optional + Namespace string `json:"namespace,omitempty" protobuf:"bytes,4,opt,name=namespace"` + // SSHKeyPath is path to your ssh key path. Use this if you don't want to provide username and password. + // ssh key path must be mounted in sensor pod. + // +optional + SSHKeyPath string `json:"sshKeyPath,omitempty" protobuf:"bytes,5,opt,name=sshKeyPath"` + // Path to file that contains trigger resource definition + FilePath string `json:"filePath" protobuf:"bytes,6,name=filePath"` + // Branch to use to pull trigger resource + // +optional + Branch string `json:"branch,omitempty" protobuf:"bytes,7,opt,name=branch"` + // Tag to use to pull trigger resource + // +optional + Tag string `json:"tag,omitempty" protobuf:"bytes,8,opt,name=tag"` + // Git remote to manage set of tracked repositories. Defaults to "origin". + // Refer https://git-scm.com/docs/git-remote + // +optional + Remote *GitRemoteConfig `json:"remote" protobuf:"bytes,9,opt,name=remote"` +} + +type GitRemoteConfig struct { + // Name of the remote to fetch from. + Name string `json:"name" protobuf:"bytes,1,name=name"` + // URLs the URLs of a remote repository. It must be non-empty. Fetch will + // always use the first URL, while push will use all of them. + URLS []string `json:"urls" protobuf:"bytes,2,rep,name=urls"` +} + +// GitCreds contain reference to git username and password +type GitCreds struct { + Username *corev1.SecretKeySelector `json:"username" protobuf:"bytes,1,opt,name=username"` + Password *corev1.SecretKeySelector `json:"password" protobuf:"bytes,2,opt,name=password"` +} + // HasLocation whether or not an artifact has a location defined func (a *ArtifactLocation) HasLocation() bool { return a.S3 != nil || a.Inline != nil || a.File != nil || a.URL != nil diff --git a/pkg/apis/sensor/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/sensor/v1alpha1/zz_generated.deepcopy.go index 5e9b5f0169..a57bd0888c 100644 --- a/pkg/apis/sensor/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/sensor/v1alpha1/zz_generated.deepcopy.go @@ -20,9 +20,9 @@ limitations under the License. package v1alpha1 import ( - "github.com/argoproj/argo-events/pkg/apis/common" - "k8s.io/api/core/v1" - "k8s.io/apimachinery/pkg/runtime" + common "github.com/argoproj/argo-events/pkg/apis/common" + v1 "k8s.io/api/core/v1" + runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -53,6 +53,11 @@ func (in *ArtifactLocation) DeepCopyInto(out *ArtifactLocation) { *out = new(ConfigmapArtifact) **out = **in } + if in.Git != nil { + in, out := &in.Git, &out.Git + *out = new(GitArtifact) + (*in).DeepCopyInto(*out) + } return } @@ -190,6 +195,79 @@ func (in *FileArtifact) DeepCopy() *FileArtifact { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *GitArtifact) DeepCopyInto(out *GitArtifact) { + *out = *in + if in.Creds != nil { + in, out := &in.Creds, &out.Creds + *out = new(GitCreds) + (*in).DeepCopyInto(*out) + } + if in.Remote != nil { + in, out := &in.Remote, &out.Remote + *out = new(GitRemoteConfig) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitArtifact. +func (in *GitArtifact) DeepCopy() *GitArtifact { + if in == nil { + return nil + } + out := new(GitArtifact) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *GitCreds) DeepCopyInto(out *GitCreds) { + *out = *in + if in.Username != nil { + in, out := &in.Username, &out.Username + *out = new(v1.SecretKeySelector) + (*in).DeepCopyInto(*out) + } + if in.Password != nil { + in, out := &in.Password, &out.Password + *out = new(v1.SecretKeySelector) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCreds. +func (in *GitCreds) DeepCopy() *GitCreds { + if in == nil { + return nil + } + out := new(GitCreds) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *GitRemoteConfig) DeepCopyInto(out *GitRemoteConfig) { + *out = *in + if in.URLS != nil { + in, out := &in.URLS, &out.URLS + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRemoteConfig. +func (in *GitRemoteConfig) DeepCopy() *GitRemoteConfig { + if in == nil { + return nil + } + out := new(GitRemoteConfig) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *GroupVersionKind) DeepCopyInto(out *GroupVersionKind) { *out = *in diff --git a/sensors/trigger.go b/sensors/trigger.go index 5336652bed..c31f64300f 100644 --- a/sensors/trigger.go +++ b/sensors/trigger.go @@ -160,7 +160,7 @@ func (sec *sensorExecutionCtx) executeTrigger(trigger v1alpha1.Trigger) error { if err != nil { return err } - reader, err := store.GetArtifactReader(&trigger.Resource.Source, creds) + reader, err := store.GetArtifactReader(&trigger.Resource.Source, creds, sec.kubeClient) if err != nil { return err } diff --git a/store/git.go b/store/git.go new file mode 100644 index 0000000000..c773d8e700 --- /dev/null +++ b/store/git.go @@ -0,0 +1,182 @@ +/* +Copyright 2018 BlackRock, Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package store + +import ( + "fmt" + "gopkg.in/src-d/go-git.v4/config" + "io/ioutil" + + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1" + "golang.org/x/crypto/ssh" + "gopkg.in/src-d/go-git.v4" + "gopkg.in/src-d/go-git.v4/plumbing" + "gopkg.in/src-d/go-git.v4/plumbing/transport" + "gopkg.in/src-d/go-git.v4/plumbing/transport/http" + go_git_ssh "gopkg.in/src-d/go-git.v4/plumbing/transport/ssh" + "k8s.io/client-go/kubernetes" +) + +const ( + DefaultRemote = "origin" + DefaultBranch = "master" +) + +type GitArtifactReader struct { + kubeClientset kubernetes.Interface + artifact *v1alpha1.GitArtifact +} + +// NewGitReader returns a new git reader +func NewGitReader(kubeClientset kubernetes.Interface, gitArtifact *v1alpha1.GitArtifact) (*GitArtifactReader, error) { + return &GitArtifactReader{ + kubeClientset: kubeClientset, + artifact: gitArtifact, + }, nil +} + +func (g *GitArtifactReader) getRemote() string { + if g.artifact.Remote != nil { + return g.artifact.Remote.Name + } + return DefaultRemote +} + +func getSSHKeyAuth(privateSshKeyFile string) (transport.AuthMethod, error) { + var auth transport.AuthMethod + sshKey, err := ioutil.ReadFile(privateSshKeyFile) + if err != nil { + return nil, fmt.Errorf("failed to read ssh key file. err: %+v", err) + } + signer, err := ssh.ParsePrivateKey([]byte(sshKey)) + if err != nil { + return nil, fmt.Errorf("failed to parse ssh key. err: %+v", err) + } + auth = &go_git_ssh.PublicKeys{User: "git", Signer: signer} + return auth, nil +} + +func (g *GitArtifactReader) getGitAuth() (transport.AuthMethod, error) { + if g.artifact.Creds != nil { + username, err := GetSecrets(g.kubeClientset, g.artifact.Namespace, g.artifact.Creds.Username.Name, g.artifact.Creds.Username.Key) + if err != nil { + return nil, fmt.Errorf("failed to retrieve username: err: %+v", err) + } + password, err := GetSecrets(g.kubeClientset, g.artifact.Namespace, g.artifact.Creds.Password.Name, g.artifact.Creds.Password.Key) + if err != nil { + return nil, fmt.Errorf("failed to retrieve password: err: %+v", err) + } + return &http.BasicAuth{ + Username: username, + Password: password, + }, err + } + if g.artifact.SSHKeyPath != "" { + return getSSHKeyAuth(g.artifact.SSHKeyPath) + } + return nil, nil +} + +func (g *GitArtifactReader) readFromRepository(r *git.Repository) ([]byte, error) { + auth, err := g.getGitAuth() + if err != nil { + return nil, err + } + + if g.artifact.Remote != nil { + _, err := r.CreateRemote(&config.RemoteConfig{ + Name: g.artifact.Remote.Name, + URLs: g.artifact.Remote.URLS, + }) + if err != nil { + return nil, fmt.Errorf("failed to create remote. err: %+v", err) + } + + fetchOptions := &git.FetchOptions{ + RemoteName: g.artifact.Remote.Name, + } + if auth != nil { + fetchOptions.Auth = auth + } + + if err := r.Fetch(fetchOptions); err != nil { + return nil, fmt.Errorf("failed to fetch remote %s. err: %+v", g.artifact.Remote.Name, err) + } + } + + w, err := r.Worktree() + if err != nil { + return nil, fmt.Errorf("failed to get working tree. err: %+v", err) + } + + if err := w.Checkout(g.getBranchOrTag()); err != nil { + return nil, fmt.Errorf("failed to checkout. err: %+v", err) + } + + pullOpts := &git.PullOptions{ + RecurseSubmodules: git.DefaultSubmoduleRecursionDepth, + } + if auth != nil { + pullOpts.Auth = auth + } + + if err := w.Pull(pullOpts); err != nil && err != git.NoErrAlreadyUpToDate { + return nil, fmt.Errorf("failed to pull latest updates. err: %+v", err) + } + + return ioutil.ReadFile(fmt.Sprintf("%s/%s", g.artifact.CloneDirectory, g.artifact.FilePath)) +} + +func (g *GitArtifactReader) getBranchOrTag() *git.CheckoutOptions { + opts := &git.CheckoutOptions{} + if g.artifact.Branch != "" { + opts.Branch = plumbing.NewRemoteReferenceName(g.getRemote(), g.artifact.Branch) + } + if g.artifact.Tag != "" { + opts.Branch = plumbing.NewTagReferenceName(g.artifact.Tag) + } + opts.Branch = plumbing.NewRemoteReferenceName(g.getRemote(), DefaultBranch) + return opts +} + +func (g *GitArtifactReader) Read() ([]byte, error) { + r, err := git.PlainOpen(g.artifact.CloneDirectory) + if err != nil { + if err != git.ErrRepositoryNotExists { + return nil, fmt.Errorf("failed to open repository. err: %+v", err) + } + + cloneOpt := &git.CloneOptions{ + URL: g.artifact.URL, + RecurseSubmodules: git.DefaultSubmoduleRecursionDepth, + } + + auth, err := g.getGitAuth() + if err != nil { + return nil, err + } + if auth != nil { + cloneOpt.Auth = auth + } + + r, err = git.PlainClone(g.artifact.CloneDirectory, false, cloneOpt) + if err != nil { + return nil, fmt.Errorf("failed to clone repository. err: %+v", err) + } + } + return g.readFromRepository(r) +} diff --git a/store/store.go b/store/store.go index 283de00b0f..258431df8c 100644 --- a/store/store.go +++ b/store/store.go @@ -18,6 +18,7 @@ package store import ( "fmt" + "k8s.io/client-go/kubernetes" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/runtime" @@ -60,7 +61,7 @@ func FetchArtifact(reader ArtifactReader, gvk ss_v1alpha1.GroupVersionKind) (*un } // GetArtifactReader returns the ArtifactReader for this location -func GetArtifactReader(loc *ss_v1alpha1.ArtifactLocation, creds *Credentials) (ArtifactReader, error) { +func GetArtifactReader(loc *ss_v1alpha1.ArtifactLocation, creds *Credentials, clientset kubernetes.Interface) (ArtifactReader, error) { if loc.S3 != nil { return NewS3Reader(loc.S3, creds) } else if loc.Inline != nil { @@ -69,6 +70,10 @@ func GetArtifactReader(loc *ss_v1alpha1.ArtifactLocation, creds *Credentials) (A return NewFileReader(loc.File) } else if loc.URL != nil { return NewURLReader(loc.URL) + } else if loc.Git != nil { + return NewGitReader(clientset, loc.Git) + } else if loc.Configmap != nil { + return NewConfigMapReader(clientset, loc.Configmap) } return nil, fmt.Errorf("unknown artifact location: %v", *loc) }