Skip to content

intellum/spinnaker-sidekiq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

810a43f · Nov 18, 2024

History

16 Commits
Oct 25, 2024
Oct 25, 2024
Oct 25, 2024
Oct 25, 2024
Oct 25, 2024
Nov 7, 2024
Apr 28, 2020
Oct 25, 2024
Oct 25, 2024
Oct 25, 2024
Mar 19, 2020
Oct 25, 2024
Oct 25, 2024
Mar 19, 2020
Mar 19, 2020
Oct 25, 2024
Oct 25, 2024
Oct 25, 2024

Repository files navigation

Spinnaker::Sidekiq

API to implement a webhook stage for spinnaker to stop sidekiq workers gracefully.

Installation

Add this line to your application's Gemfile:

gem 'spinnaker-sidekiq'

And then execute:

$ bundle

Or install it yourself as:

$ gem install spinnaker-sidekiq

Usage

Mount the engine in your rails application.

mount Spinnaker::Sidekiq::Engine, at: "/spinnaker/sidekiq"

API token can be specified by environment variable SPINNAKER_SIDEKIQ_API_TOKEN or doing:

Spinnaker::Sidekiq.api_token = 'SECRET_VALUE'

In spinnaker, create a webhook stage with the following configuration:

  • Webhook URL: https://example.com/spinnaker/sidekiq/quiet_all
  • Method: POST
  • Payload {}
  • Custom Headers: Authorization value Token SPINNAKER_API_TOKEN
  • Status JsonPath: $.status
  • Progress location: $.progress
  • SUCCESS status mapping: quiet

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.