From 7857afb3d1a7dbb35e005a9c8568bc51da062b1c Mon Sep 17 00:00:00 2001 From: Derek Wang Date: Wed, 20 Oct 2021 15:38:11 -0700 Subject: [PATCH 1/7] feat: trigger conditions reset Signed-off-by: Derek Wang --- api/openapi-spec/swagger.json | 28 + api/sensor.html | 85 ++ api/sensor.md | 91 ++ eventbus/driver/driver.go | 3 +- eventbus/driver/nats.go | 83 +- eventsources/eventing.go | 12 +- eventsources/sources/calendar/start.go | 2 +- go.mod | 44 +- go.sum | 4 +- pkg/apis/sensor/v1alpha1/generated.pb.go | 1015 ++++++++++++----- pkg/apis/sensor/v1alpha1/generated.proto | 17 + pkg/apis/sensor/v1alpha1/openapi_generated.go | 141 ++- pkg/apis/sensor/v1alpha1/types.go | 15 + .../sensor/v1alpha1/zz_generated.deepcopy.go | 44 + sensors/listener.go | 85 +- 15 files changed, 1248 insertions(+), 421 deletions(-) diff --git a/api/openapi-spec/swagger.json b/api/openapi-spec/swagger.json index 6aadab4df2..dda502afad 100644 --- a/api/openapi-spec/swagger.json +++ b/api/openapi-spec/swagger.json @@ -2426,6 +2426,27 @@ } } }, + "io.argoproj.sensor.v1alpha1.ConditionsResetByTime": { + "type": "object", + "properties": { + "cron": { + "description": "Cron is a cron-like expression. For reference, see: https://en.wikipedia.org/wiki/Cron", + "type": "string" + }, + "timezone": { + "type": "string" + } + } + }, + "io.argoproj.sensor.v1alpha1.ConditionsResetCriteria": { + "type": "object", + "properties": { + "byTime": { + "description": "Schedule is a cron-like expression. For reference, see: https://en.wikipedia.org/wiki/Cron", + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.ConditionsResetByTime" + } + } + }, "io.argoproj.sensor.v1alpha1.CustomTrigger": { "description": "CustomTrigger refers to the specification of the custom trigger.", "type": "object", @@ -3447,6 +3468,13 @@ "description": "Conditions is the conditions to execute the trigger. For example: \"(dep01 || dep02) \u0026\u0026 dep04\"", "type": "string" }, + "conditionsReset": { + "description": "Criteria to reset the conditons", + "type": "array", + "items": { + "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.ConditionsResetCriteria" + } + }, "custom": { "description": "CustomTrigger refers to the trigger designed to connect to a gRPC trigger server and execute a custom trigger.", "$ref": "#/definitions/io.argoproj.sensor.v1alpha1.CustomTrigger" diff --git a/api/sensor.html b/api/sensor.html index ddd1a44c11..77457db87b 100644 --- a/api/sensor.html +++ b/api/sensor.html @@ -405,6 +405,77 @@

Comparator

Comparator refers to the comparator operator for a data filter

+

ConditionsResetByTime +

+

+(Appears on: +ConditionsResetCriteria) +

+

+

+ + + + + + + + + + + + + + + + + +
FieldDescription
+cron
+ +string + +
+

Cron is a cron-like expression. For reference, see: https://en.wikipedia.org/wiki/Cron

+
+timezone
+ +string + +
+(Optional) +
+

ConditionsResetCriteria +

+

+(Appears on: +TriggerTemplate) +

+

+

+ + + + + + + + + + + + + +
FieldDescription
+byTime
+ + +ConditionsResetByTime + + +
+

Schedule is a cron-like expression. For reference, see: https://en.wikipedia.org/wiki/Cron

+

CustomTrigger

@@ -3183,6 +3254,20 @@

TriggerTemplate

Pulsar refers to the trigger designed to place messages on Pulsar topic.

+ + +conditionsReset
+ + +[]ConditionsResetCriteria + + + + +(Optional) +

Criteria to reset the conditons

+ +

URLArtifact diff --git a/api/sensor.md b/api/sensor.md index e192930956..0ea65f20ab 100644 --- a/api/sensor.md +++ b/api/sensor.md @@ -444,6 +444,84 @@ Comparator (string alias) Comparator refers to the comparator operator for a data filter

+

+ConditionsResetByTime +

+

+(Appears on: +ConditionsResetCriteria) +

+

+

+ + + + + + + + + + + + + + + + + +
+Field + +Description +
+cron
string +
+

+Cron is a cron-like expression. For reference, see: +https://en.wikipedia.org/wiki/Cron +

+
+timezone
string +
+(Optional) +
+

+ConditionsResetCriteria +

+

+(Appears on: +TriggerTemplate) +

+

+

+ + + + + + + + + + + + + +
+Field + +Description +
+byTime
+ +ConditionsResetByTime +
+

+Schedule is a cron-like expression. For reference, see: +https://en.wikipedia.org/wiki/Cron +

+

CustomTrigger

@@ -3322,6 +3400,19 @@ Pulsar refers to the trigger designed to place messages on Pulsar topic.

+ + +conditionsReset
+ +\[\]ConditionsResetCriteria + + +(Optional) +

+Criteria to reset the conditons +

+ +

diff --git a/eventbus/driver/driver.go b/eventbus/driver/driver.go index d7553b0c6c..bbc5d25f87 100644 --- a/eventbus/driver/driver.go +++ b/eventbus/driver/driver.go @@ -16,11 +16,12 @@ type Driver interface { // Parameter - conn, eventbus connection // Parameter - group, NATS Streaming queue group or Kafka consumer group // Parameter - closeCh, channel to indicate to close the subscription + // Parameter - resetConditionsCh, channel to indicate to reset trigger conditions // Parameter - dependencyExpr, example: "(dep1 || dep2) && dep3" // Parameter - dependencies, array of dependencies information // Parameter - filter, a function used to filter the message // Parameter - action, a function to be triggered after all conditions meet - SubscribeEventSources(ctx context.Context, conn Connection, group string, closeCh <-chan struct{}, dependencyExpr string, dependencies []Dependency, filter func(string, cloudevents.Event) bool, action func(map[string]cloudevents.Event)) error + SubscribeEventSources(ctx context.Context, conn Connection, group string, closeCh <-chan struct{}, resetConditionsCh <-chan struct{}, dependencyExpr string, dependencies []Dependency, filter func(string, cloudevents.Event) bool, action func(map[string]cloudevents.Event)) error // Publish a message Publish(conn Connection, message []byte) error diff --git a/eventbus/driver/nats.go b/eventbus/driver/nats.go index f363d20022..d8b7ba5fb3 100644 --- a/eventbus/driver/nats.go +++ b/eventbus/driver/nats.go @@ -130,11 +130,12 @@ func (n *natsStreaming) Publish(conn Connection, message []byte) error { // Parameter - conn, eventbus connection // Parameter - group, queue group name // Parameter - closeCh, channel to indicate to close the subscription +// Parameter - resetConditionsCh, channel to indicate to reset trigger conditions // Parameter - dependencyExpr, example: "(dep1 || dep2) && dep3" // Parameter - dependencies, array of dependencies information // Parameter - filter, a function used to filter the message // Parameter - action, a function to be triggered after all conditions meet -func (n *natsStreaming) SubscribeEventSources(ctx context.Context, conn Connection, group string, closeCh <-chan struct{}, dependencyExpr string, dependencies []Dependency, filter func(string, cloudevents.Event) bool, action func(map[string]cloudevents.Event)) error { +func (n *natsStreaming) SubscribeEventSources(ctx context.Context, conn Connection, group string, closeCh <-chan struct{}, resetConditionsCh <-chan struct{}, dependencyExpr string, dependencies []Dependency, filter func(string, cloudevents.Event) bool, action func(map[string]cloudevents.Event)) error { log := n.logger.With("clientID", n.clientID) msgHolder, err := newEventSourceMessageHolder(dependencyExpr, dependencies) if err != nil { @@ -159,9 +160,9 @@ func (n *natsStreaming) SubscribeEventSources(ctx context.Context, conn Connecti } log.Infof("Subscribed to subject %s ...", n.subject) - // Daemon to evict cache + // Daemon to evict cache and reset trigger conditions wg := &sync.WaitGroup{} - cacheEvictorStopCh := make(chan struct{}) + daemonStopCh := make(chan struct{}) wg.Add(1) go func() { defer wg.Done() @@ -170,7 +171,7 @@ func (n *natsStreaming) SubscribeEventSources(ctx context.Context, conn Connecti defer ticker.Stop() for { select { - case <-cacheEvictorStopCh: + case <-daemonStopCh: log.Info("exiting ExactOnce cache clean up daemon...") return case <-ticker.C: @@ -186,7 +187,10 @@ func (n *natsStreaming) SubscribeEventSources(ctx context.Context, conn Connecti } return true }) - log.Infof("finished evicting %v cached IDs, time cost: %v ms", num, (time.Now().UnixNano()-now)/1000/1000) + log.Debugf("finished evicting %v cached IDs, time cost: %v ms", num, (time.Now().UnixNano()-now)/1000/1000) + case <-resetConditionsCh: + log.Info("reset conditions") + msgHolder.setLastResetTime(time.Now().Unix()) } } }() @@ -197,14 +201,14 @@ func (n *natsStreaming) SubscribeEventSources(ctx context.Context, conn Connecti log.Info("existing, unsubscribing and closing connection...") _ = sub.Close() log.Infof("subscription on subject %s closed", n.subject) - cacheEvictorStopCh <- struct{}{} + daemonStopCh <- struct{}{} wg.Wait() return nil case <-closeCh: log.Info("closing subscription...") _ = sub.Close() log.Infof("subscription on subject %s closed", n.subject) - cacheEvictorStopCh <- struct{}{} + daemonStopCh <- struct{}{} wg.Wait() return nil } @@ -232,15 +236,6 @@ func (n *natsStreaming) processEventSourceMsg(m *stan.Msg, msgHolder *eventSourc return } - if msgHolder.lastMeetTime > 0 || msgHolder.latestGoodMsgTimestamp > 0 { - // Old redelivered messages should be able to be acked in 60 seconds. - // Reset if the flag didn't get cleared in that period for some reasons. - if time.Now().Unix()-msgHolder.lastMeetTime > 60 { - msgHolder.resetAll() - log.Info("ATTENTION: Reset the flags because they didn't get cleared in 60 seconds...") - } - } - // NATS Streaming guarantees At Least Once delivery, // so need to check if the message is duplicate if _, ok := msgHolder.smap.Load(event.ID()); ok { @@ -250,7 +245,7 @@ func (n *natsStreaming) processEventSourceMsg(m *stan.Msg, msgHolder *eventSourc } // Clean up old messages before starting a new round - if msgHolder.lastMeetTime > 0 || msgHolder.latestGoodMsgTimestamp > 0 { + if msgHolder.getLastResetTime() > 0 { // ACK all the old messages after conditions meet if m.Timestamp <= msgHolder.latestGoodMsgTimestamp { if depName != "" { @@ -259,6 +254,13 @@ func (n *natsStreaming) processEventSourceMsg(m *stan.Msg, msgHolder *eventSourc msgHolder.ackAndCache(m, event.ID()) return } + + // Old redelivered messages should be able to be acked in 60 seconds. + // Reset if the flag didn't get cleared in that period for some reasons. + if time.Now().Unix()-msgHolder.getLastResetTime() > 60 { + msgHolder.resetAll() + log.Info("ATTENTION: Reset the flags because they didn't get cleared in 60 seconds...") + } return } @@ -281,23 +283,19 @@ func (n *natsStreaming) processEventSourceMsg(m *stan.Msg, msgHolder *eventSourc // New message, set and check msgHolder.msgs[depName] = &eventSourceMessage{seq: m.Sequence, timestamp: m.Timestamp, event: event, lastDeliveredTime: now} msgHolder.parameters[depName] = true + msgHolder.latestGoodMsgTimestamp = m.Timestamp // Check if there's any stale message being held. // Stale message could be message age has been longer than NATS streaming max message age, // which means it has ben deleted from NATS server side, but it's still held here. // Use last delivery timestamp to determine that. - hasStale := false for k, v := range msgHolder.msgs { // Since the message is not acked, the server will keep re-sending it. // If a message being held didn't get re-delivered in the last 10 minutes, treat it as stale. if (now - v.lastDeliveredTime) > 10*60 { msgHolder.reset(k) - hasStale = true } } - if hasStale { - return - } result, err := msgHolder.expr.Evaluate(msgHolder.parameters) if err != nil { @@ -306,10 +304,16 @@ func (n *natsStreaming) processEventSourceMsg(m *stan.Msg, msgHolder *eventSourc return } if result != true { + meetDeps := []string{} + meetMsgIds := []string{} + for k, v := range msgHolder.msgs { + meetDeps = append(meetDeps, k) + meetMsgIds = append(meetMsgIds, v.event.ID()) + } + log.Infow("trigger conditions do not meet", zap.Any("meetDependencies", meetDeps), zap.Any("meetEvents", meetMsgIds)) return } - msgHolder.latestGoodMsgTimestamp = m.Timestamp - msgHolder.lastMeetTime = time.Now().Unix() + msgHolder.setLastResetTime(now) // Trigger actions messages := make(map[string]cloudevents.Event) for k, v := range msgHolder.msgs { @@ -334,9 +338,9 @@ type eventSourceMessage struct { // eventSourceMessageHolder is a struct used to hold the message information of subscribed dependencies type eventSourceMessageHolder struct { - // time that all conditions meet - lastMeetTime int64 - // timestamp of last msg when all the conditions meet + // time that resets everything, usually the time all conditions meet + lastResetTime int64 + // timestamp of last msg latestGoodMsgTimestamp int64 expr *govaluate.EvaluableExpression depNames []string @@ -346,6 +350,7 @@ type eventSourceMessageHolder struct { msgs map[string]*eventSourceMessage // A sync map used to cache the message IDs, it is used to guarantee Exact Once triggering smap *sync.Map + lock sync.RWMutex } func newEventSourceMessageHolder(dependencyExpr string, dependencies []Dependency) (*eventSourceMessageHolder, error) { @@ -371,8 +376,11 @@ func newEventSourceMessageHolder(dependencyExpr string, dependencies []Dependenc parameters[dep] = false } + if err != nil { + return nil, errors.Errorf("failed to get next conditions reset time: %w", err) + } return &eventSourceMessageHolder{ - lastMeetTime: int64(0), + lastResetTime: int64(0), latestGoodMsgTimestamp: int64(0), expr: expression, depNames: deps, @@ -380,9 +388,22 @@ func newEventSourceMessageHolder(dependencyExpr string, dependencies []Dependenc parameters: parameters, msgs: msgs, smap: new(sync.Map), + lock: sync.RWMutex{}, }, nil } +func (mh *eventSourceMessageHolder) getLastResetTime() int64 { + mh.lock.RLock() + defer mh.lock.RUnlock() + return mh.lastResetTime +} + +func (mh *eventSourceMessageHolder) setLastResetTime(t int64) { + mh.lock.Lock() + defer mh.lock.Unlock() + mh.lastResetTime = t +} + func (mh *eventSourceMessageHolder) getDependencyName(eventSourceName, eventName string) (string, error) { for k, v := range mh.sourceDepMap { sourceGlob, err := glob.Compile(k) @@ -407,8 +428,7 @@ func (mh *eventSourceMessageHolder) reset(depName string) { mh.parameters[depName] = false delete(mh.msgs, depName) if mh.isCleanedUp() { - mh.lastMeetTime = 0 - mh.latestGoodMsgTimestamp = 0 + mh.setLastResetTime(0) } } @@ -419,8 +439,7 @@ func (mh *eventSourceMessageHolder) resetAll() { for k := range mh.parameters { mh.parameters[k] = false } - mh.lastMeetTime = 0 - mh.latestGoodMsgTimestamp = 0 + mh.setLastResetTime(0) } // Check if all the parameters and messages have been cleaned up diff --git a/eventsources/eventing.go b/eventsources/eventing.go index 99d8fe90b1..cddcbbfc59 100644 --- a/eventsources/eventing.go +++ b/eventsources/eventing.go @@ -330,7 +330,7 @@ func (e *EventSourceAdaptor) run(ctx context.Context, servers map[apicommon.Even } defer e.eventBusConn.Close() - cctx, cancel := context.WithCancel(ctx) + ctx, cancel := context.WithCancel(ctx) connWG := &sync.WaitGroup{} // Daemon to reconnect @@ -342,7 +342,7 @@ func (e *EventSourceAdaptor) run(ctx context.Context, servers map[apicommon.Even defer ticker.Stop() for { select { - case <-cctx.Done(): + case <-ctx.Done(): logger.Info("exiting eventbus connection daemon...") return case <-ticker.C: @@ -350,7 +350,7 @@ func (e *EventSourceAdaptor) run(ctx context.Context, servers map[apicommon.Even logger.Info("NATS connection lost, reconnecting...") // Regenerate the client ID to avoid the issue that NAT server still thinks the client is alive. clientID := generateClientID(e.hostname) - driver, err := eventbus.GetDriver(cctx, *e.eventBusConfig, e.eventBusSubject, clientID) + driver, err := eventbus.GetDriver(ctx, *e.eventBusConfig, e.eventBusSubject, clientID) if err != nil { logger.Errorw("failed to get eventbus driver during reconnection", zap.Error(err)) continue @@ -370,7 +370,7 @@ func (e *EventSourceAdaptor) run(ctx context.Context, servers map[apicommon.Even for _, ss := range servers { for _, server := range ss { // Validation has been done in eventsource-controller, it's harmless to do it again here. - err := server.ValidateEventSource(cctx) + err := server.ValidateEventSource(ctx) if err != nil { logger.Errorw("Validation failed", zap.Error(err), zap.Any(logging.LabelEventName, server.GetEventName()), zap.Any(logging.LabelEventSourceType, server.GetEventSourceType())) @@ -379,9 +379,9 @@ func (e *EventSourceAdaptor) run(ctx context.Context, servers map[apicommon.Even } wg.Add(1) go func(s EventingServer) { + defer wg.Done() e.metrics.IncRunningServices(s.GetEventSourceName()) defer e.metrics.DecRunningServices(s.GetEventSourceName()) - defer wg.Done() duration := apicommon.FromString("1s") factor := apicommon.NewAmount("1") jitter := apicommon.NewAmount("30") @@ -392,7 +392,7 @@ func (e *EventSourceAdaptor) run(ctx context.Context, servers map[apicommon.Even Jitter: &jitter, } if err = common.Connect(&backoff, func() error { - return s.StartListening(cctx, func(data []byte) error { + return s.StartListening(ctx, func(data []byte) error { event := cloudevents.NewEvent() event.SetID(fmt.Sprintf("%x", uuid.New())) event.SetType(string(s.GetEventSourceType())) diff --git a/eventsources/sources/calendar/start.go b/eventsources/sources/calendar/start.go index 7251c1a089..60c0e099b4 100644 --- a/eventsources/sources/calendar/start.go +++ b/eventsources/sources/calendar/start.go @@ -25,7 +25,7 @@ import ( "time" "github.com/pkg/errors" - cronlib "github.com/robfig/cron" + cronlib "github.com/robfig/cron/v3" "go.uber.org/zap" "k8s.io/client-go/kubernetes" diff --git a/go.mod b/go.mod index 59f2520475..b55c24874b 100644 --- a/go.mod +++ b/go.mod @@ -5,10 +5,7 @@ go 1.17 require ( cloud.google.com/go v0.65.0 cloud.google.com/go/pubsub v1.3.1 - github.com/Azure/azure-amqp-common-go/v3 v3.1.0 // indirect github.com/Azure/azure-event-hubs-go/v3 v3.3.7 - github.com/Azure/azure-sdk-for-go v52.6.0+incompatible // indirect - github.com/Azure/go-amqp v0.13.6 // indirect github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible github.com/Masterminds/sprig/v3 v3.2.0 github.com/Shopify/sarama v1.26.1 @@ -20,10 +17,8 @@ require ( github.com/aws/aws-sdk-go v1.33.16 github.com/blushft/go-diagrams v0.0.0-20201006005127-c78c821223d9 github.com/cloudevents/sdk-go/v2 v2.1.0 - github.com/cloudfoundry/jibber_jabber v0.0.0-20151120183258-bcc4c8345a21 // indirect github.com/colinmarc/hdfs v1.1.4-0.20180802165501-48eb8d6c34a9 github.com/eclipse/paho.mqtt.golang v1.2.0 - github.com/emicklei/go-restful v2.12.0+incompatible // indirect github.com/emitter-io/go/v2 v2.0.9 github.com/fsnotify/fsnotify v1.4.9 github.com/gavv/httpexpect/v2 v2.2.0 @@ -41,31 +36,22 @@ require ( github.com/google/go-cmp v0.5.6 github.com/google/go-github/v31 v31.0.0 github.com/google/uuid v1.1.2 - github.com/gopherjs/gopherjs v0.0.0-20200217142428-fce0ec30dd00 // indirect github.com/gorilla/mux v1.7.3 github.com/grpc-ecosystem/grpc-gateway v1.14.6 - github.com/hokaccha/go-prettyjson v0.0.0-20190818114111-108c894c2c0e // indirect github.com/imdario/mergo v0.3.12 github.com/joncalhoun/qson v0.0.0-20200422171543-84433dcd3da0 github.com/minio/minio-go v1.0.1-0.20190523192347-c6c2912aa552 github.com/mitchellh/mapstructure v1.4.1 - github.com/mitchellh/reflectwalk v1.0.1 // indirect - github.com/nats-io/gnatsd v1.4.1 // indirect github.com/nats-io/go-nats v1.7.2 github.com/nats-io/graft v0.0.0-20200605173148-348798afea05 - github.com/nats-io/nats-streaming-server v0.17.0 // indirect github.com/nats-io/nats.go v1.10.0 github.com/nats-io/stan.go v0.6.0 - github.com/nicksnyder/go-i18n v1.10.1-0.20190510212457-b280125b035a // indirect github.com/nsqio/go-nsq v1.0.8 - github.com/pierrec/lz4 v2.5.0+incompatible // indirect github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.11.0 github.com/radovskyb/watcher v1.0.7 - github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0 // indirect - github.com/robfig/cron v1.2.0 + github.com/robfig/cron/v3 v3.0.1 github.com/slack-go/slack v0.7.4 - github.com/smartystreets/assertions v0.0.0-20190401211740-f487f9de1cd3 // indirect github.com/smartystreets/goconvey v1.6.4 github.com/spf13/cobra v1.1.3 github.com/spf13/viper v1.7.0 @@ -78,21 +64,14 @@ require ( go.uber.org/ratelimit v0.2.0 go.uber.org/zap v1.17.0 golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2 - golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d // indirect - golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a // indirect google.golang.org/api v0.30.0 - google.golang.org/appengine v1.6.7 // indirect google.golang.org/grpc v1.31.0 - google.golang.org/protobuf v1.27.1 // indirect - gopkg.in/jcmturner/goidentity.v2 v2.0.0 // indirect gopkg.in/jcmturner/gokrb5.v5 v5.3.0 - gopkg.in/jcmturner/rpc.v0 v0.0.2 // indirect k8s.io/api v0.21.1 k8s.io/apimachinery v0.21.1 k8s.io/client-go v0.21.1 k8s.io/code-generator v0.20.4 k8s.io/gengo v0.0.0-20201113003025-83324d819ded - k8s.io/klog v0.3.0 // indirect k8s.io/kube-openapi v0.0.0-20201113171705-d219536bb9fd sigs.k8s.io/controller-runtime v0.7.0 sigs.k8s.io/controller-tools v0.6.0 @@ -100,6 +79,9 @@ require ( ) require ( + github.com/Azure/azure-amqp-common-go/v3 v3.1.0 // indirect + github.com/Azure/azure-sdk-for-go v52.6.0+incompatible // indirect + github.com/Azure/go-amqp v0.13.6 // indirect github.com/Azure/go-autorest v14.2.0+incompatible // indirect github.com/Azure/go-autorest/autorest v0.11.18 // indirect github.com/Azure/go-autorest/autorest/adal v0.9.13 // indirect @@ -120,12 +102,14 @@ require ( github.com/awalterschulze/gographviz v0.0.0-20200901124122-0eecad45bd71 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/cespare/xxhash/v2 v2.1.1 // indirect + github.com/cloudfoundry/jibber_jabber v0.0.0-20151120183258-bcc4c8345a21 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/devigned/tab v0.1.1 // indirect github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96 // indirect github.com/eapache/go-resiliency v1.2.0 // indirect github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 // indirect github.com/eapache/queue v1.1.0 // indirect + github.com/emicklei/go-restful v2.12.0+incompatible // indirect github.com/emirpasic/gods v1.12.0 // indirect github.com/evanphx/json-patch v4.9.0+incompatible // indirect github.com/fatih/color v1.12.0 // indirect @@ -152,6 +136,7 @@ require ( github.com/google/gofuzz v1.1.0 // indirect github.com/googleapis/gax-go/v2 v2.0.5 // indirect github.com/googleapis/gnostic v0.5.1 // indirect + github.com/gopherjs/gopherjs v0.0.0-20200217142428-fce0ec30dd00 // indirect github.com/gorilla/handlers v1.4.2 // indirect github.com/gorilla/websocket v1.4.2 // indirect github.com/hashicorp/go-cleanhttp v0.5.1 // indirect @@ -159,6 +144,7 @@ require ( github.com/hashicorp/go-uuid v1.0.2 // indirect github.com/hashicorp/golang-lru v0.5.4 // indirect github.com/hashicorp/hcl v1.0.0 // indirect + github.com/hokaccha/go-prettyjson v0.0.0-20190818114111-108c894c2c0e // indirect github.com/huandu/xstrings v1.3.1 // indirect github.com/imkira/go-interpol v1.0.0 // indirect github.com/inconshreveable/mousetrap v1.0.0 // indirect @@ -184,21 +170,28 @@ require ( github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect github.com/mitchellh/copystructure v1.0.0 // indirect github.com/mitchellh/go-homedir v1.1.0 // indirect + github.com/mitchellh/reflectwalk v1.0.1 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.1 // indirect + github.com/nats-io/gnatsd v1.4.1 // indirect github.com/nats-io/jwt v0.3.2 // indirect + github.com/nats-io/nats-streaming-server v0.17.0 // indirect github.com/nats-io/nkeys v0.1.4 // indirect github.com/nats-io/nuid v1.0.1 // indirect + github.com/nicksnyder/go-i18n v1.10.1-0.20190510212457-b280125b035a // indirect github.com/pelletier/go-toml v1.8.0 // indirect + github.com/pierrec/lz4 v2.5.0+incompatible // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/prometheus/client_model v0.2.0 // indirect github.com/prometheus/common v0.26.0 // indirect github.com/prometheus/procfs v0.6.0 // indirect + github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0 // indirect github.com/russross/blackfriday/v2 v2.0.1 // indirect github.com/sergi/go-diff v1.1.0 // indirect github.com/shopspring/decimal v1.2.0 // indirect github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect github.com/sirupsen/logrus v1.6.0 // indirect + github.com/smartystreets/assertions v0.0.0-20190401211740-f487f9de1cd3 // indirect github.com/spaolacci/murmur3 v1.1.0 // indirect github.com/spf13/afero v1.3.2 // indirect github.com/spf13/cast v1.3.1 // indirect @@ -225,6 +218,8 @@ require ( go.uber.org/multierr v1.6.0 // indirect golang.org/x/lint v0.0.0-20200302205851-738671d3881b // indirect golang.org/x/mod v0.4.2 // indirect + golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d // indirect + golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a // indirect golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40 // indirect golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 // indirect @@ -233,18 +228,23 @@ require ( golang.org/x/tools v0.1.2 // indirect golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect gomodules.xyz/jsonpatch/v2 v2.1.0 // indirect + google.golang.org/appengine v1.6.7 // indirect google.golang.org/genproto v0.0.0-20201110150050-8816d57aaa9a // indirect + google.golang.org/protobuf v1.27.1 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/ini.v1 v1.57.0 // indirect gopkg.in/jcmturner/aescts.v1 v1.0.1 // indirect gopkg.in/jcmturner/dnsutils.v1 v1.0.1 // indirect + gopkg.in/jcmturner/goidentity.v2 v2.0.0 // indirect gopkg.in/jcmturner/gokrb5.v7 v7.5.0 // indirect + gopkg.in/jcmturner/rpc.v0 v0.0.2 // indirect gopkg.in/jcmturner/rpc.v1 v1.1.0 // indirect gopkg.in/warnings.v0 v0.1.2 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect k8s.io/apiextensions-apiserver v0.21.1 // indirect k8s.io/component-base v0.20.4 // indirect + k8s.io/klog v0.3.0 // indirect k8s.io/klog/v2 v2.5.0 // indirect k8s.io/utils v0.0.0-20201110183641-67b214c5f920 // indirect moul.io/http2curl v1.0.1-0.20190925090545-5cd742060b0e // indirect diff --git a/go.sum b/go.sum index 9245bed994..acc142ac8d 100644 --- a/go.sum +++ b/go.sum @@ -840,8 +840,8 @@ github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0 h1:MkV+77GLUNo github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rivo/tview v0.0.0-20200219210816-cd38d7432498/go.mod h1:6lkG1x+13OShEf0EaOCaTQYyB7d5nSbb181KtjlS+84= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= -github.com/robfig/cron v1.2.0 h1:ZjScXvvxeQ63Dbyxy76Fj3AT3Ut0aKsyd2/tl3DTMuQ= -github.com/robfig/cron v1.2.0/go.mod h1:JGuDeoQd7Z6yL4zQhZ3OPEVHB7fL6Ka6skscFHfmt2k= +github.com/robfig/cron/v3 v3.0.1 h1:WdRxkvbJztn8LMz/QEvLN5sBU+xKpSqwwUO1Pjr4qDs= +github.com/robfig/cron/v3 v3.0.1/go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzGIFLtro= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.1.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= diff --git a/pkg/apis/sensor/v1alpha1/generated.pb.go b/pkg/apis/sensor/v1alpha1/generated.pb.go index a64268e35e..cc335acf19 100644 --- a/pkg/apis/sensor/v1alpha1/generated.pb.go +++ b/pkg/apis/sensor/v1alpha1/generated.pb.go @@ -160,10 +160,66 @@ func (m *AzureEventHubsTrigger) XXX_DiscardUnknown() { var xxx_messageInfo_AzureEventHubsTrigger proto.InternalMessageInfo +func (m *ConditionsResetByTime) Reset() { *m = ConditionsResetByTime{} } +func (*ConditionsResetByTime) ProtoMessage() {} +func (*ConditionsResetByTime) Descriptor() ([]byte, []int) { + return fileDescriptor_6c4bded897df1f16, []int{4} +} +func (m *ConditionsResetByTime) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ConditionsResetByTime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ConditionsResetByTime) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConditionsResetByTime.Merge(m, src) +} +func (m *ConditionsResetByTime) XXX_Size() int { + return m.Size() +} +func (m *ConditionsResetByTime) XXX_DiscardUnknown() { + xxx_messageInfo_ConditionsResetByTime.DiscardUnknown(m) +} + +var xxx_messageInfo_ConditionsResetByTime proto.InternalMessageInfo + +func (m *ConditionsResetCriteria) Reset() { *m = ConditionsResetCriteria{} } +func (*ConditionsResetCriteria) ProtoMessage() {} +func (*ConditionsResetCriteria) Descriptor() ([]byte, []int) { + return fileDescriptor_6c4bded897df1f16, []int{5} +} +func (m *ConditionsResetCriteria) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ConditionsResetCriteria) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ConditionsResetCriteria) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConditionsResetCriteria.Merge(m, src) +} +func (m *ConditionsResetCriteria) XXX_Size() int { + return m.Size() +} +func (m *ConditionsResetCriteria) XXX_DiscardUnknown() { + xxx_messageInfo_ConditionsResetCriteria.DiscardUnknown(m) +} + +var xxx_messageInfo_ConditionsResetCriteria proto.InternalMessageInfo + func (m *CustomTrigger) Reset() { *m = CustomTrigger{} } func (*CustomTrigger) ProtoMessage() {} func (*CustomTrigger) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{4} + return fileDescriptor_6c4bded897df1f16, []int{6} } func (m *CustomTrigger) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -191,7 +247,7 @@ var xxx_messageInfo_CustomTrigger proto.InternalMessageInfo func (m *DataFilter) Reset() { *m = DataFilter{} } func (*DataFilter) ProtoMessage() {} func (*DataFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{5} + return fileDescriptor_6c4bded897df1f16, []int{7} } func (m *DataFilter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -219,7 +275,7 @@ var xxx_messageInfo_DataFilter proto.InternalMessageInfo func (m *Event) Reset() { *m = Event{} } func (*Event) ProtoMessage() {} func (*Event) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{6} + return fileDescriptor_6c4bded897df1f16, []int{8} } func (m *Event) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -247,7 +303,7 @@ var xxx_messageInfo_Event proto.InternalMessageInfo func (m *EventContext) Reset() { *m = EventContext{} } func (*EventContext) ProtoMessage() {} func (*EventContext) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{7} + return fileDescriptor_6c4bded897df1f16, []int{9} } func (m *EventContext) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -275,7 +331,7 @@ var xxx_messageInfo_EventContext proto.InternalMessageInfo func (m *EventDependency) Reset() { *m = EventDependency{} } func (*EventDependency) ProtoMessage() {} func (*EventDependency) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{8} + return fileDescriptor_6c4bded897df1f16, []int{10} } func (m *EventDependency) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -303,7 +359,7 @@ var xxx_messageInfo_EventDependency proto.InternalMessageInfo func (m *EventDependencyFilter) Reset() { *m = EventDependencyFilter{} } func (*EventDependencyFilter) ProtoMessage() {} func (*EventDependencyFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{9} + return fileDescriptor_6c4bded897df1f16, []int{11} } func (m *EventDependencyFilter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -331,7 +387,7 @@ var xxx_messageInfo_EventDependencyFilter proto.InternalMessageInfo func (m *ExprFilter) Reset() { *m = ExprFilter{} } func (*ExprFilter) ProtoMessage() {} func (*ExprFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{10} + return fileDescriptor_6c4bded897df1f16, []int{12} } func (m *ExprFilter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -359,7 +415,7 @@ var xxx_messageInfo_ExprFilter proto.InternalMessageInfo func (m *FileArtifact) Reset() { *m = FileArtifact{} } func (*FileArtifact) ProtoMessage() {} func (*FileArtifact) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{11} + return fileDescriptor_6c4bded897df1f16, []int{13} } func (m *FileArtifact) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -387,7 +443,7 @@ var xxx_messageInfo_FileArtifact proto.InternalMessageInfo func (m *GitArtifact) Reset() { *m = GitArtifact{} } func (*GitArtifact) ProtoMessage() {} func (*GitArtifact) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{12} + return fileDescriptor_6c4bded897df1f16, []int{14} } func (m *GitArtifact) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -415,7 +471,7 @@ var xxx_messageInfo_GitArtifact proto.InternalMessageInfo func (m *GitCreds) Reset() { *m = GitCreds{} } func (*GitCreds) ProtoMessage() {} func (*GitCreds) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{13} + return fileDescriptor_6c4bded897df1f16, []int{15} } func (m *GitCreds) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -443,7 +499,7 @@ var xxx_messageInfo_GitCreds proto.InternalMessageInfo func (m *GitRemoteConfig) Reset() { *m = GitRemoteConfig{} } func (*GitRemoteConfig) ProtoMessage() {} func (*GitRemoteConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{14} + return fileDescriptor_6c4bded897df1f16, []int{16} } func (m *GitRemoteConfig) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -471,7 +527,7 @@ var xxx_messageInfo_GitRemoteConfig proto.InternalMessageInfo func (m *HTTPTrigger) Reset() { *m = HTTPTrigger{} } func (*HTTPTrigger) ProtoMessage() {} func (*HTTPTrigger) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{15} + return fileDescriptor_6c4bded897df1f16, []int{17} } func (m *HTTPTrigger) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -499,7 +555,7 @@ var xxx_messageInfo_HTTPTrigger proto.InternalMessageInfo func (m *K8SResourcePolicy) Reset() { *m = K8SResourcePolicy{} } func (*K8SResourcePolicy) ProtoMessage() {} func (*K8SResourcePolicy) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{16} + return fileDescriptor_6c4bded897df1f16, []int{18} } func (m *K8SResourcePolicy) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -527,7 +583,7 @@ var xxx_messageInfo_K8SResourcePolicy proto.InternalMessageInfo func (m *KafkaTrigger) Reset() { *m = KafkaTrigger{} } func (*KafkaTrigger) ProtoMessage() {} func (*KafkaTrigger) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{17} + return fileDescriptor_6c4bded897df1f16, []int{19} } func (m *KafkaTrigger) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -555,7 +611,7 @@ var xxx_messageInfo_KafkaTrigger proto.InternalMessageInfo func (m *LogTrigger) Reset() { *m = LogTrigger{} } func (*LogTrigger) ProtoMessage() {} func (*LogTrigger) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{18} + return fileDescriptor_6c4bded897df1f16, []int{20} } func (m *LogTrigger) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -583,7 +639,7 @@ var xxx_messageInfo_LogTrigger proto.InternalMessageInfo func (m *NATSTrigger) Reset() { *m = NATSTrigger{} } func (*NATSTrigger) ProtoMessage() {} func (*NATSTrigger) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{19} + return fileDescriptor_6c4bded897df1f16, []int{21} } func (m *NATSTrigger) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -611,7 +667,7 @@ var xxx_messageInfo_NATSTrigger proto.InternalMessageInfo func (m *OpenWhiskTrigger) Reset() { *m = OpenWhiskTrigger{} } func (*OpenWhiskTrigger) ProtoMessage() {} func (*OpenWhiskTrigger) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{20} + return fileDescriptor_6c4bded897df1f16, []int{22} } func (m *OpenWhiskTrigger) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -639,7 +695,7 @@ var xxx_messageInfo_OpenWhiskTrigger proto.InternalMessageInfo func (m *PayloadField) Reset() { *m = PayloadField{} } func (*PayloadField) ProtoMessage() {} func (*PayloadField) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{21} + return fileDescriptor_6c4bded897df1f16, []int{23} } func (m *PayloadField) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -667,7 +723,7 @@ var xxx_messageInfo_PayloadField proto.InternalMessageInfo func (m *PulsarTrigger) Reset() { *m = PulsarTrigger{} } func (*PulsarTrigger) ProtoMessage() {} func (*PulsarTrigger) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{22} + return fileDescriptor_6c4bded897df1f16, []int{24} } func (m *PulsarTrigger) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -695,7 +751,7 @@ var xxx_messageInfo_PulsarTrigger proto.InternalMessageInfo func (m *RateLimit) Reset() { *m = RateLimit{} } func (*RateLimit) ProtoMessage() {} func (*RateLimit) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{23} + return fileDescriptor_6c4bded897df1f16, []int{25} } func (m *RateLimit) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -723,7 +779,7 @@ var xxx_messageInfo_RateLimit proto.InternalMessageInfo func (m *Sensor) Reset() { *m = Sensor{} } func (*Sensor) ProtoMessage() {} func (*Sensor) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{24} + return fileDescriptor_6c4bded897df1f16, []int{26} } func (m *Sensor) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -751,7 +807,7 @@ var xxx_messageInfo_Sensor proto.InternalMessageInfo func (m *SensorList) Reset() { *m = SensorList{} } func (*SensorList) ProtoMessage() {} func (*SensorList) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{25} + return fileDescriptor_6c4bded897df1f16, []int{27} } func (m *SensorList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -779,7 +835,7 @@ var xxx_messageInfo_SensorList proto.InternalMessageInfo func (m *SensorSpec) Reset() { *m = SensorSpec{} } func (*SensorSpec) ProtoMessage() {} func (*SensorSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{26} + return fileDescriptor_6c4bded897df1f16, []int{28} } func (m *SensorSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -807,7 +863,7 @@ var xxx_messageInfo_SensorSpec proto.InternalMessageInfo func (m *SensorStatus) Reset() { *m = SensorStatus{} } func (*SensorStatus) ProtoMessage() {} func (*SensorStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{27} + return fileDescriptor_6c4bded897df1f16, []int{29} } func (m *SensorStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -835,7 +891,7 @@ var xxx_messageInfo_SensorStatus proto.InternalMessageInfo func (m *SlackTrigger) Reset() { *m = SlackTrigger{} } func (*SlackTrigger) ProtoMessage() {} func (*SlackTrigger) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{28} + return fileDescriptor_6c4bded897df1f16, []int{30} } func (m *SlackTrigger) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -863,7 +919,7 @@ var xxx_messageInfo_SlackTrigger proto.InternalMessageInfo func (m *StandardK8STrigger) Reset() { *m = StandardK8STrigger{} } func (*StandardK8STrigger) ProtoMessage() {} func (*StandardK8STrigger) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{29} + return fileDescriptor_6c4bded897df1f16, []int{31} } func (m *StandardK8STrigger) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -891,7 +947,7 @@ var xxx_messageInfo_StandardK8STrigger proto.InternalMessageInfo func (m *StatusPolicy) Reset() { *m = StatusPolicy{} } func (*StatusPolicy) ProtoMessage() {} func (*StatusPolicy) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{30} + return fileDescriptor_6c4bded897df1f16, []int{32} } func (m *StatusPolicy) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -919,7 +975,7 @@ var xxx_messageInfo_StatusPolicy proto.InternalMessageInfo func (m *Template) Reset() { *m = Template{} } func (*Template) ProtoMessage() {} func (*Template) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{31} + return fileDescriptor_6c4bded897df1f16, []int{33} } func (m *Template) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -947,7 +1003,7 @@ var xxx_messageInfo_Template proto.InternalMessageInfo func (m *TimeFilter) Reset() { *m = TimeFilter{} } func (*TimeFilter) ProtoMessage() {} func (*TimeFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{32} + return fileDescriptor_6c4bded897df1f16, []int{34} } func (m *TimeFilter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -975,7 +1031,7 @@ var xxx_messageInfo_TimeFilter proto.InternalMessageInfo func (m *Trigger) Reset() { *m = Trigger{} } func (*Trigger) ProtoMessage() {} func (*Trigger) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{33} + return fileDescriptor_6c4bded897df1f16, []int{35} } func (m *Trigger) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1003,7 +1059,7 @@ var xxx_messageInfo_Trigger proto.InternalMessageInfo func (m *TriggerParameter) Reset() { *m = TriggerParameter{} } func (*TriggerParameter) ProtoMessage() {} func (*TriggerParameter) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{34} + return fileDescriptor_6c4bded897df1f16, []int{36} } func (m *TriggerParameter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1031,7 +1087,7 @@ var xxx_messageInfo_TriggerParameter proto.InternalMessageInfo func (m *TriggerParameterSource) Reset() { *m = TriggerParameterSource{} } func (*TriggerParameterSource) ProtoMessage() {} func (*TriggerParameterSource) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{35} + return fileDescriptor_6c4bded897df1f16, []int{37} } func (m *TriggerParameterSource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1059,7 +1115,7 @@ var xxx_messageInfo_TriggerParameterSource proto.InternalMessageInfo func (m *TriggerPolicy) Reset() { *m = TriggerPolicy{} } func (*TriggerPolicy) ProtoMessage() {} func (*TriggerPolicy) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{36} + return fileDescriptor_6c4bded897df1f16, []int{38} } func (m *TriggerPolicy) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1087,7 +1143,7 @@ var xxx_messageInfo_TriggerPolicy proto.InternalMessageInfo func (m *TriggerTemplate) Reset() { *m = TriggerTemplate{} } func (*TriggerTemplate) ProtoMessage() {} func (*TriggerTemplate) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{37} + return fileDescriptor_6c4bded897df1f16, []int{39} } func (m *TriggerTemplate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1115,7 +1171,7 @@ var xxx_messageInfo_TriggerTemplate proto.InternalMessageInfo func (m *URLArtifact) Reset() { *m = URLArtifact{} } func (*URLArtifact) ProtoMessage() {} func (*URLArtifact) Descriptor() ([]byte, []int) { - return fileDescriptor_6c4bded897df1f16, []int{38} + return fileDescriptor_6c4bded897df1f16, []int{40} } func (m *URLArtifact) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1145,6 +1201,8 @@ func init() { proto.RegisterType((*ArgoWorkflowTrigger)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.ArgoWorkflowTrigger") proto.RegisterType((*ArtifactLocation)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.ArtifactLocation") proto.RegisterType((*AzureEventHubsTrigger)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.AzureEventHubsTrigger") + proto.RegisterType((*ConditionsResetByTime)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.ConditionsResetByTime") + proto.RegisterType((*ConditionsResetCriteria)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.ConditionsResetCriteria") proto.RegisterType((*CustomTrigger)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.CustomTrigger") proto.RegisterMapType((map[string]string)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.CustomTrigger.SpecEntry") proto.RegisterType((*DataFilter)(nil), "github.com.argoproj.argo_events.pkg.apis.sensor.v1alpha1.DataFilter") @@ -1191,259 +1249,265 @@ func init() { } var fileDescriptor_6c4bded897df1f16 = []byte{ - // 4017 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x3b, 0x4b, 0x6c, 0x23, 0xc9, - 0x75, 0x43, 0x8a, 0x94, 0xc8, 0x27, 0x4a, 0x9a, 0xa9, 0xf1, 0xd8, 0xb4, 0xbc, 0x2b, 0x0e, 0x68, - 0xc4, 0x19, 0x1b, 0x36, 0xb5, 0x3b, 0x9b, 0xc4, 0xf2, 0x04, 0xb1, 0x57, 0xdf, 0xf9, 0x71, 0x66, - 0xb4, 0xaf, 0xa9, 0x59, 0xe4, 0x03, 0xac, 0x5b, 0xcd, 0x22, 0xd9, 0xab, 0x66, 0x37, 0xb7, 0xab, - 0xa8, 0x59, 0x05, 0x70, 0x62, 0xc4, 0xc8, 0x21, 0x08, 0x90, 0xe4, 0x98, 0x53, 0x3e, 0x87, 0x9c, - 0x92, 0x43, 0x82, 0xe4, 0x16, 0xe4, 0xe2, 0xd3, 0xde, 0xbc, 0x39, 0x04, 0xf0, 0x21, 0x20, 0xb2, - 0xf4, 0x29, 0x87, 0x20, 0xf1, 0x75, 0x4e, 0x41, 0xfd, 0xfa, 0x47, 0xce, 0x8e, 0x38, 0x54, 0x34, - 0x01, 0x7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0x94, 0xab, 0xbb, 0x29, 0x2c, 0x66, 0xa8, 0x89, 0x03, - 0x45, 0x27, 0xa4, 0x6d, 0xa6, 0x6b, 0xad, 0x9d, 0xb9, 0x5a, 0x9b, 0x5d, 0xc1, 0x49, 0x65, 0x43, - 0xf9, 0x13, 0x15, 0x6f, 0xf2, 0xdb, 0x50, 0x61, 0xac, 0x27, 0x8b, 0x35, 0x59, 0xd7, 0xcd, 0x54, - 0x9a, 0x5f, 0x1d, 0x8f, 0x6a, 0x15, 0xcb, 0xba, 0x17, 0x0d, 0xc7, 0x14, 0x33, 0x91, 0x28, 0x45, - 0x6f, 0x29, 0x54, 0x98, 0x4d, 0x94, 0x07, 0x1a, 0x8e, 0x11, 0x85, 0x48, 0x2d, 0xc7, 0xa1, 0xed, - 0x3b, 0x3d, 0x1d, 0x95, 0xa3, 0x8d, 0xdb, 0x91, 0x50, 0xd4, 0x58, 0xa1, 0x76, 0x6e, 0x77, 0xf5, - 0x01, 0x49, 0xa4, 0xf6, 0x96, 0xdd, 0x45, 0x01, 0x17, 0xe8, 0x90, 0x76, 0xaa, 0xa5, 0x34, 0x1a, - 0x69, 0x07, 0x05, 0x9c, 0xf4, 0x61, 0x31, 0xa4, 0xfd, 0x80, 0xd3, 0x6a, 0x59, 0x2e, 0xf5, 0xfe, - 0x5c, 0x6a, 0x45, 0xc9, 0x4a, 0xf5, 0xa5, 0xaa, 0x79, 0x57, 0x10, 0xd4, 0x42, 0xea, 0x7f, 0x97, - 0x83, 0x92, 0x51, 0x3f, 0x79, 0x02, 0xa5, 0x21, 0xa3, 0x61, 0x14, 0xe5, 0xcf, 0xad, 0x68, 0xd9, - 0x34, 0x1e, 0xe9, 0xa1, 0x18, 0x31, 0x11, 0x0c, 0x07, 0x36, 0x63, 0xcf, 0x82, 0xb0, 0x3d, 0xdb, - 0xe1, 0x9f, 0x64, 0x78, 0xa8, 0x87, 0x62, 0xc4, 0xa4, 0xfe, 0x1e, 0xac, 0x65, 0x56, 0x75, 0x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, 0xd2, 0x87, 0x45, 0xc6, 0x6d, - 0x3e, 0x64, 0xf3, 0x3f, 0x30, 0xd1, 0x92, 0x24, 0xb7, 0xc4, 0xcd, 0x90, 0xfc, 0x46, 0x2d, 0xa5, - 0xfe, 0xaf, 0x39, 0x00, 0x45, 0xd8, 0x74, 0x19, 0x27, 0xbf, 0x33, 0xa1, 0xc8, 0xc6, 0xf9, 0x14, - 0x29, 0x46, 0x4b, 0x35, 0x46, 0xad, 0x81, 0x81, 0x24, 0x94, 0x48, 0xa1, 0xe8, 0x72, 0xda, 0x37, - 0x67, 0xca, 0xef, 0xce, 0xbb, 0xb6, 0x38, 0xea, 0xdf, 0x17, 0x6c, 0x51, 0x71, 0xaf, 0xff, 0x75, - 0xc1, 0xac, 0x49, 0x28, 0x96, 0xfc, 0x28, 0x07, 0x95, 0xb6, 0xb9, 0xb6, 0x70, 0xa9, 0xe9, 0xbb, - 0xef, 0x5f, 0xd8, 0xcd, 0x49, 0xdc, 0x44, 0xed, 0x25, 0xc4, 0x60, 0x4a, 0x28, 0x09, 0xa0, 0xc4, - 0x55, 0x04, 0x37, 0xcb, 0xdf, 0x9e, 0x3b, 0x17, 0x24, 0x6e, 0x3a, 0x35, 0x6b, 0x8c, 0x84, 0x10, - 0x2f, 0x71, 0x2f, 0x3a, 0xf7, 0x99, 0xb5, 0xb9, 0x49, 0x55, 0x47, 0x95, 0x93, 0xf7, 0xaa, 0xe4, - 0x01, 0x10, 0xdd, 0xb7, 0x1f, 0xd8, 0xae, 0x47, 0xdb, 0x18, 0x0c, 0x7d, 0x75, 0xcc, 0x56, 0x8a, - 0x1f, 0x0e, 0xec, 0x4f, 0x50, 0xe0, 0x94, 0x51, 0xa2, 0x53, 0x95, 0xf3, 0xd9, 0x19, 0xb2, 0x44, - 0x31, 0x16, 0x29, 0x79, 0x3f, 0x81, 0xc3, 0x14, 0x25, 0xb9, 0x05, 0xa5, 0x90, 0x0e, 0x3c, 0xd7, - 0xb1, 0x55, 0xa7, 0x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 0xa5, 0x78, 0x6e, 0xcd, 0x08, 0x83, 0x09, - 0xaa, 0xfa, 0x26, 0x54, 0x94, 0x0b, 0xe9, 0x73, 0xd3, 0x1a, 0x14, 0x6d, 0x51, 0x19, 0x4a, 0x57, - 0x29, 0xaa, 0xcb, 0x33, 0x59, 0x2a, 0xa2, 0x82, 0xd7, 0xff, 0xa8, 0x04, 0x51, 0x64, 0x22, 0xce, - 0x44, 0x22, 0x9b, 0xfd, 0x95, 0xe0, 0x23, 0xcd, 0x40, 0x05, 0x11, 0xf3, 0x95, 0xc8, 0x67, 0xfa, - 0xb5, 0x94, 0xeb, 0xd0, 0x6d, 0xc7, 0x09, 0x86, 0xfa, 0x1e, 0x3f, 0x3f, 0xf9, 0x5a, 0x2a, 0x4d, - 0x81, 0x53, 0x46, 0x91, 0x07, 0xf2, 0x3d, 0x26, 0xb7, 0x85, 0x4e, 0x75, 0xbc, 0x7e, 0xf3, 0x05, - 0xef, 0x31, 0x15, 0x51, 0xf4, 0x08, 0x53, 0x7d, 0x62, 0x3c, 0x9c, 0xec, 0xc3, 0xd2, 0x69, 0xe0, - 0x0d, 0xfb, 0xd4, 0x1c, 0x43, 0xac, 0x4f, 0xe3, 0xf4, 0x54, 0x92, 0x24, 0xfa, 0x72, 0x35, 0x04, - 0xcd, 0x58, 0x42, 0x61, 0x4d, 0x16, 0xe1, 0x2e, 0x3f, 0xd3, 0x77, 0xe4, 0xba, 0x85, 0xf8, 0xda, - 0x34, 0x76, 0x87, 0x41, 0xdb, 0x4a, 0x53, 0xeb, 0xc7, 0x82, 0x69, 0x20, 0x66, 0x79, 0x92, 0x3f, - 0xc9, 0x41, 0xc5, 0x0f, 0xda, 0xd4, 0x84, 0x17, 0xdd, 0x4b, 0xb7, 0xe6, 0xcf, 0x56, 0x8d, 0xc7, - 0x09, 0xb6, 0xea, 0x50, 0x3c, 0xca, 0x22, 0x49, 0x14, 0xa6, 0xe4, 0x93, 0x23, 0x58, 0xe6, 0x81, - 0xa7, 0x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 0x0d, 0xb9, 0xfe, 0x2b, 0x54, 0x14, 0xb1, - 0x9f, 0x46, 0x18, 0x4c, 0x50, 0xed, 0x34, 0x3e, 0xf9, 0x6c, 0xe3, 0xca, 0xa7, 0x9f, 0x6d, 0x5c, - 0xf9, 0xe9, 0x67, 0x1b, 0x57, 0x7e, 0x38, 0xde, 0xc8, 0x7d, 0x32, 0xde, 0xc8, 0x7d, 0x3a, 0xde, - 0xc8, 0xfd, 0x74, 0xbc, 0x91, 0xfb, 0x8f, 0xf1, 0x46, 0xee, 0xcf, 0x7e, 0xb6, 0x71, 0xe5, 0xb7, - 0x4a, 0x66, 0xda, 0xff, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x10, 0x05, 0xdd, 0x98, 0xb3, 0x3f, 0x00, - 0x00, + // 4121 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x3b, 0x4b, 0x6c, 0x23, 0xd9, + 0x71, 0x43, 0x8a, 0x94, 0xc8, 0x12, 0x25, 0xcd, 0xbc, 0xf1, 0xd8, 0xb4, 0xbc, 0x2b, 0x0e, 0xda, + 0x88, 0x33, 0x36, 0x6c, 0x6a, 0x77, 0x36, 0x89, 0xe5, 0x09, 0x62, 0xaf, 0x44, 0x49, 0xf3, 0xe3, + 0x8c, 0xb4, 0xd5, 0xd4, 0x2c, 0xf2, 0x01, 0xd6, 0xad, 0xe6, 0x23, 0xd9, 0xab, 0x66, 0x37, 0xb7, + 0xdf, 0xa3, 0x66, 0x65, 0xc0, 0x89, 0x11, 0x23, 0x87, 0x20, 0x80, 0x93, 0x43, 0x0e, 0x39, 0xe5, + 0x73, 0xc8, 0x29, 0x39, 0x24, 0xc8, 0x31, 0xc8, 0xc5, 0xa7, 0x05, 0x72, 0xf0, 0xe6, 0x10, 0xc0, + 0x87, 0x40, 0xc8, 0xca, 0xa7, 0x1c, 0x82, 0xc4, 0xd7, 0x39, 0x05, 0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c, 0x98, 0xab, 0x2c, 0x8b, 0xb9, 0x6b, 0xc5, + 0x8d, 0x31, 0xc5, 0x88, 0x3c, 0x00, 0xa2, 0xfa, 0x22, 0xdc, 0x64, 0xef, 0x98, 0x46, 0x91, 0xd7, + 0xa5, 0x3a, 0x3d, 0x5a, 0xd5, 0x5d, 0x21, 0xf6, 0x04, 0x05, 0x4e, 0x69, 0x45, 0x18, 0x94, 0xd8, + 0x88, 0xba, 0xda, 0xf6, 0xdf, 0x9b, 0x61, 0x02, 0xd2, 0x2a, 0x6d, 0xda, 0x23, 0xea, 0xee, 0x04, + 0x3c, 0x3a, 0x49, 0x2c, 0x48, 0x80, 0x50, 0x0a, 0x7b, 0xed, 0x49, 0x53, 0xca, 0xe7, 0x17, 0x2e, + 0xcf, 0xe7, 0x57, 0xbf, 0x09, 0xd5, 0x58, 0x2f, 0xe4, 0x2a, 0xcc, 0x1d, 0xd1, 0x13, 0x65, 0x6e, + 0x28, 0x3e, 0xc9, 0xe7, 0xa0, 0x7c, 0xec, 0xf8, 0x63, 0xed, 0x54, 0xa8, 0x7e, 0xee, 0x14, 0x37, + 0x0a, 0xd6, 0x7f, 0x16, 0x00, 0xb6, 0x1d, 0xee, 0xec, 0x7a, 0x3e, 0x57, 0x71, 0x7d, 0xe4, 0xf0, + 0x41, 0xde, 0x45, 0xf7, 0x1d, 0x3e, 0x40, 0x89, 0x21, 0x5f, 0x87, 0x12, 0x17, 0xb9, 0xa0, 0x72, + 0xcf, 0xba, 0xa1, 0x10, 0x59, 0xdf, 0xb3, 0xd3, 0x46, 0xe5, 0x81, 0xbd, 0xf7, 0x58, 0x66, 0x84, + 0x92, 0x8a, 0x34, 0x8c, 0x60, 0x91, 0x30, 0x55, 0xb7, 0xaa, 0x67, 0xa7, 0x8d, 0xf2, 0x13, 0x01, + 0xd0, 0x7d, 0x20, 0xef, 0x02, 0xb8, 0xe1, 0x50, 0x28, 0x90, 0x87, 0x91, 0x36, 0xb4, 0x9b, 0x46, + 0xc7, 0xad, 0x18, 0xf3, 0x2c, 0xf3, 0x87, 0xa9, 0x36, 0x32, 0x66, 0xd0, 0xe1, 0xc8, 0x77, 0x38, + 0x95, 0x2b, 0x78, 0x3a, 0x66, 0x68, 0x38, 0xc6, 0x14, 0xd6, 0x9f, 0x17, 0xa0, 0x2c, 0x57, 0x33, + 0x32, 0x84, 0x05, 0x37, 0x0c, 0x38, 0xfd, 0x98, 0xeb, 0x10, 0x31, 0x43, 0x16, 0x23, 0x39, 0xb6, + 0x14, 0xb7, 0xad, 0x45, 0x31, 0x43, 0xfa, 0x07, 0x8d, 0x0c, 0xf2, 0x06, 0x94, 0xba, 0x0e, 0x77, + 0xa4, 0xde, 0x6a, 0x2a, 0xd3, 0x11, 0x7a, 0x47, 0x09, 0xbd, 0x53, 0xf9, 0xb3, 0xbf, 0x6c, 0x5c, + 0xf9, 0xc1, 0xbf, 0xdd, 0xbc, 0x62, 0xfd, 0xbc, 0x08, 0xb5, 0x34, 0x3b, 0xb2, 0x0a, 0x45, 0xaf, + 0xab, 0x27, 0x04, 0xf4, 0xc8, 0x8a, 0xf7, 0xb7, 0xb1, 0xe8, 0x75, 0x65, 0xb4, 0x50, 0x39, 0x40, + 0x31, 0x5b, 0xc1, 0xe4, 0xd2, 0xe0, 0x5f, 0x85, 0x45, 0xe1, 0x1d, 0xc7, 0x34, 0x62, 0x22, 0x11, + 0x9e, 0x93, 0xc4, 0xd7, 0x35, 0xf1, 0xa2, 0xb0, 0x9c, 0x27, 0x0a, 0x85, 0x69, 0x3a, 0x61, 0x0d, + 0x72, 0xae, 0x4b, 0x59, 0x6b, 0x48, 0xcd, 0xef, 0x26, 0xac, 0x88, 0xfe, 0xcb, 0x41, 0x06, 0x5c, + 0x12, 0xab, 0x39, 0xf8, 0x82, 0x26, 0x5e, 0x11, 0x83, 0x6c, 0x29, 0xb4, 0x6c, 0x97, 0xa7, 0x17, + 0x89, 0x02, 0x1b, 0x1f, 0x7e, 0x48, 0x5d, 0x95, 0x2f, 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0x4e, 0x89, 0xc1, 0x8c, 0x50, 0x12, + 0x42, 0x85, 0xab, 0x08, 0x6e, 0x86, 0xbf, 0x39, 0xf3, 0x5a, 0x90, 0x3a, 0xe9, 0xd4, 0xac, 0x31, + 0x16, 0x42, 0xfc, 0xd4, 0xb9, 0xe8, 0xcc, 0x7b, 0xd6, 0xe6, 0x24, 0x55, 0x6d, 0x55, 0x4e, 0x9e, + 0xab, 0x92, 0x07, 0x40, 0x74, 0xdd, 0xbe, 0xeb, 0x78, 0x3e, 0xed, 0x62, 0x38, 0x0e, 0xd4, 0x36, + 0x5b, 0x25, 0xb9, 0x38, 0xb0, 0x33, 0x41, 0x81, 0x53, 0x5a, 0x89, 0x4a, 0x55, 0xf6, 0x67, 0x6b, + 0xcc, 0x52, 0xc9, 0x58, 0xac, 0xe4, 0x9d, 0x14, 0x0e, 0x33, 0x94, 0xe4, 0x16, 0x54, 0x22, 0x3a, + 0xf2, 0x3d, 0xd7, 0x51, 0x95, 0x6a, 0xd9, 0x5c, 0x6d, 0x52, 0x30, 0x8c, 0xb1, 0x56, 0x08, 0xb5, + 0xb4, 0x7f, 0x90, 0x0f, 0x62, 0xbf, 0x53, 0x66, 0xff, 0xcd, 0x8b, 0xd7, 0x4e, 0xbf, 0xd8, 0xd1, + 0xfe, 0xb1, 0x08, 0x35, 0xdb, 0x77, 0xdc, 0x38, 0x85, 0xce, 0xe6, 0x26, 0x85, 0xd7, 0x50, 0x2e, + 0x00, 0x93, 0xfd, 0x91, 0x59, 0x74, 0xf1, 0xc2, 0x37, 0x48, 0xec, 0xb8, 0x31, 0xa6, 0x18, 0x89, + 0xbc, 0xdf, 0x1d, 0x38, 0x41, 0x40, 0x7d, 0x9d, 0xca, 0xc7, 0x69, 0x4a, 0x4b, 0x81, 0xd1, 0xe0, + 0x05, 0xe9, 0x90, 0x32, 0xe6, 0xf4, 0xcd, 0x09, 0x73, 0x4c, 0xfa, 0x48, 0x81, 0xd1, 0xe0, 0xad, + 0xff, 0x9e,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00, 0x00, } func (m *AWSLambdaTrigger) Marshal() (dAtA []byte, err error) { @@ -1779,6 +1843,74 @@ func (m *AzureEventHubsTrigger) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *ConditionsResetByTime) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ConditionsResetByTime) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ConditionsResetByTime) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.Timezone) + copy(dAtA[i:], m.Timezone) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Timezone))) + i-- + dAtA[i] = 0x12 + i -= len(m.Cron) + copy(dAtA[i:], m.Cron) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Cron))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ConditionsResetCriteria) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ConditionsResetCriteria) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ConditionsResetCriteria) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ByTime != nil { + { + size, err := m.ByTime.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func (m *CustomTrigger) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -3892,6 +4024,20 @@ func (m *TriggerTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.ConditionsReset) > 0 { + for iNdEx := len(m.ConditionsReset) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ConditionsReset[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x7a + } + } if m.Pulsar != nil { { size, err := m.Pulsar.MarshalToSizedBuffer(dAtA[:i]) @@ -4224,6 +4370,32 @@ func (m *AzureEventHubsTrigger) Size() (n int) { return n } +func (m *ConditionsResetByTime) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Cron) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Timezone) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ConditionsResetCriteria) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ByTime != nil { + l = m.ByTime.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + func (m *CustomTrigger) Size() (n int) { if m == nil { return 0 @@ -5071,6 +5243,12 @@ func (m *TriggerTemplate) Size() (n int) { l = m.Pulsar.Size() n += 1 + l + sovGenerated(uint64(l)) } + if len(m.ConditionsReset) > 0 { + for _, e := range m.ConditionsReset { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } return n } @@ -5176,6 +5354,27 @@ func (this *AzureEventHubsTrigger) String() string { }, "") return s } +func (this *ConditionsResetByTime) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ConditionsResetByTime{`, + `Cron:` + fmt.Sprintf("%v", this.Cron) + `,`, + `Timezone:` + fmt.Sprintf("%v", this.Timezone) + `,`, + `}`, + }, "") + return s +} +func (this *ConditionsResetCriteria) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ConditionsResetCriteria{`, + `ByTime:` + strings.Replace(this.ByTime.String(), "ConditionsResetByTime", "ConditionsResetByTime", 1) + `,`, + `}`, + }, "") + return s +} func (this *CustomTrigger) String() string { if this == nil { return "nil" @@ -5762,6 +5961,11 @@ func (this *TriggerTemplate) String() string { if this == nil { return "nil" } + repeatedStringForConditionsReset := "[]ConditionsResetCriteria{" + for _, f := range this.ConditionsReset { + repeatedStringForConditionsReset += strings.Replace(strings.Replace(f.String(), "ConditionsResetCriteria", "ConditionsResetCriteria", 1), `&`, ``, 1) + "," + } + repeatedStringForConditionsReset += "}" s := strings.Join([]string{`&TriggerTemplate{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `Conditions:` + fmt.Sprintf("%v", this.Conditions) + `,`, @@ -5777,6 +5981,7 @@ func (this *TriggerTemplate) String() string { `Log:` + strings.Replace(this.Log.String(), "LogTrigger", "LogTrigger", 1) + `,`, `AzureEventHubs:` + strings.Replace(this.AzureEventHubs.String(), "AzureEventHubsTrigger", "AzureEventHubsTrigger", 1) + `,`, `Pulsar:` + strings.Replace(this.Pulsar.String(), "PulsarTrigger", "PulsarTrigger", 1) + `,`, + `ConditionsReset:` + repeatedStringForConditionsReset + `,`, `}`, }, "") return s @@ -6792,6 +6997,206 @@ func (m *AzureEventHubsTrigger) Unmarshal(dAtA []byte) error { } return nil } +func (m *ConditionsResetByTime) 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: ConditionsResetByTime: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ConditionsResetByTime: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cron", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Cron = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timezone", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Timezone = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ConditionsResetCriteria) 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: ConditionsResetCriteria: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ConditionsResetCriteria: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ByTime", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ByTime == nil { + m.ByTime = &ConditionsResetByTime{} + } + if err := m.ByTime.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *CustomTrigger) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -14108,6 +14513,40 @@ func (m *TriggerTemplate) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConditionsReset", 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 < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ConditionsReset = append(m.ConditionsReset, ConditionsResetCriteria{}) + if err := m.ConditionsReset[len(m.ConditionsReset)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) diff --git a/pkg/apis/sensor/v1alpha1/generated.proto b/pkg/apis/sensor/v1alpha1/generated.proto index 874cd5aa41..d8c0342354 100644 --- a/pkg/apis/sensor/v1alpha1/generated.proto +++ b/pkg/apis/sensor/v1alpha1/generated.proto @@ -128,6 +128,19 @@ message AzureEventHubsTrigger { repeated TriggerParameter parameters = 6; } +message ConditionsResetByTime { + // Cron is a cron-like expression. For reference, see: https://en.wikipedia.org/wiki/Cron + optional string cron = 1; + + // +optional + optional string timezone = 2; +} + +message ConditionsResetCriteria { + // Schedule is a cron-like expression. For reference, see: https://en.wikipedia.org/wiki/Cron + optional ConditionsResetByTime byTime = 1; +} + // CustomTrigger refers to the specification of the custom trigger. message CustomTrigger { // ServerURL is the url of the gRPC server that executes custom trigger @@ -867,6 +880,10 @@ message TriggerTemplate { // Pulsar refers to the trigger designed to place messages on Pulsar topic. // +optional optional PulsarTrigger pulsar = 14; + + // Criteria to reset the conditons + // +optional + repeated ConditionsResetCriteria conditionsReset = 15; } // URLArtifact contains information about an artifact at an http endpoint. diff --git a/pkg/apis/sensor/v1alpha1/openapi_generated.go b/pkg/apis/sensor/v1alpha1/openapi_generated.go index 0ae80a0a07..d37a955c58 100644 --- a/pkg/apis/sensor/v1alpha1/openapi_generated.go +++ b/pkg/apis/sensor/v1alpha1/openapi_generated.go @@ -30,45 +30,47 @@ import ( func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { return map[string]common.OpenAPIDefinition{ - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.AWSLambdaTrigger": schema_pkg_apis_sensor_v1alpha1_AWSLambdaTrigger(ref), - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ArgoWorkflowTrigger": schema_pkg_apis_sensor_v1alpha1_ArgoWorkflowTrigger(ref), - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ArtifactLocation": schema_pkg_apis_sensor_v1alpha1_ArtifactLocation(ref), - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.AzureEventHubsTrigger": schema_pkg_apis_sensor_v1alpha1_AzureEventHubsTrigger(ref), - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.CustomTrigger": schema_pkg_apis_sensor_v1alpha1_CustomTrigger(ref), - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.DataFilter": schema_pkg_apis_sensor_v1alpha1_DataFilter(ref), - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.Event": schema_pkg_apis_sensor_v1alpha1_Event(ref), - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.EventContext": schema_pkg_apis_sensor_v1alpha1_EventContext(ref), - "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.ExprFilter": schema_pkg_apis_sensor_v1alpha1_ExprFilter(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.HTTPTrigger": schema_pkg_apis_sensor_v1alpha1_HTTPTrigger(ref), - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.K8SResourcePolicy": schema_pkg_apis_sensor_v1alpha1_K8SResourcePolicy(ref), - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.KafkaTrigger": schema_pkg_apis_sensor_v1alpha1_KafkaTrigger(ref), - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.LogTrigger": schema_pkg_apis_sensor_v1alpha1_LogTrigger(ref), - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.NATSTrigger": schema_pkg_apis_sensor_v1alpha1_NATSTrigger(ref), - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.OpenWhiskTrigger": schema_pkg_apis_sensor_v1alpha1_OpenWhiskTrigger(ref), - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.PayloadField": schema_pkg_apis_sensor_v1alpha1_PayloadField(ref), - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.PulsarTrigger": schema_pkg_apis_sensor_v1alpha1_PulsarTrigger(ref), - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.RateLimit": schema_pkg_apis_sensor_v1alpha1_RateLimit(ref), - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.Sensor": schema_pkg_apis_sensor_v1alpha1_Sensor(ref), - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SensorList": schema_pkg_apis_sensor_v1alpha1_SensorList(ref), - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SensorSpec": schema_pkg_apis_sensor_v1alpha1_SensorSpec(ref), - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SensorStatus": schema_pkg_apis_sensor_v1alpha1_SensorStatus(ref), - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SlackTrigger": schema_pkg_apis_sensor_v1alpha1_SlackTrigger(ref), - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.StandardK8STrigger": schema_pkg_apis_sensor_v1alpha1_StandardK8STrigger(ref), - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.StatusPolicy": schema_pkg_apis_sensor_v1alpha1_StatusPolicy(ref), - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.Template": schema_pkg_apis_sensor_v1alpha1_Template(ref), - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TimeFilter": schema_pkg_apis_sensor_v1alpha1_TimeFilter(ref), - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.Trigger": schema_pkg_apis_sensor_v1alpha1_Trigger(ref), - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter": schema_pkg_apis_sensor_v1alpha1_TriggerParameter(ref), - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameterSource": schema_pkg_apis_sensor_v1alpha1_TriggerParameterSource(ref), - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerPolicy": schema_pkg_apis_sensor_v1alpha1_TriggerPolicy(ref), - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerTemplate": schema_pkg_apis_sensor_v1alpha1_TriggerTemplate(ref), - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.URLArtifact": schema_pkg_apis_sensor_v1alpha1_URLArtifact(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.AWSLambdaTrigger": schema_pkg_apis_sensor_v1alpha1_AWSLambdaTrigger(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ArgoWorkflowTrigger": schema_pkg_apis_sensor_v1alpha1_ArgoWorkflowTrigger(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ArtifactLocation": schema_pkg_apis_sensor_v1alpha1_ArtifactLocation(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.AzureEventHubsTrigger": schema_pkg_apis_sensor_v1alpha1_AzureEventHubsTrigger(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ConditionsResetByTime": schema_pkg_apis_sensor_v1alpha1_ConditionsResetByTime(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ConditionsResetCriteria": schema_pkg_apis_sensor_v1alpha1_ConditionsResetCriteria(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.CustomTrigger": schema_pkg_apis_sensor_v1alpha1_CustomTrigger(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.DataFilter": schema_pkg_apis_sensor_v1alpha1_DataFilter(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.Event": schema_pkg_apis_sensor_v1alpha1_Event(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.EventContext": schema_pkg_apis_sensor_v1alpha1_EventContext(ref), + "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.ExprFilter": schema_pkg_apis_sensor_v1alpha1_ExprFilter(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.HTTPTrigger": schema_pkg_apis_sensor_v1alpha1_HTTPTrigger(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.K8SResourcePolicy": schema_pkg_apis_sensor_v1alpha1_K8SResourcePolicy(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.KafkaTrigger": schema_pkg_apis_sensor_v1alpha1_KafkaTrigger(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.LogTrigger": schema_pkg_apis_sensor_v1alpha1_LogTrigger(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.NATSTrigger": schema_pkg_apis_sensor_v1alpha1_NATSTrigger(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.OpenWhiskTrigger": schema_pkg_apis_sensor_v1alpha1_OpenWhiskTrigger(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.PayloadField": schema_pkg_apis_sensor_v1alpha1_PayloadField(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.PulsarTrigger": schema_pkg_apis_sensor_v1alpha1_PulsarTrigger(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.RateLimit": schema_pkg_apis_sensor_v1alpha1_RateLimit(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.Sensor": schema_pkg_apis_sensor_v1alpha1_Sensor(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SensorList": schema_pkg_apis_sensor_v1alpha1_SensorList(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SensorSpec": schema_pkg_apis_sensor_v1alpha1_SensorSpec(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SensorStatus": schema_pkg_apis_sensor_v1alpha1_SensorStatus(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SlackTrigger": schema_pkg_apis_sensor_v1alpha1_SlackTrigger(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.StandardK8STrigger": schema_pkg_apis_sensor_v1alpha1_StandardK8STrigger(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.StatusPolicy": schema_pkg_apis_sensor_v1alpha1_StatusPolicy(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.Template": schema_pkg_apis_sensor_v1alpha1_Template(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TimeFilter": schema_pkg_apis_sensor_v1alpha1_TimeFilter(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.Trigger": schema_pkg_apis_sensor_v1alpha1_Trigger(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameter": schema_pkg_apis_sensor_v1alpha1_TriggerParameter(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerParameterSource": schema_pkg_apis_sensor_v1alpha1_TriggerParameterSource(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerPolicy": schema_pkg_apis_sensor_v1alpha1_TriggerPolicy(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.TriggerTemplate": schema_pkg_apis_sensor_v1alpha1_TriggerTemplate(ref), + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.URLArtifact": schema_pkg_apis_sensor_v1alpha1_URLArtifact(ref), } } @@ -323,6 +325,51 @@ func schema_pkg_apis_sensor_v1alpha1_AzureEventHubsTrigger(ref common.ReferenceC } } +func schema_pkg_apis_sensor_v1alpha1_ConditionsResetByTime(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "cron": { + SchemaProps: spec.SchemaProps{ + Description: "Cron is a cron-like expression. For reference, see: https://en.wikipedia.org/wiki/Cron", + Type: []string{"string"}, + Format: "", + }, + }, + "timezone": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_sensor_v1alpha1_ConditionsResetCriteria(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "byTime": { + SchemaProps: spec.SchemaProps{ + Description: "Schedule is a cron-like expression. For reference, see: https://en.wikipedia.org/wiki/Cron", + Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ConditionsResetByTime"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ConditionsResetByTime"}, + } +} + func schema_pkg_apis_sensor_v1alpha1_CustomTrigger(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -2214,12 +2261,26 @@ func schema_pkg_apis_sensor_v1alpha1_TriggerTemplate(ref common.ReferenceCallbac Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.PulsarTrigger"), }, }, + "conditionsReset": { + SchemaProps: spec.SchemaProps{ + Description: "Criteria to reset the conditons", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ConditionsResetCriteria"), + }, + }, + }, + }, + }, }, Required: []string{"name"}, }, }, Dependencies: []string{ - "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.AWSLambdaTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ArgoWorkflowTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.AzureEventHubsTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.CustomTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.HTTPTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.KafkaTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.LogTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.NATSTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.OpenWhiskTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.PulsarTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SlackTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.StandardK8STrigger"}, + "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.AWSLambdaTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ArgoWorkflowTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.AzureEventHubsTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.ConditionsResetCriteria", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.CustomTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.HTTPTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.KafkaTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.LogTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.NATSTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.OpenWhiskTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.PulsarTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.SlackTrigger", "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1.StandardK8STrigger"}, } } diff --git a/pkg/apis/sensor/v1alpha1/types.go b/pkg/apis/sensor/v1alpha1/types.go index 22f657ae9a..2e321c381d 100644 --- a/pkg/apis/sensor/v1alpha1/types.go +++ b/pkg/apis/sensor/v1alpha1/types.go @@ -348,6 +348,21 @@ type TriggerTemplate struct { // Pulsar refers to the trigger designed to place messages on Pulsar topic. // +optional Pulsar *PulsarTrigger `json:"pulsar,omitempty" protobuf:"bytes,14,opt,name=pulsar"` + // Criteria to reset the conditons + // +optional + ConditionsReset []ConditionsResetCriteria `json:"conditionsReset,omitempty" protobuf:"bytes,15,rep,name=conditionsReset"` +} + +type ConditionsResetCriteria struct { + // Schedule is a cron-like expression. For reference, see: https://en.wikipedia.org/wiki/Cron + ByTime *ConditionsResetByTime `json:"byTime,omitempty" protobuf:"bytes,1,opt,name=byTime"` +} + +type ConditionsResetByTime struct { + // Cron is a cron-like expression. For reference, see: https://en.wikipedia.org/wiki/Cron + Cron string `json:"cron,omitempty" protobuf:"bytes,1,opt,name=cron"` + // +optional + Timezone string `json:"timezone,omitempty" protobuf:"bytes,2,opt,name=timezone"` } // StandardK8STrigger is the standard Kubernetes resource trigger diff --git a/pkg/apis/sensor/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/sensor/v1alpha1/zz_generated.deepcopy.go index 0bcfbe1dae..b4a08d4bf9 100644 --- a/pkg/apis/sensor/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/sensor/v1alpha1/zz_generated.deepcopy.go @@ -191,6 +191,43 @@ func (in *AzureEventHubsTrigger) DeepCopy() *AzureEventHubsTrigger { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ConditionsResetByTime) DeepCopyInto(out *ConditionsResetByTime) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConditionsResetByTime. +func (in *ConditionsResetByTime) DeepCopy() *ConditionsResetByTime { + if in == nil { + return nil + } + out := new(ConditionsResetByTime) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ConditionsResetCriteria) DeepCopyInto(out *ConditionsResetCriteria) { + *out = *in + if in.ByTime != nil { + in, out := &in.ByTime, &out.ByTime + *out = new(ConditionsResetByTime) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConditionsResetCriteria. +func (in *ConditionsResetCriteria) DeepCopy() *ConditionsResetCriteria { + if in == nil { + return nil + } + out := new(ConditionsResetCriteria) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *CustomTrigger) DeepCopyInto(out *CustomTrigger) { *out = *in @@ -1219,6 +1256,13 @@ func (in *TriggerTemplate) DeepCopyInto(out *TriggerTemplate) { *out = new(PulsarTrigger) (*in).DeepCopyInto(*out) } + if in.ConditionsReset != nil { + in, out := &in.ConditionsReset, &out.ConditionsReset + *out = make([]ConditionsResetCriteria, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } diff --git a/sensors/listener.go b/sensors/listener.go index f1691a277e..ee1bec9082 100644 --- a/sensors/listener.go +++ b/sensors/listener.go @@ -29,6 +29,7 @@ import ( "github.com/antonmedv/expr" cloudevents "github.com/cloudevents/sdk-go/v2" "github.com/pkg/errors" + cronlib "github.com/robfig/cron/v3" "go.uber.org/ratelimit" "go.uber.org/zap" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -55,9 +56,9 @@ func subscribeOnce(subLock *uint32, subscribe func()) { subscribe() } -func (sensorCtx *SensorContext) getGroupAndClientID(depExpression string) (string, string) { +func (sensorCtx *SensorContext) getGroupAndClientID(triggerName, depExpression string) (string, string) { // Generate clientID with hash code - hashKey := fmt.Sprintf("%s-%s", sensorCtx.sensor.Name, depExpression) + hashKey := fmt.Sprintf("%s-%s-%s", sensorCtx.sensor.Name, triggerName, depExpression) s1 := rand.NewSource(time.Now().UnixNano()) r1 := rand.New(s1) hashVal := common.Hasher(hashKey) @@ -106,6 +107,12 @@ func initRateLimiter(trigger v1alpha1.Trigger) { func (sensorCtx *SensorContext) listenEvents(ctx context.Context) error { logger := logging.FromContext(ctx) sensor := sensorCtx.sensor + + depMapping := make(map[string]v1alpha1.EventDependency) + for _, d := range sensor.Spec.Dependencies { + depMapping[d.Name] = d + } + // Get a mapping of dependencyExpression: []triggers triggerMapping := make(map[string][]v1alpha1.Trigger) for _, trigger := range sensor.Spec.Triggers { @@ -125,18 +132,19 @@ func (sensorCtx *SensorContext) listenEvents(ctx context.Context) error { initRateLimiter(trigger) } - depMapping := make(map[string]v1alpha1.EventDependency) - for _, d := range sensor.Spec.Dependencies { - depMapping[d.Name] = d - } - - cctx, cancel := context.WithCancel(ctx) + ctx, cancel := context.WithCancel(ctx) + defer cancel() wg := &sync.WaitGroup{} - for k, v := range triggerMapping { + for _, t := range sensor.Spec.Triggers { wg.Add(1) - go func(depExpression string, triggers []v1alpha1.Trigger) { + go func(trigger v1alpha1.Trigger) { defer wg.Done() - // Calculate dependencies of each group of triggers. + depExpression, err := sensorCtx.getDependencyExpression(ctx, trigger) + if err != nil { + logger.Errorw("failed to get dependency expression", zap.Error(err)) + return + } + // Calculate dependencies of each of the trigger. de := strings.ReplaceAll(depExpression, "-", "\\-") expr, err := govaluate.NewEvaluableExpression(de) if err != nil { @@ -158,17 +166,12 @@ func (sensorCtx *SensorContext) listenEvents(ctx context.Context) error { } deps = append(deps, d) } - - group, clientID := sensorCtx.getGroupAndClientID(depExpression) - ebDriver, err := eventbus.GetDriver(cctx, *sensorCtx.eventBusConfig, sensorCtx.eventBusSubject, clientID) + group, clientID := sensorCtx.getGroupAndClientID(trigger.Template.Name, depExpression) + ebDriver, err := eventbus.GetDriver(logging.WithLogger(ctx, logger.With(logging.LabelTriggerName, trigger.Template.Name)), *sensorCtx.eventBusConfig, sensorCtx.eventBusSubject, clientID) if err != nil { logger.Errorw("failed to get eventbus driver", zap.Error(err)) return } - triggerNames := []string{} - for _, t := range triggers { - triggerNames = append(triggerNames, t.Template.Name) - } var conn eventbusdriver.Connection err = common.Connect(&common.DefaultBackoff, func() error { var err error @@ -199,7 +202,7 @@ func (sensorCtx *SensorContext) listenEvents(ctx context.Context) error { } actionFunc := func(events map[string]cloudevents.Event) { - if err := sensorCtx.triggerActions(cctx, sensor, events, triggers); err != nil { + if err := sensorCtx.triggerActions(ctx, sensor, events, trigger); err != nil { logger.Errorw("failed to trigger actions", zap.Error(err)) } } @@ -207,6 +210,7 @@ func (sensorCtx *SensorContext) listenEvents(ctx context.Context) error { var subLock uint32 wg1 := &sync.WaitGroup{} closeSubCh := make(chan struct{}) + resetConditionsCh := make(chan struct{}) subscribeFunc := func() { wg1.Add(1) @@ -215,9 +219,9 @@ func (sensorCtx *SensorContext) listenEvents(ctx context.Context) error { // release the lock when goroutine exits defer atomic.StoreUint32(&subLock, 0) - logger.Infof("started subscribing to events for triggers %s with client %s", fmt.Sprintf("[%s]", strings.Join(triggerNames, " ")), clientID) + logger.Infof("started subscribing to events for trigger %s with client %s", trigger.Template.Name, clientID) - err = ebDriver.SubscribeEventSources(cctx, conn, group, closeSubCh, depExpression, deps, filterFunc, actionFunc) + err = ebDriver.SubscribeEventSources(ctx, conn, group, closeSubCh, resetConditionsCh, depExpression, deps, filterFunc, actionFunc) if err != nil { logger.Errorw("failed to subscribe to eventbus", zap.Any("clientID", clientID), zap.Error(err)) return @@ -227,12 +231,37 @@ func (sensorCtx *SensorContext) listenEvents(ctx context.Context) error { subscribeOnce(&subLock, subscribeFunc) + if len(trigger.Template.ConditionsReset) > 0 { + for _, c := range trigger.Template.ConditionsReset { + if c.ByTime == nil { + continue + } + opts := []cronlib.Option{ + cronlib.WithParser(cronlib.NewParser(cronlib.Minute | cronlib.Hour | cronlib.Dom | cronlib.Month | cronlib.Dow)), + cronlib.WithChain(cronlib.Recover(cronlib.DefaultLogger)), + } + if c.ByTime.Timezone != "" { + location, err := time.LoadLocation(c.ByTime.Timezone) + if err != nil { + logger.Errorw("failed to load timezone", zap.Error(err)) + continue + } + opts = append(opts, cronlib.WithLocation(location)) + } + cr := cronlib.New(opts...) + cr.AddFunc(c.ByTime.Cron, func() { + resetConditionsCh <- struct{}{} + }) + cr.Start() + } + } + logger.Infof("starting eventbus connection daemon for client %s...", clientID) ticker := time.NewTicker(5 * time.Second) defer ticker.Stop() for { select { - case <-cctx.Done(): + case <-ctx.Done(): logger.Infof("exiting eventbus connection daemon for client %s...", clientID) wg1.Wait() return @@ -240,8 +269,8 @@ func (sensorCtx *SensorContext) listenEvents(ctx context.Context) error { if conn == nil || conn.IsClosed() { logger.Info("NATS connection lost, reconnecting...") // Regenerate the client ID to avoid the issue that NAT server still thinks the client is alive. - _, clientID := sensorCtx.getGroupAndClientID(depExpression) - ebDriver, err := eventbus.GetDriver(cctx, *sensorCtx.eventBusConfig, sensorCtx.eventBusSubject, clientID) + _, clientID := sensorCtx.getGroupAndClientID(trigger.Template.Name, depExpression) + ebDriver, err := eventbus.GetDriver(logging.WithLogger(ctx, logger.With(logging.LabelTriggerName, trigger.Template.Name)), *sensorCtx.eventBusConfig, sensorCtx.eventBusSubject, clientID) if err != nil { logger.Errorw("failed to get eventbus driver during reconnection", zap.Error(err)) continue @@ -266,7 +295,7 @@ func (sensorCtx *SensorContext) listenEvents(ctx context.Context) error { } } } - }(k, v) + }(t) } logger.Info("Sensor started.") <-ctx.Done() @@ -276,7 +305,7 @@ func (sensorCtx *SensorContext) listenEvents(ctx context.Context) error { return nil } -func (sensorCtx *SensorContext) triggerActions(ctx context.Context, sensor *v1alpha1.Sensor, events map[string]cloudevents.Event, triggers []v1alpha1.Trigger) error { +func (sensorCtx *SensorContext) triggerActions(ctx context.Context, sensor *v1alpha1.Sensor, events map[string]cloudevents.Event, trigger v1alpha1.Trigger) error { eventsMapping := make(map[string]*v1alpha1.Event) depNames := make([]string, 0, len(events)) eventIDs := make([]string, 0, len(events)) @@ -285,9 +314,7 @@ func (sensorCtx *SensorContext) triggerActions(ctx context.Context, sensor *v1al depNames = append(depNames, k) eventIDs = append(eventIDs, v.ID()) } - for _, trigger := range triggers { - go sensorCtx.triggerWithRateLimit(ctx, sensor, trigger, eventsMapping, depNames, eventIDs) - } + go sensorCtx.triggerWithRateLimit(ctx, sensor, trigger, eventsMapping, depNames, eventIDs) return nil } From 688c843ec8df9a872273f630c429acce4e5d43f2 Mon Sep 17 00:00:00 2001 From: Derek Wang Date: Fri, 22 Oct 2021 16:03:42 -0700 Subject: [PATCH 2/7] ok Signed-off-by: Derek Wang --- eventbus/driver/nats.go | 7 +++---- sensors/listener.go | 20 +------------------- 2 files changed, 4 insertions(+), 23 deletions(-) diff --git a/eventbus/driver/nats.go b/eventbus/driver/nats.go index d8b7ba5fb3..91a6141625 100644 --- a/eventbus/driver/nats.go +++ b/eventbus/driver/nats.go @@ -304,6 +304,7 @@ func (n *natsStreaming) processEventSourceMsg(m *stan.Msg, msgHolder *eventSourc return } if result != true { + // Log current meet dependency information meetDeps := []string{} meetMsgIds := []string{} for k, v := range msgHolder.msgs { @@ -338,7 +339,8 @@ type eventSourceMessage struct { // eventSourceMessageHolder is a struct used to hold the message information of subscribed dependencies type eventSourceMessageHolder struct { - // time that resets everything, usually the time all conditions meet + // time that resets conditions, usually the time all conditions meet, + // or the time getting an external signal to reset. lastResetTime int64 // timestamp of last msg latestGoodMsgTimestamp int64 @@ -376,9 +378,6 @@ func newEventSourceMessageHolder(dependencyExpr string, dependencies []Dependenc parameters[dep] = false } - if err != nil { - return nil, errors.Errorf("failed to get next conditions reset time: %w", err) - } return &eventSourceMessageHolder{ lastResetTime: int64(0), latestGoodMsgTimestamp: int64(0), diff --git a/sensors/listener.go b/sensors/listener.go index ee1bec9082..1d480a587a 100644 --- a/sensors/listener.go +++ b/sensors/listener.go @@ -113,29 +113,11 @@ func (sensorCtx *SensorContext) listenEvents(ctx context.Context) error { depMapping[d.Name] = d } - // Get a mapping of dependencyExpression: []triggers - triggerMapping := make(map[string][]v1alpha1.Trigger) - for _, trigger := range sensor.Spec.Triggers { - depExpr, err := sensorCtx.getDependencyExpression(ctx, trigger) - if err != nil { - logger.Errorw("failed to get dependency expression", zap.Error(err)) - return err - } - triggers, ok := triggerMapping[depExpr] - if !ok { - triggers = []v1alpha1.Trigger{} - } - triggers = append(triggers, trigger) - triggerMapping[depExpr] = triggers - - // Init rate limiter for the trigger - initRateLimiter(trigger) - } - ctx, cancel := context.WithCancel(ctx) defer cancel() wg := &sync.WaitGroup{} for _, t := range sensor.Spec.Triggers { + initRateLimiter(t) wg.Add(1) go func(trigger v1alpha1.Trigger) { defer wg.Done() From 0425e006cedc33b726214cb14a1be356e377d87c Mon Sep 17 00:00:00 2001 From: Derek Wang Date: Fri, 22 Oct 2021 16:48:29 -0700 Subject: [PATCH 3/7] validate Signed-off-by: Derek Wang --- controllers/sensor/validate.go | 20 ++++++++++++++++++-- sensors/listener.go | 6 +++++- sensors/triggers/triggers_test.go | 3 ++- 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/controllers/sensor/validate.go b/controllers/sensor/validate.go index c5ceb40785..dcfd5d883d 100644 --- a/controllers/sensor/validate.go +++ b/controllers/sensor/validate.go @@ -21,9 +21,11 @@ import ( "net/http" "time" + "github.com/pkg/errors" + cronlib "github.com/robfig/cron/v3" + "github.com/argoproj/argo-events/common" "github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1" - "github.com/pkg/errors" ) // ValidateSensor accepts a sensor and performs validation against it @@ -38,7 +40,7 @@ func ValidateSensor(s *v1alpha1.Sensor) error { s.Status.MarkDependenciesProvided() err := validateTriggers(s.Spec.Triggers) if err != nil { - s.Status.MarkTriggersNotProvided("InvalidTriggers", "Invalid triggers.") + s.Status.MarkTriggersNotProvided("InvalidTriggers", err.Error()) return err } s.Status.MarkTriggersProvided() @@ -79,6 +81,20 @@ func validateTriggerTemplate(template *v1alpha1.TriggerTemplate) error { if template.Name == "" { return errors.Errorf("trigger must define a name") } + if len(template.ConditionsReset) > 0 { + for _, c := range template.ConditionsReset { + if c.ByTime == nil { + return errors.Errorf("invalid conditionsReset") + } + parser := cronlib.NewParser(cronlib.Minute | cronlib.Hour | cronlib.Dom | cronlib.Month | cronlib.Dow) + if _, err := parser.Parse(c.ByTime.Cron); err != nil { + return errors.Errorf("invalid cron expression %q", c.ByTime.Cron) + } + if _, err := time.LoadLocation(c.ByTime.Timezone); err != nil { + return errors.Errorf("invalid timezone %q", c.ByTime.Timezone) + } + } + } if template.K8s != nil { if err := validateK8STrigger(template.K8s); err != nil { return errors.Wrapf(err, "trigger for template %s is invalid", template.Name) diff --git a/sensors/listener.go b/sensors/listener.go index 1d480a587a..daa2283952 100644 --- a/sensors/listener.go +++ b/sensors/listener.go @@ -231,9 +231,13 @@ func (sensorCtx *SensorContext) listenEvents(ctx context.Context) error { opts = append(opts, cronlib.WithLocation(location)) } cr := cronlib.New(opts...) - cr.AddFunc(c.ByTime.Cron, func() { + _, err = cr.AddFunc(c.ByTime.Cron, func() { resetConditionsCh <- struct{}{} }) + if err != nil { + logger.Errorw("failed to add cron schedule", zap.Error(err)) + continue + } cr.Start() } } diff --git a/sensors/triggers/triggers_test.go b/sensors/triggers/triggers_test.go index 04393c97bb..914080f4a1 100644 --- a/sensors/triggers/triggers_test.go +++ b/sensors/triggers/triggers_test.go @@ -17,9 +17,10 @@ limitations under the License. package triggers import ( - "k8s.io/apimachinery/pkg/runtime/schema" "testing" + "k8s.io/apimachinery/pkg/runtime/schema" + "github.com/stretchr/testify/assert" ) From a82a475db9a684a8ebae579e23806d2cc64e3092 Mon Sep 17 00:00:00 2001 From: Derek Wang Date: Mon, 25 Oct 2021 14:45:02 -0700 Subject: [PATCH 4/7] docs and examples Signed-off-by: Derek Wang --- controllers/sensor/validate_test.go | 51 +++++++++++++++++++ docs/sensors/trigger-conditions.md | 23 ++++++++- examples/sensors/dependencies-conditions.yaml | 5 ++ 3 files changed, 77 insertions(+), 2 deletions(-) diff --git a/controllers/sensor/validate_test.go b/controllers/sensor/validate_test.go index 6df59ce318..3c5baa1ba7 100644 --- a/controllers/sensor/validate_test.go +++ b/controllers/sensor/validate_test.go @@ -126,4 +126,55 @@ func TestValidTriggers(t *testing.T) { assert.NotNil(t, err) assert.Equal(t, true, strings.Contains(err.Error(), "trigger template can't be nil")) }) + + t.Run("invalid conditions reset - cron", func(t *testing.T) { + triggers := []v1alpha1.Trigger{ + { + Template: &v1alpha1.TriggerTemplate{ + Name: "fake-trigger", + Conditions: "A && B", + ConditionsReset: []v1alpha1.ConditionsResetCriteria{ + { + ByTime: &v1alpha1.ConditionsResetByTime{ + Cron: "a * * * *", + }, + }, + }, + K8s: &v1alpha1.StandardK8STrigger{ + Operation: "create", + Source: &v1alpha1.ArtifactLocation{}, + }, + }, + }, + } + err := validateTriggers(triggers) + assert.NotNil(t, err) + assert.Equal(t, true, strings.Contains(err.Error(), "invalid cron expression")) + }) + + t.Run("invalid conditions reset - timezone", func(t *testing.T) { + triggers := []v1alpha1.Trigger{ + { + Template: &v1alpha1.TriggerTemplate{ + Name: "fake-trigger", + Conditions: "A && B", + ConditionsReset: []v1alpha1.ConditionsResetCriteria{ + { + ByTime: &v1alpha1.ConditionsResetByTime{ + Cron: "* * * * *", + Timezone: "fake", + }, + }, + }, + K8s: &v1alpha1.StandardK8STrigger{ + Operation: "create", + Source: &v1alpha1.ArtifactLocation{}, + }, + }, + }, + } + err := validateTriggers(triggers) + assert.NotNil(t, err) + assert.Equal(t, true, strings.Contains(err.Error(), "invalid timezone")) + }) } diff --git a/docs/sensors/trigger-conditions.md b/docs/sensors/trigger-conditions.md index d51dcac063..c3c645c42c 100644 --- a/docs/sensors/trigger-conditions.md +++ b/docs/sensors/trigger-conditions.md @@ -2,8 +2,7 @@ > v1.0 and after -`Conditions` is a new feature to replace `Circuit` and `Switch`. With -`conditions`, triggers can be executed based on different dependency conditions. +Triggers can be executed based on different dependency `conditions`. An example with `conditions`: @@ -55,3 +54,23 @@ won't be executed until the expression resolves to true. The operators in If `conditions` is missing, the default conditions to execute the trigger is `&&` logic of all the defined dependencies. + +## Conditions Reset + +When multiple dependencies are defined for a trigger, the trigger won't be executed until the condition expression is resolved to `true`. Sometimes you might want to reset all the stakeholders of the conditions, `conditions reset` is the way to do it. + +For example, your trigger has a condtion as `A && B`, both `A` and `B` are expected to have an event everyday. One day for some reason, `A` gets an event but `B` does't, then it ends up with today's `A` and tomorrow's `B` triggering an action, which might not be something you want. To avoid that, you can reset the conditons as following: + +```yaml + triggers: + - template: + conditions: "dep01 && dep02" + conditionsReset: + - byTime: + # Reset conditions as 23:59 + cron: "59 23 * * *" + # Optional, defaults to UTC + # More info for timezone: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones + timezone: America/Los_Angeles + name: trigger01 +``` diff --git a/examples/sensors/dependencies-conditions.yaml b/examples/sensors/dependencies-conditions.yaml index 265a4981d5..3e55d3f0e1 100644 --- a/examples/sensors/dependencies-conditions.yaml +++ b/examples/sensors/dependencies-conditions.yaml @@ -18,6 +18,11 @@ spec: - template: # Boolean expression contains dependency names to determine whether to execute the trigger or not conditions: "test-dep" + conditionsReset: + - byTime: + # Reset conditions at 23:59 everyday + cron: "59 23 * * *" + timezone: "America/Los_Angeles" name: webhook-workflow-trigger k8s: operation: create From 87a1e02c5387f9d001f8f4ffbb457c84b24be95d Mon Sep 17 00:00:00 2001 From: Derek Wang Date: Mon, 25 Oct 2021 16:07:30 -0700 Subject: [PATCH 5/7] . Signed-off-by: Derek Wang --- controllers/sensor/validate_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/sensor/validate_test.go b/controllers/sensor/validate_test.go index 3c5baa1ba7..dd2eeb69c6 100644 --- a/controllers/sensor/validate_test.go +++ b/controllers/sensor/validate_test.go @@ -131,7 +131,7 @@ func TestValidTriggers(t *testing.T) { triggers := []v1alpha1.Trigger{ { Template: &v1alpha1.TriggerTemplate{ - Name: "fake-trigger", + Name: "fake-trigger", Conditions: "A && B", ConditionsReset: []v1alpha1.ConditionsResetCriteria{ { @@ -156,12 +156,12 @@ func TestValidTriggers(t *testing.T) { triggers := []v1alpha1.Trigger{ { Template: &v1alpha1.TriggerTemplate{ - Name: "fake-trigger", + Name: "fake-trigger", Conditions: "A && B", ConditionsReset: []v1alpha1.ConditionsResetCriteria{ { ByTime: &v1alpha1.ConditionsResetByTime{ - Cron: "* * * * *", + Cron: "* * * * *", Timezone: "fake", }, }, From 5ad9026d7a210c405f8b68a8342e726fead2ca84 Mon Sep 17 00:00:00 2001 From: Derek Wang Date: Mon, 25 Oct 2021 16:18:56 -0700 Subject: [PATCH 6/7] format Signed-off-by: Derek Wang --- docs/sensors/trigger-conditions.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/sensors/trigger-conditions.md b/docs/sensors/trigger-conditions.md index c3c645c42c..caa9008b58 100644 --- a/docs/sensors/trigger-conditions.md +++ b/docs/sensors/trigger-conditions.md @@ -62,6 +62,7 @@ When multiple dependencies are defined for a trigger, the trigger won't be execu For example, your trigger has a condtion as `A && B`, both `A` and `B` are expected to have an event everyday. One day for some reason, `A` gets an event but `B` does't, then it ends up with today's `A` and tomorrow's `B` triggering an action, which might not be something you want. To avoid that, you can reset the conditons as following: ```yaml +spec: triggers: - template: conditions: "dep01 && dep02" From 660082e7b7bbda5a47ffc4b9673472c73a5f4976 Mon Sep 17 00:00:00 2001 From: Derek Wang Date: Mon, 25 Oct 2021 16:34:06 -0700 Subject: [PATCH 7/7] update deps Signed-off-by: Derek Wang --- go.mod | 6 +++--- go.sum | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/go.mod b/go.mod index b55c24874b..3b4e06b2e2 100644 --- a/go.mod +++ b/go.mod @@ -58,7 +58,7 @@ require ( github.com/streadway/amqp v1.0.0 github.com/stretchr/testify v1.7.0 github.com/stripe/stripe-go v70.15.0+incompatible - github.com/tidwall/gjson v1.7.5 + github.com/tidwall/gjson v1.10.2 github.com/tidwall/sjson v1.1.1 github.com/xanzy/go-gitlab v0.50.2 go.uber.org/ratelimit v0.2.0 @@ -198,8 +198,8 @@ require ( github.com/spf13/jwalterweatherman v1.1.0 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/subosito/gotenv v1.2.0 // indirect - github.com/tidwall/match v1.0.3 // indirect - github.com/tidwall/pretty v1.1.0 // indirect + github.com/tidwall/match v1.1.1 // indirect + github.com/tidwall/pretty v1.2.0 // indirect github.com/toqueteos/webbrowser v1.2.0 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect github.com/valyala/fasthttp v1.9.0 // indirect diff --git a/go.sum b/go.sum index acc142ac8d..09db218b85 100644 --- a/go.sum +++ b/go.sum @@ -924,15 +924,15 @@ github.com/stripe/stripe-go v70.15.0+incompatible/go.mod h1:A1dQZmO/QypXmsL0T8ax github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s= github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= github.com/tidwall/gjson v1.6.0/go.mod h1:P256ACg0Mn+j1RXIDXoss50DeIABTYK1PULOJHhxOls= -github.com/tidwall/gjson v1.7.5 h1:zmAN/xmX7OtpAkv4Ovfso60r/BiCi5IErCDYGNJu+uc= -github.com/tidwall/gjson v1.7.5/go.mod h1:5/xDoumyyDNerp2U36lyolv46b3uF/9Bu6OfyQ9GImk= +github.com/tidwall/gjson v1.10.2 h1:APbLGOM0rrEkd8WBw9C24nllro4ajFuJu0Sc9hRz8Bo= +github.com/tidwall/gjson v1.10.2/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= github.com/tidwall/match v1.0.1/go.mod h1:LujAq0jyVjBy028G1WhWfIzbpQfMO8bBZ6Tyb0+pL9E= -github.com/tidwall/match v1.0.3 h1:FQUVvBImDutD8wJLN6c5eMzWtjgONK9MwIBCOrUJKeE= -github.com/tidwall/match v1.0.3/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= +github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA= +github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= github.com/tidwall/pretty v1.0.1/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= -github.com/tidwall/pretty v1.1.0 h1:K3hMW5epkdAVwibsQEfR/7Zj0Qgt4DxtNumTq/VloO8= -github.com/tidwall/pretty v1.1.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= +github.com/tidwall/pretty v1.2.0 h1:RWIZEg2iJ8/g6fDDYzMpobmaoGh5OLl4AXtGUGPcqCs= +github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= github.com/tidwall/sjson v1.1.1 h1:7h1vk049Jnd5EH9NyzNiEuwYW4b5qgreBbqRC19AS3U= github.com/tidwall/sjson v1.1.1/go.mod h1:yvVuSnpEQv5cYIrO+AT6kw4QVfd5SDZoGIS7/5+fZFs= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=