Breaking Change:
- Drop support for Ruby 2.7.
- Drop support for
kubeclient3.x.
Changes:
- Add support for Ruby 3.0.
- Requires
kubeclient>= 4.9.3.
Breaking Change:
-
The
environmentsconfiguration as been replaced by a more flexibleenabledproperty.Here's how to migrate from the
environmentsproperty to theenabledproperty:Before:
# config/initializers/resque-kubernetes.rb Resque::Kubernetes.configuration do |config| config.environments << "staging" config.max_workers = 10 end
After:
# config/initializers/resque-kubernetes.rb Resque::Kubernetes.configuration do |config| config.enabled = Rails.env.production? || Rails.env.staging? config.max_workers = 10 end
⚠️ By default, this gem is not enabled.
Changes:
- Allow resque 2.0 but retain support for 1.26 or later.
- Retry when a timeout occurs connecting to the Kubernetes API server
- Clean up finished pods that have successfully completed
- Fix design to set
INTERVAL=0for the worker in the Kubernetes job manifest, which tellsresqueto work until there are no more jobs, rather than monkey-patchingResque::Workerto look forTERM_ON_EMPTYenvironment variable.
Breaking Change:
- Requires
kubeclient3.1.2 or 4.x
Changes:
- Add
kubeclientconfiguration option for connecting to any Kubernetes server - Use kubernetes namespace provided by cluster or
kubectlconfiguration when available - Add Appraisal for testing with kubeclient 3.1.2 and 4.x
kubeclientmay not be later than 3.0.0 due to change in signature ofKubeclient::Config::Context#initializeinkubeclient3.1.0
- Update to not pollute the job class with our methods
- Fix bug where enqueueing jobs would keep adding workers if worker count
was greater than
max_workers
- Update to support kubeclient 2.2 or 3.x
- Add support for ActiveJob when configured to be backed by Resque
- When authorizing with
~/.kube/configuse Google Default Application Credentials rather than require a forked version ofkubeclient
- Maximum workers can no be configured per job type
- Fix a crash when cleaning up a job that was removed by another process
- No longer clean up pods because cleaning up finished jobs takes care of that
- Apply rubocop, and bundler-audit rules
- Syntax error fix
- Syntax error fix
- Fix for running in GKE cluster and production Rails environment
- Initial release