-
Notifications
You must be signed in to change notification settings - Fork 748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Different deployment update strategy for different event sources #755
Conversation
var ( | ||
// RecreateStrategyEventSources refers to the list of event source types | ||
// that need to use Recreate strategy for its Deployment | ||
RecreateStrategyEventSources = []EventSourceType{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@VaibhavPage - Could you point me the right types here?
@@ -76,7 +76,7 @@ func main() { | |||
} | |||
// A controller with DefaultControllerRateLimiter | |||
c, err := controller.New(eventsource.ControllerName, mgr, controller.Options{ | |||
Reconciler: eventsource.NewReconciler(mgr.GetClient(), mgr.GetScheme(), namespace, eventSourceImage, log.WithName("reconciler")), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This namespace
is never used, remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
recreate
strategy for some of the eventsources deployment update.a.) Event source with
rollingUpdate
andrecreate
are not allowed in one EventSource object - Otherwise when the EventSource is updated, there will be downtime for thoserollingUpdate
type event sources such aswebhook
.b.) Event name (the map key) needs to be unique in one EventSource object, even different type of event source can not use same name - Because we use EventSourceName and EventName in Sensor as dependency.
c.)
rollingUpdate
types use replicas defined in the spec, defaults to 1;d.)
recreate
ignores replica field in the spec, it always uses1
Resource
type EventSource.HDFS
event source - a bug ofconfigMapSelector
toenvFrom
conversion.Closes #752