Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
Constructor
The ServiceDisruptor()
constructor creates a new instance of a ServiceDisruptor class.
Parameter | Type | Description |
---|---|---|
service | string | name of the service |
namespace | string | namespace on which the service is defined |
options (optional) | object | options for controlling the behavior of the disruptor |
Options
The following options control the creation and behavior of the ServiceDisruptor
:
Attribute | Type | Description |
---|---|---|
injectTimeout | string | maximum time for waiting the disruptor to be ready in the target pods (default 30s) |
Example
const disruptor = new ServiceDisruptor('my-service', 'my-namespace');