@harnessio/react-chaos-manager-client 1.3.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chaos-manager/src/services/hooks/useGetChaosPipelineStepDetailsQuery.d.ts +2 -2
- package/dist/chaos-manager/src/services/hooks/useListFaultQuery.d.ts +1 -0
- package/dist/chaos-manager/src/services/index.d.ts +7 -2
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosExecutionNode.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosexperimentpipelineGetChaosPipelineNodesResponse.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/ChaosexperimentpipelineReferenceEntities.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/ChaosexperimentpipelineReferenceEntities.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaoshubresourcesChaosHubResource.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaoshubresourcesPermissionLevel.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/ExecutionChaosExecutionNode.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ExecutionFaultData.d.ts +8 -4
- package/dist/chaos-manager/src/services/schemas/ExperimentActionRef.d.ts +40 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentActionRef.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentFaultRef.d.ts +27 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentFaultRef.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentProbeActions.d.ts +19 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentProbeActions.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentProbeConditions.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentProbeRef.d.ts +49 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentProbeRef.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ResourceQuantity.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chaos-manager/src/services/schemas/ExecutionKubernetesFaultData.d.ts +0 -10
- package/dist/chaos-manager/src/services/schemas/ExecutionMachineChaosFaultData.d.ts +0 -3
- /package/dist/chaos-manager/src/services/schemas/{ExecutionKubernetesFaultData.js → ChaosexperimentpipelineGetChaosPipelineNodesResponse.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{ExecutionMachineChaosFaultData.js → ExperimentProbeConditions.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ChaosexperimentpipelineGetChaosPipelineNodesResponse } from '../schemas/ChaosexperimentpipelineGetChaosPipelineNodesResponse';
|
|
3
3
|
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
4
|
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
5
|
export interface GetChaosPipelineStepDetailsQueryPathParams {
|
|
@@ -12,7 +12,7 @@ export interface GetChaosPipelineStepDetailsQueryQueryParams {
|
|
|
12
12
|
organizationIdentifier: string;
|
|
13
13
|
projectIdentifier: string;
|
|
14
14
|
}
|
|
15
|
-
export type GetChaosPipelineStepDetailsOkResponse =
|
|
15
|
+
export type GetChaosPipelineStepDetailsOkResponse = ChaosexperimentpipelineGetChaosPipelineNodesResponse;
|
|
16
16
|
export type GetChaosPipelineStepDetailsErrorResponse = ApiRestError;
|
|
17
17
|
export interface GetChaosPipelineStepDetailsProps extends GetChaosPipelineStepDetailsQueryPathParams, Omit<FetcherOptions<GetChaosPipelineStepDetailsQueryQueryParams, unknown>, 'url'> {
|
|
18
18
|
queryParams: GetChaosPipelineStepDetailsQueryQueryParams;
|
|
@@ -323,6 +323,8 @@ export type { ChaosInfrastructureV2InfraType } from './schemas/ChaosInfrastructu
|
|
|
323
323
|
export type { ChaosInfrastructureV2K8sInfraV2SpecIdentifiers } from './schemas/ChaosInfrastructureV2K8sInfraV2SpecIdentifiers';
|
|
324
324
|
export type { ChaosactiontemplateActionsTemplateCount } from './schemas/ChaosactiontemplateActionsTemplateCount';
|
|
325
325
|
export type { ChaosactiontemplateChaosActionTemplate } from './schemas/ChaosactiontemplateChaosActionTemplate';
|
|
326
|
+
export type { ChaosexperimentpipelineGetChaosPipelineNodesResponse } from './schemas/ChaosexperimentpipelineGetChaosPipelineNodesResponse';
|
|
327
|
+
export type { ChaosexperimentpipelineReferenceEntities } from './schemas/ChaosexperimentpipelineReferenceEntities';
|
|
326
328
|
export type { ChaosfaulttemplateActionTemplate } from './schemas/ChaosfaulttemplateActionTemplate';
|
|
327
329
|
export type { ChaosfaulttemplateActionTemplateVariables } from './schemas/ChaosfaulttemplateActionTemplateVariables';
|
|
328
330
|
export type { ChaosfaulttemplateCreateFaultTemplateRequest } from './schemas/ChaosfaulttemplateCreateFaultTemplateRequest';
|
|
@@ -392,18 +394,21 @@ export type { ExecutionFaultData } from './schemas/ExecutionFaultData';
|
|
|
392
394
|
export type { ExecutionHelperPodDetails } from './schemas/ExecutionHelperPodDetails';
|
|
393
395
|
export type { ExecutionHttpProbe } from './schemas/ExecutionHttpProbe';
|
|
394
396
|
export type { ExecutionInfraType } from './schemas/ExecutionInfraType';
|
|
395
|
-
export type { ExecutionKubernetesFaultData } from './schemas/ExecutionKubernetesFaultData';
|
|
396
|
-
export type { ExecutionMachineChaosFaultData } from './schemas/ExecutionMachineChaosFaultData';
|
|
397
397
|
export type { ExecutionProbeData } from './schemas/ExecutionProbeData';
|
|
398
398
|
export type { ExecutionProbeIterations } from './schemas/ExecutionProbeIterations';
|
|
399
399
|
export type { ExecutionPromProbe } from './schemas/ExecutionPromProbe';
|
|
400
|
+
export type { ExperimentActionRef } from './schemas/ExperimentActionRef';
|
|
400
401
|
export type { ExperimentApplication } from './schemas/ExperimentApplication';
|
|
401
402
|
export type { ExperimentChaosInputs } from './schemas/ExperimentChaosInputs';
|
|
402
403
|
export type { ExperimentConfigMap } from './schemas/ExperimentConfigMap';
|
|
403
404
|
export type { ExperimentDefinition } from './schemas/ExperimentDefinition';
|
|
404
405
|
export type { ExperimentExperimentComponents } from './schemas/ExperimentExperimentComponents';
|
|
406
|
+
export type { ExperimentFaultRef } from './schemas/ExperimentFaultRef';
|
|
405
407
|
export type { ExperimentHelperConfig } from './schemas/ExperimentHelperConfig';
|
|
406
408
|
export type { ExperimentHostFile } from './schemas/ExperimentHostFile';
|
|
409
|
+
export type { ExperimentProbeActions } from './schemas/ExperimentProbeActions';
|
|
410
|
+
export type { ExperimentProbeConditions } from './schemas/ExperimentProbeConditions';
|
|
411
|
+
export type { ExperimentProbeRef } from './schemas/ExperimentProbeRef';
|
|
407
412
|
export type { ExperimentProjectedVolumes } from './schemas/ExperimentProjectedVolumes';
|
|
408
413
|
export type { ExperimentSaveChaosExperimentResponse } from './schemas/ExperimentSaveChaosExperimentResponse';
|
|
409
414
|
export type { ExperimentSecret } from './schemas/ExperimentSecret';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ChaosExecutionNodesChaosExecutionNode } from '../schemas/ChaosExecutionNodesChaosExecutionNode';
|
|
2
|
+
import type { ChaosexperimentpipelineReferenceEntities } from '../schemas/ChaosexperimentpipelineReferenceEntities';
|
|
3
|
+
export interface ChaosexperimentpipelineGetChaosPipelineNodesResponse {
|
|
4
|
+
chaosExecutionNode?: ChaosExecutionNodesChaosExecutionNode;
|
|
5
|
+
refEntities?: ChaosexperimentpipelineReferenceEntities;
|
|
6
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ExperimentActionRef } from '../schemas/ExperimentActionRef';
|
|
2
|
+
import type { ExperimentFaultRef } from '../schemas/ExperimentFaultRef';
|
|
3
|
+
import type { ExperimentProbeRef } from '../schemas/ExperimentProbeRef';
|
|
4
|
+
import type { TemplateVariable } from '../schemas/TemplateVariable';
|
|
5
|
+
export interface ChaosexperimentpipelineReferenceEntities {
|
|
6
|
+
actionRef?: ExperimentActionRef;
|
|
7
|
+
faultRef?: ExperimentFaultRef;
|
|
8
|
+
probeRef?: ExperimentProbeRef;
|
|
9
|
+
variables?: TemplateVariable[];
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -64,6 +64,10 @@ export interface ChaoshubresourcesChaosHubResource {
|
|
|
64
64
|
*/
|
|
65
65
|
isDefaultHub?: boolean;
|
|
66
66
|
isRemoved: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* IsTemplatised denotes if template is available for the fault
|
|
69
|
+
*/
|
|
70
|
+
isTemplatised?: boolean;
|
|
67
71
|
/**
|
|
68
72
|
* K8sFault yml in encoded form (k8s-fault.yaml)
|
|
69
73
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type ChaoshubresourcesPermissionLevel = '
|
|
1
|
+
export type ChaoshubresourcesPermissionLevel = 'advanced' | 'basic';
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { ExecutionHelperPodDetails } from '../schemas/ExecutionHelperPodDetails';
|
|
2
|
+
import type { V1alpha1TargetDetails } from '../schemas/V1alpha1TargetDetails';
|
|
3
|
+
import type { V1alpha1Targets } from '../schemas/V1alpha1Targets';
|
|
3
4
|
export interface ExecutionFaultData {
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
helperPodDetails?: ExecutionHelperPodDetails[];
|
|
6
|
+
name?: string;
|
|
7
|
+
namespace?: string;
|
|
8
|
+
targetChaosStatus?: V1alpha1TargetDetails[];
|
|
9
|
+
targets?: V1alpha1Targets[];
|
|
6
10
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { V1EnvVar } from '../schemas/V1EnvVar';
|
|
2
|
+
import type { TemplateVariableMinimum } from '../schemas/TemplateVariableMinimum';
|
|
3
|
+
export interface ExperimentActionRef {
|
|
4
|
+
/**
|
|
5
|
+
* Args of the action
|
|
6
|
+
*/
|
|
7
|
+
args?: string[];
|
|
8
|
+
/**
|
|
9
|
+
* ContinueOnCompletion to continue on completion
|
|
10
|
+
*/
|
|
11
|
+
continueOnCompletion?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* ENV of the action
|
|
14
|
+
*/
|
|
15
|
+
env?: V1EnvVar[];
|
|
16
|
+
/**
|
|
17
|
+
* HubRef of the fault reference
|
|
18
|
+
*/
|
|
19
|
+
hubRef?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Identity of the action reference
|
|
22
|
+
*/
|
|
23
|
+
identity?: string;
|
|
24
|
+
/**
|
|
25
|
+
* InfraID contains the infrastructure id
|
|
26
|
+
*/
|
|
27
|
+
infraId?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Name of the action reference
|
|
30
|
+
*/
|
|
31
|
+
name?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Revision of the fault reference
|
|
34
|
+
*/
|
|
35
|
+
revision?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Variables to store the variables
|
|
38
|
+
*/
|
|
39
|
+
values?: TemplateVariableMinimum[];
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { TemplateVariableMinimum } from '../schemas/TemplateVariableMinimum';
|
|
2
|
+
export interface ExperimentFaultRef {
|
|
3
|
+
/**
|
|
4
|
+
* HubRef of the fault reference
|
|
5
|
+
*/
|
|
6
|
+
hubRef?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Identity of the fault reference
|
|
9
|
+
*/
|
|
10
|
+
identity?: string;
|
|
11
|
+
/**
|
|
12
|
+
* InfraID contains the infrastructure id
|
|
13
|
+
*/
|
|
14
|
+
infraId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Name of the fault reference
|
|
17
|
+
*/
|
|
18
|
+
name?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Revision of the fault reference
|
|
21
|
+
*/
|
|
22
|
+
revision?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Variables to store the variables
|
|
25
|
+
*/
|
|
26
|
+
values?: TemplateVariableMinimum[];
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { V1EnvVar } from '../schemas/V1EnvVar';
|
|
2
|
+
export interface ExperimentProbeActions {
|
|
3
|
+
/**
|
|
4
|
+
* Args of the action
|
|
5
|
+
*/
|
|
6
|
+
args?: string[];
|
|
7
|
+
/**
|
|
8
|
+
* Condition to check the condition
|
|
9
|
+
*/
|
|
10
|
+
condition?: string;
|
|
11
|
+
/**
|
|
12
|
+
* ENV of the action
|
|
13
|
+
*/
|
|
14
|
+
env?: V1EnvVar[];
|
|
15
|
+
/**
|
|
16
|
+
* Identity of the action
|
|
17
|
+
*/
|
|
18
|
+
identity?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { ExperimentProbeActions } from '../schemas/ExperimentProbeActions';
|
|
2
|
+
import type { ExperimentProbeConditions } from '../schemas/ExperimentProbeConditions';
|
|
3
|
+
import type { TemplateVariableMinimum } from '../schemas/TemplateVariableMinimum';
|
|
4
|
+
export interface ExperimentProbeRef {
|
|
5
|
+
/**
|
|
6
|
+
* Actions to be performed
|
|
7
|
+
*/
|
|
8
|
+
actions?: ExperimentProbeActions[];
|
|
9
|
+
/**
|
|
10
|
+
* Conditions to be checked
|
|
11
|
+
*/
|
|
12
|
+
conditions?: ExperimentProbeConditions[];
|
|
13
|
+
/**
|
|
14
|
+
* Duration of the probe
|
|
15
|
+
*/
|
|
16
|
+
duration?: string;
|
|
17
|
+
/**
|
|
18
|
+
* EnableDataCollection to enable data collection
|
|
19
|
+
*/
|
|
20
|
+
enableDataCollection?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* HubRef of the fault reference
|
|
23
|
+
*/
|
|
24
|
+
hubRef?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Identity of the probe
|
|
27
|
+
*/
|
|
28
|
+
identity?: string;
|
|
29
|
+
/**
|
|
30
|
+
* InfraID contains the infrastructure id
|
|
31
|
+
*/
|
|
32
|
+
infraId?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Name of the probe
|
|
35
|
+
*/
|
|
36
|
+
name?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Revision of the fault reference
|
|
39
|
+
*/
|
|
40
|
+
revision?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Variables to store the variables
|
|
43
|
+
*/
|
|
44
|
+
values?: TemplateVariableMinimum[];
|
|
45
|
+
/**
|
|
46
|
+
* Weightage of the probe
|
|
47
|
+
*/
|
|
48
|
+
weightage?: number;
|
|
49
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ExecutionHelperPodDetails } from '../schemas/ExecutionHelperPodDetails';
|
|
2
|
-
import type { V1alpha1TargetDetails } from '../schemas/V1alpha1TargetDetails';
|
|
3
|
-
import type { V1alpha1Targets } from '../schemas/V1alpha1Targets';
|
|
4
|
-
export interface ExecutionKubernetesFaultData {
|
|
5
|
-
helperPodDetails?: ExecutionHelperPodDetails[];
|
|
6
|
-
name?: string;
|
|
7
|
-
namespace?: string;
|
|
8
|
-
targetChaosStatus?: V1alpha1TargetDetails[];
|
|
9
|
-
targets?: V1alpha1Targets[];
|
|
10
|
-
}
|
|
File without changes
|
|
File without changes
|