Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run One Time Tasks (Jobs) #32

Closed
luxflux opened this issue Jul 10, 2017 · 3 comments
Closed

Run One Time Tasks (Jobs) #32

luxflux opened this issue Jul 10, 2017 · 3 comments

Comments

@luxflux
Copy link

luxflux commented Jul 10, 2017

During our deployment, we have to run database migrations. How would you accomplish this with keel?
At the moment, we update the images in the deployments and run a Job which migrates the database.

We could accomplish this by locking the database and run the migration in an init container, but I'd rather to this explicit than implicit.

@rusenask
Copy link
Collaborator

Hi, this will fit into plugins framework that I want to introduce into Keel. The idea is to have an option to register different plugins, examples of these plugins:

  • run a custom code snippet downloaded from github/anywhere (can be limited to javascript or binary executables) or you could run a Keel derived from python, ruby images to have interpreters.
  • run a k8s job
  • call AWS lambda or Google Function endpoint

These plugins would take a json representation of the Deployment, could modify it, block update, cancel update or perform certain actions and then just let deployment update continue,

@luxflux
Copy link
Author

luxflux commented Jul 10, 2017

Yep, this would make our workflow possible.

@rusenask
Copy link
Collaborator

I think there are now a lot better options like https://github.com/Azure/brigade to react to the events.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants