@harnessio/react-chaos-manager-client 1.9.0 → 1.11.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/useListActionsQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListMachineChaosInfraQuery.d.ts +4 -1
- package/dist/chaos-manager/src/services/hooks/useListMachineChaosInfraQuery.js +2 -2
- package/dist/chaos-manager/src/services/hooks/useListProbesQuery.d.ts +3 -3
- package/dist/chaos-manager/src/services/index.d.ts +9 -2
- package/dist/chaos-manager/src/services/schemas/ActionsActionResponse.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ActionsInfrastructureType.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/ChaosExperimentRunAction.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExperimentRunAction.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExperimentWorkflowRevision.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentActionRef.d.ts +2 -2
- package/dist/chaos-manager/src/services/schemas/ExperimentChaosInputs.d.ts +2 -2
- package/dist/chaos-manager/src/services/schemas/ExperimentFaultRef.d.ts +0 -4
- package/dist/chaos-manager/src/services/schemas/ExperimentHelperConfig.d.ts +2 -2
- package/dist/chaos-manager/src/services/schemas/ExperimentProbeActions.d.ts +2 -2
- package/dist/chaos-manager/src/services/schemas/ExperimentSidecar.d.ts +2 -2
- package/dist/chaos-manager/src/services/schemas/FaulttemplateChaosKubernetesSpec.d.ts +2 -2
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbActionsAction.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeAppdMetrics.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeEnv.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeEnv.js +4 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkCommonProbeV1EnvVar.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkCommonProbeV1EnvVar.js +4 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeEnv.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeEnv.js +4 -0
- package/dist/chaos-manager/src/services/schemas/InfraInfraFilterInput.d.ts +22 -0
- package/dist/chaos-manager/src/services/schemas/InfraInfraFilterInput.js +4 -0
- package/dist/chaos-manager/src/services/schemas/InfraListInfraRequest.d.ts +34 -0
- package/dist/chaos-manager/src/services/schemas/InfraPagination.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/InfraPagination.js +4 -0
- package/dist/chaos-manager/src/services/schemas/InfraRegisterInfraRequest.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/InfraV2KubernetesInfrastructureV2Details.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2UpdateKubernetesInfrastructureV2Request.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/{V1EnvVar.d.ts → K8sIoApiCoreV1EnvVar.d.ts} +1 -1
- package/dist/chaos-manager/src/services/schemas/K8sIoApiCoreV1EnvVar.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ProbeCmdProbeTemplate.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/ProbeKubernetesCmdProbe.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/TypesExperimentV2.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/V1CmdProbeInputs.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/V1SourceDetails.d.ts +2 -2
- package/package.json +1 -1
- /package/dist/chaos-manager/src/services/schemas/{V1EnvVar.js → InfraListInfraRequest.js} +0 -0
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { InfraListInfraResponse } from '../schemas/InfraListInfraResponse';
|
|
3
3
|
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import type { InfraListInfraRequest } from '../schemas/InfraListInfraRequest';
|
|
4
5
|
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
6
|
export interface ListMachineChaosInfraQueryQueryParams {
|
|
6
7
|
accountIdentifier: string;
|
|
7
8
|
organizationIdentifier: string;
|
|
8
9
|
projectIdentifier: string;
|
|
9
10
|
}
|
|
11
|
+
export type ListMachineChaosInfraRequestBody = InfraListInfraRequest;
|
|
10
12
|
export type ListMachineChaosInfraOkResponse = InfraListInfraResponse;
|
|
11
13
|
export type ListMachineChaosInfraErrorResponse = ApiRestError;
|
|
12
|
-
export interface ListMachineChaosInfraProps extends Omit<FetcherOptions<ListMachineChaosInfraQueryQueryParams,
|
|
14
|
+
export interface ListMachineChaosInfraProps extends Omit<FetcherOptions<ListMachineChaosInfraQueryQueryParams, ListMachineChaosInfraRequestBody>, 'url'> {
|
|
13
15
|
queryParams: ListMachineChaosInfraQueryQueryParams;
|
|
16
|
+
body: ListMachineChaosInfraRequestBody;
|
|
14
17
|
}
|
|
15
18
|
export interface ListMachineChaosInfraResponseContainer {
|
|
16
19
|
body: ListMachineChaosInfraOkResponse;
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
6
|
export function listMachineChaosInfra(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/rest/machine/infras`, method: '
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/machine/infras`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* List machine chaos infras
|
|
11
11
|
*/
|
|
12
12
|
export function useListMachineChaosInfraQuery(props, options) {
|
|
13
|
-
return useQuery(['listMachineChaosInfra', props.queryParams], ({ signal }) => listMachineChaosInfra(Object.assign(Object.assign({}, props), { signal })), options);
|
|
13
|
+
return useQuery(['listMachineChaosInfra', props.queryParams, props.body], ({ signal }) => listMachineChaosInfra(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
|
@@ -6,12 +6,12 @@ export interface ListProbesQueryQueryParams {
|
|
|
6
6
|
accountIdentifier: string;
|
|
7
7
|
organizationIdentifier: string;
|
|
8
8
|
projectIdentifier: string;
|
|
9
|
-
|
|
9
|
+
search?: string;
|
|
10
10
|
tags?: string;
|
|
11
11
|
startDate?: string;
|
|
12
12
|
endDate?: string;
|
|
13
13
|
probeIDs?: string;
|
|
14
|
-
|
|
14
|
+
infraType?: string;
|
|
15
15
|
/**
|
|
16
16
|
* @default 1
|
|
17
17
|
*/
|
|
@@ -22,7 +22,7 @@ export interface ListProbesQueryQueryParams {
|
|
|
22
22
|
limit?: number;
|
|
23
23
|
sortField?: 'ENABLED' | 'NAME' | 'TIME';
|
|
24
24
|
sortAscending?: boolean;
|
|
25
|
-
|
|
25
|
+
entityType?: string;
|
|
26
26
|
}
|
|
27
27
|
export type ListProbesOkResponse = TypesListProbeResponse;
|
|
28
28
|
export type ListProbesErrorResponse = ApiRestError;
|
|
@@ -190,7 +190,7 @@ export type { ListInputSetErrorResponse, ListInputSetOkResponse, ListInputSetPro
|
|
|
190
190
|
export { listInputSet, useListInputSetQuery } from './hooks/useListInputSetQuery';
|
|
191
191
|
export type { ListK8sInfrasV2ErrorResponse, ListK8sInfrasV2MutationProps, ListK8sInfrasV2MutationQueryParams, ListK8sInfrasV2OkResponse, ListK8sInfrasV2Props, ListK8sInfrasV2RequestBody, } from './hooks/useListK8sInfrasV2Mutation';
|
|
192
192
|
export { listK8sInfrasV2, useListK8sInfrasV2Mutation } from './hooks/useListK8sInfrasV2Mutation';
|
|
193
|
-
export type { ListMachineChaosInfraErrorResponse, ListMachineChaosInfraOkResponse, ListMachineChaosInfraProps, ListMachineChaosInfraQueryQueryParams, } from './hooks/useListMachineChaosInfraQuery';
|
|
193
|
+
export type { ListMachineChaosInfraErrorResponse, ListMachineChaosInfraOkResponse, ListMachineChaosInfraProps, ListMachineChaosInfraQueryQueryParams, ListMachineChaosInfraRequestBody, } from './hooks/useListMachineChaosInfraQuery';
|
|
194
194
|
export { listMachineChaosInfra, useListMachineChaosInfraQuery, } from './hooks/useListMachineChaosInfraQuery';
|
|
195
195
|
export type { ListProbeTemplateErrorResponse, ListProbeTemplateOkResponse, ListProbeTemplateProps, ListProbeTemplateQueryQueryParams, } from './hooks/useListProbeTemplateQuery';
|
|
196
196
|
export { listProbeTemplate, useListProbeTemplateQuery } from './hooks/useListProbeTemplateQuery';
|
|
@@ -313,6 +313,7 @@ export type { ChaosExperimentChaosExperimentType } from './schemas/ChaosExperime
|
|
|
313
313
|
export type { ChaosExperimentExperimentRunDetail } from './schemas/ChaosExperimentExperimentRunDetail';
|
|
314
314
|
export type { ChaosExperimentFaultEventMetadata } from './schemas/ChaosExperimentFaultEventMetadata';
|
|
315
315
|
export type { ChaosExperimentRecommendation } from './schemas/ChaosExperimentRecommendation';
|
|
316
|
+
export type { ChaosExperimentRunAction } from './schemas/ChaosExperimentRunAction';
|
|
316
317
|
export type { ChaosExperimentRunAnnotation } from './schemas/ChaosExperimentRunAnnotation';
|
|
317
318
|
export type { ChaosExperimentRunChaosExperimentRun } from './schemas/ChaosExperimentRunChaosExperimentRun';
|
|
318
319
|
export type { ChaosExperimentRunConditionDetails } from './schemas/ChaosExperimentRunConditionDetails';
|
|
@@ -462,6 +463,7 @@ export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosprobete
|
|
|
462
463
|
export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeAppDynamicsProbeInputs } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeAppDynamicsProbeInputs';
|
|
463
464
|
export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeAppdMetrics } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeAppdMetrics';
|
|
464
465
|
export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeDatadogSyntheticsTestType } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeDatadogSyntheticsTestType';
|
|
466
|
+
export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeEnv } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeEnv';
|
|
465
467
|
export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeGet } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeGet';
|
|
466
468
|
export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeHeaders } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeHeaders';
|
|
467
469
|
export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeIdentifier } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeIdentifier';
|
|
@@ -475,10 +477,12 @@ export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommendati
|
|
|
475
477
|
export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommendationRecommendationTargetType } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommendationRecommendationTargetType';
|
|
476
478
|
export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommendationTarget } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommendationTarget';
|
|
477
479
|
export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommendationWorkload } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommendationWorkload';
|
|
480
|
+
export type { GithubComHarnessHceSaasHceSdkCommonProbeV1EnvVar } from './schemas/GithubComHarnessHceSaasHceSdkCommonProbeV1EnvVar';
|
|
478
481
|
export type { GithubComHarnessHceSaasHceSdkCommonProbeV1Probe } from './schemas/GithubComHarnessHceSaasHceSdkCommonProbeV1Probe';
|
|
479
482
|
export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeAppDynamicsProbeInputs } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeAppDynamicsProbeInputs';
|
|
480
483
|
export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeAppdMetrics } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeAppdMetrics';
|
|
481
484
|
export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDatadogSyntheticsTestType } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDatadogSyntheticsTestType';
|
|
485
|
+
export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeEnv } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeEnv';
|
|
482
486
|
export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeGet } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeGet';
|
|
483
487
|
export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeHeaders } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeHeaders';
|
|
484
488
|
export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeIdentifier } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeIdentifier';
|
|
@@ -507,11 +511,14 @@ export type { InfraContainerInfraUserInputs } from './schemas/InfraContainerInfr
|
|
|
507
511
|
export type { InfraDeploymentType } from './schemas/InfraDeploymentType';
|
|
508
512
|
export type { InfraEcsInstallationManifest } from './schemas/InfraEcsInstallationManifest';
|
|
509
513
|
export type { InfraIdentifiers } from './schemas/InfraIdentifiers';
|
|
514
|
+
export type { InfraInfraFilterInput } from './schemas/InfraInfraFilterInput';
|
|
510
515
|
export type { InfraInfraSpecificUserInputs } from './schemas/InfraInfraSpecificUserInputs';
|
|
511
516
|
export type { InfraInfraType } from './schemas/InfraInfraType';
|
|
512
517
|
export type { InfraInfraVersionDetails } from './schemas/InfraInfraVersionDetails';
|
|
513
518
|
export type { InfraInstallationManifest } from './schemas/InfraInstallationManifest';
|
|
519
|
+
export type { InfraListInfraRequest } from './schemas/InfraListInfraRequest';
|
|
514
520
|
export type { InfraListInfraResponse } from './schemas/InfraListInfraResponse';
|
|
521
|
+
export type { InfraPagination } from './schemas/InfraPagination';
|
|
515
522
|
export type { InfraPlatformType } from './schemas/InfraPlatformType';
|
|
516
523
|
export type { InfraRegisterInfraRequest } from './schemas/InfraRegisterInfraRequest';
|
|
517
524
|
export type { InfraRegisterInfraResponse } from './schemas/InfraRegisterInfraResponse';
|
|
@@ -554,6 +561,7 @@ export type { InputsetsUpdateInputSetRequest } from './schemas/InputsetsUpdateIn
|
|
|
554
561
|
export type { InputsetsUpdateInputSetResponse } from './schemas/InputsetsUpdateInputSetResponse';
|
|
555
562
|
export type { IntstrIntOrString } from './schemas/IntstrIntOrString';
|
|
556
563
|
export type { IntstrType } from './schemas/IntstrType';
|
|
564
|
+
export type { K8sIoApiCoreV1EnvVar } from './schemas/K8sIoApiCoreV1EnvVar';
|
|
557
565
|
export type { K8sIoApimachineryPkgApisMetaV1ConditionStatus } from './schemas/K8sIoApimachineryPkgApisMetaV1ConditionStatus';
|
|
558
566
|
export type { K8sinfraGetInfraTokenResponse } from './schemas/K8sinfraGetInfraTokenResponse';
|
|
559
567
|
export type { K8sinfraUpdateEmissaryUrlRequest } from './schemas/K8sinfraUpdateEmissaryUrlRequest';
|
|
@@ -782,7 +790,6 @@ export type { V1DownwardApiVolumeSource } from './schemas/V1DownwardApiVolumeSou
|
|
|
782
790
|
export type { V1DynatraceProbeInputs } from './schemas/V1DynatraceProbeInputs';
|
|
783
791
|
export type { V1EmptyDirVolumeSource } from './schemas/V1EmptyDirVolumeSource';
|
|
784
792
|
export type { V1EnvFromSource } from './schemas/V1EnvFromSource';
|
|
785
|
-
export type { V1EnvVar } from './schemas/V1EnvVar';
|
|
786
793
|
export type { V1EnvVarSource } from './schemas/V1EnvVarSource';
|
|
787
794
|
export type { V1EphemeralVolumeSource } from './schemas/V1EphemeralVolumeSource';
|
|
788
795
|
export type { V1EvaluationWindow } from './schemas/V1EvaluationWindow';
|
|
@@ -8,6 +8,7 @@ import type { TemplateVariable } from '../schemas/TemplateVariable';
|
|
|
8
8
|
export interface ActionsActionResponse {
|
|
9
9
|
accountID: string;
|
|
10
10
|
actionProperties?: ActionActionTemplateProperties;
|
|
11
|
+
actionReferenceCount?: number;
|
|
11
12
|
actionTemplate?: string;
|
|
12
13
|
actionsRef?: string;
|
|
13
14
|
createdAt?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type ActionsInfrastructureType = 'CloudFoundry' | 'Container' | 'Kubernetes' | 'Linux' | 'Windows';
|
|
1
|
+
export type ActionsInfrastructureType = 'CloudFoundry' | 'Container' | 'Kubernetes' | 'KubernetesV2' | 'Linux' | 'Windows';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import type { ChaosExperimentRunAction } from '../schemas/ChaosExperimentRunAction';
|
|
1
2
|
import type { ChaosExperimentFaultEventMetadata } from '../schemas/ChaosExperimentFaultEventMetadata';
|
|
2
3
|
import type { ChaosExperimentRunFaults } from '../schemas/ChaosExperimentRunFaults';
|
|
3
4
|
import type { TargetserviceServiceMetadata } from '../schemas/TargetserviceServiceMetadata';
|
|
4
5
|
import type { ChaosExperimentWeightagesInput } from '../schemas/ChaosExperimentWeightagesInput';
|
|
5
6
|
export interface ChaosExperimentWorkflowRevision {
|
|
7
|
+
actions?: ChaosExperimentRunAction[];
|
|
6
8
|
chaosFaultEvents?: ChaosExperimentFaultEventMetadata[];
|
|
7
9
|
experimentManifest?: string;
|
|
8
10
|
faultsWithProbes?: ChaosExperimentRunFaults[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { K8sIoApiCoreV1EnvVar } from '../schemas/K8sIoApiCoreV1EnvVar';
|
|
2
2
|
import type { TemplateVariableMinimum } from '../schemas/TemplateVariableMinimum';
|
|
3
3
|
export interface ExperimentActionRef {
|
|
4
4
|
/**
|
|
@@ -12,7 +12,7 @@ export interface ExperimentActionRef {
|
|
|
12
12
|
/**
|
|
13
13
|
* ENV of the action
|
|
14
14
|
*/
|
|
15
|
-
env?:
|
|
15
|
+
env?: K8sIoApiCoreV1EnvVar[];
|
|
16
16
|
/**
|
|
17
17
|
* HubRef of the fault reference
|
|
18
18
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ExperimentExperimentComponents } from '../schemas/ExperimentExperimentComponents';
|
|
2
|
-
import type {
|
|
2
|
+
import type { K8sIoApiCoreV1EnvVar } from '../schemas/K8sIoApiCoreV1EnvVar';
|
|
3
3
|
import type { V1PullPolicy } from '../schemas/V1PullPolicy';
|
|
4
4
|
import type { GithubComHarnessHceSaasHceSdkCommonProbeV1Probe } from '../schemas/GithubComHarnessHceSaasHceSdkCommonProbeV1Probe';
|
|
5
5
|
export interface ExperimentChaosInputs {
|
|
@@ -10,7 +10,7 @@ export interface ExperimentChaosInputs {
|
|
|
10
10
|
command?: string[];
|
|
11
11
|
components?: ExperimentExperimentComponents;
|
|
12
12
|
defaultHealthCheck?: boolean;
|
|
13
|
-
env?:
|
|
13
|
+
env?: K8sIoApiCoreV1EnvVar[];
|
|
14
14
|
fault?: string;
|
|
15
15
|
image?: string;
|
|
16
16
|
imagePullPolicy?: V1PullPolicy;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ExperimentConfigMap } from '../schemas/ExperimentConfigMap';
|
|
2
|
-
import type {
|
|
2
|
+
import type { K8sIoApiCoreV1EnvVar } from '../schemas/K8sIoApiCoreV1EnvVar';
|
|
3
3
|
import type { ExperimentHostFile } from '../schemas/ExperimentHostFile';
|
|
4
4
|
import type { V1PullPolicy } from '../schemas/V1PullPolicy';
|
|
5
5
|
import type { V1LocalObjectReference } from '../schemas/V1LocalObjectReference';
|
|
@@ -14,7 +14,7 @@ export interface ExperimentHelperConfig {
|
|
|
14
14
|
args?: string[];
|
|
15
15
|
command?: string[];
|
|
16
16
|
configMaps?: ExperimentConfigMap[];
|
|
17
|
-
env?:
|
|
17
|
+
env?: K8sIoApiCoreV1EnvVar[];
|
|
18
18
|
hostFileVolumes?: ExperimentHostFile[];
|
|
19
19
|
hostIPC?: boolean;
|
|
20
20
|
hostNetwork?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { K8sIoApiCoreV1EnvVar } from '../schemas/K8sIoApiCoreV1EnvVar';
|
|
2
2
|
export interface ExperimentProbeActions {
|
|
3
3
|
/**
|
|
4
4
|
* Args of the action
|
|
@@ -11,7 +11,7 @@ export interface ExperimentProbeActions {
|
|
|
11
11
|
/**
|
|
12
12
|
* ENV of the action
|
|
13
13
|
*/
|
|
14
|
-
env?:
|
|
14
|
+
env?: K8sIoApiCoreV1EnvVar[];
|
|
15
15
|
/**
|
|
16
16
|
* Identity of the action
|
|
17
17
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { K8sIoApiCoreV1EnvVar } from '../schemas/K8sIoApiCoreV1EnvVar';
|
|
2
2
|
import type { V1EnvFromSource } from '../schemas/V1EnvFromSource';
|
|
3
3
|
import type { V1PullPolicy } from '../schemas/V1PullPolicy';
|
|
4
4
|
import type { ExperimentSecret } from '../schemas/ExperimentSecret';
|
|
5
5
|
export interface ExperimentSidecar {
|
|
6
|
-
env?:
|
|
6
|
+
env?: K8sIoApiCoreV1EnvVar[];
|
|
7
7
|
envFrom?: V1EnvFromSource[];
|
|
8
8
|
image?: string;
|
|
9
9
|
imagePullPolicy?: V1PullPolicy;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FaulttemplateConfigMapVolume } from '../schemas/FaulttemplateConfigMapVolume';
|
|
2
2
|
import type { V1SecurityContext } from '../schemas/V1SecurityContext';
|
|
3
|
-
import type {
|
|
3
|
+
import type { K8sIoApiCoreV1EnvVar } from '../schemas/K8sIoApiCoreV1EnvVar';
|
|
4
4
|
import type { FaulttemplateHostPathVolume } from '../schemas/FaulttemplateHostPathVolume';
|
|
5
5
|
import type { V1PullPolicy } from '../schemas/V1PullPolicy';
|
|
6
6
|
import type { V1PodSecurityContext } from '../schemas/V1PodSecurityContext';
|
|
@@ -15,7 +15,7 @@ export interface FaulttemplateChaosKubernetesSpec {
|
|
|
15
15
|
command?: string[];
|
|
16
16
|
configMapVolume?: FaulttemplateConfigMapVolume[];
|
|
17
17
|
containerSecurityContext?: V1SecurityContext;
|
|
18
|
-
env?:
|
|
18
|
+
env?: K8sIoApiCoreV1EnvVar[];
|
|
19
19
|
hostIPC?: boolean;
|
|
20
20
|
hostNetwork?: boolean;
|
|
21
21
|
hostPID?: boolean;
|
|
@@ -7,6 +7,7 @@ import type { TemplateVariable } from '../schemas/TemplateVariable';
|
|
|
7
7
|
export interface GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbActionsAction {
|
|
8
8
|
accountID: string;
|
|
9
9
|
actionProperties?: ActionActionTemplateProperties;
|
|
10
|
+
actionReferenceCount?: number;
|
|
10
11
|
actionsRef?: string;
|
|
11
12
|
description?: string;
|
|
12
13
|
hubRef?: string;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface InfraInfraFilterInput {
|
|
2
|
+
/**
|
|
3
|
+
* ID of the infra
|
|
4
|
+
*/
|
|
5
|
+
description?: string;
|
|
6
|
+
/**
|
|
7
|
+
* ID of the infra
|
|
8
|
+
*/
|
|
9
|
+
infraID?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Status of infra
|
|
12
|
+
*/
|
|
13
|
+
isActive?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Name of the infra
|
|
16
|
+
*/
|
|
17
|
+
name?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Tags of an infra
|
|
20
|
+
*/
|
|
21
|
+
tags?: string[];
|
|
22
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { InfraInfraFilterInput } from '../schemas/InfraInfraFilterInput';
|
|
2
|
+
import type { InfraIdentifiers } from '../schemas/InfraIdentifiers';
|
|
3
|
+
import type { InfraInfraType } from '../schemas/InfraInfraType';
|
|
4
|
+
import type { InfraPagination } from '../schemas/InfraPagination';
|
|
5
|
+
export interface InfraListInfraRequest {
|
|
6
|
+
/**
|
|
7
|
+
* CorrelationID for the request
|
|
8
|
+
*/
|
|
9
|
+
correlationId?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Environment ID
|
|
12
|
+
*/
|
|
13
|
+
environmentIDs?: string[];
|
|
14
|
+
/**
|
|
15
|
+
* Details for fetching filtered data
|
|
16
|
+
*/
|
|
17
|
+
filter?: InfraInfraFilterInput;
|
|
18
|
+
/**
|
|
19
|
+
* Identifiers for the infra
|
|
20
|
+
*/
|
|
21
|
+
identifiers?: InfraIdentifiers;
|
|
22
|
+
/**
|
|
23
|
+
* Array of infra IDs for which details will be fetched
|
|
24
|
+
*/
|
|
25
|
+
infraIDs?: string[];
|
|
26
|
+
/**
|
|
27
|
+
* InfraType of the infra
|
|
28
|
+
*/
|
|
29
|
+
infraType?: InfraInfraType;
|
|
30
|
+
/**
|
|
31
|
+
* Details for fetching paginated data
|
|
32
|
+
*/
|
|
33
|
+
pagination?: InfraPagination;
|
|
34
|
+
}
|
|
@@ -4,7 +4,7 @@ import type { InfraInfraType } from '../schemas/InfraInfraType';
|
|
|
4
4
|
import type { InfraRegisterInfraUserInputs } from '../schemas/InfraRegisterInfraUserInputs';
|
|
5
5
|
export interface InfraRegisterInfraRequest {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* CorrelationID for the request
|
|
8
8
|
*/
|
|
9
9
|
correlationId?: string;
|
|
10
10
|
/**
|
package/dist/chaos-manager/src/services/schemas/InfraV2KubernetesInfrastructureV2Details.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ export interface InfraV2KubernetesInfrastructureV2Details {
|
|
|
36
36
|
insecureSkipVerify?: boolean;
|
|
37
37
|
installationType?: InfraV2InstallationType;
|
|
38
38
|
isAIEnabled?: boolean;
|
|
39
|
+
isAutopilotEnabled?: boolean;
|
|
39
40
|
isChaosEnabled?: boolean;
|
|
40
41
|
k8sConnectorID?: string;
|
|
41
42
|
label?: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { ProbeComparatorTemplate } from '../schemas/ProbeComparatorTemplate';
|
|
2
|
+
import type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeEnv } from '../schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeEnv';
|
|
2
3
|
export interface ProbeCmdProbeTemplate {
|
|
3
4
|
command?: string;
|
|
4
5
|
comparator?: ProbeComparatorTemplate;
|
|
6
|
+
env?: GithubComHarnessHceSaasHceSdkTemplateSchemaProbeEnv[];
|
|
5
7
|
source?: string;
|
|
6
8
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { ProbeComparator } from '../schemas/ProbeComparator';
|
|
2
|
+
import type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeEnv } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeEnv';
|
|
2
3
|
export interface ProbeKubernetesCmdProbe {
|
|
3
4
|
attempt?: {};
|
|
4
5
|
command?: string;
|
|
5
6
|
comparator?: ProbeComparator;
|
|
7
|
+
env?: GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeEnv[];
|
|
6
8
|
initialDelay?: string;
|
|
7
9
|
initialDelaySeconds?: {};
|
|
8
10
|
interval?: string;
|
|
@@ -13,6 +13,7 @@ export interface TypesExperimentV2 {
|
|
|
13
13
|
cronSyntax?: string;
|
|
14
14
|
description?: string;
|
|
15
15
|
eventsMetadata?: ModelEventMetadata[];
|
|
16
|
+
experimentID?: string;
|
|
16
17
|
identifiers?: GithubComHarnessHceSaasGraphqlServerGraphModelIdentifiers;
|
|
17
18
|
infra?: ChaosInfrastructureV2ChaosInfraV2;
|
|
18
19
|
isCronEnabled?: boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { V1ComparatorInfo } from '../schemas/V1ComparatorInfo';
|
|
2
|
+
import type { GithubComHarnessHceSaasHceSdkCommonProbeV1EnvVar } from '../schemas/GithubComHarnessHceSaasHceSdkCommonProbeV1EnvVar';
|
|
2
3
|
import type { V1SourceDetails } from '../schemas/V1SourceDetails';
|
|
3
4
|
export interface V1CmdProbeInputs {
|
|
4
5
|
/**
|
|
@@ -9,6 +10,10 @@ export interface V1CmdProbeInputs {
|
|
|
9
10
|
* Comparator check for the correctness of the probe output
|
|
10
11
|
*/
|
|
11
12
|
comparator?: V1ComparatorInfo;
|
|
13
|
+
/**
|
|
14
|
+
* ENV contains ENV passed to the command probe
|
|
15
|
+
*/
|
|
16
|
+
env?: GithubComHarnessHceSaasHceSdkCommonProbeV1EnvVar[];
|
|
12
17
|
/**
|
|
13
18
|
* The source where we have to run the command
|
|
14
19
|
* It will run in inline(inside experiment itself) mode if source is nil
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { K8sIoApiCoreV1EnvVar } from '../schemas/K8sIoApiCoreV1EnvVar';
|
|
2
2
|
import type { V1PullPolicy } from '../schemas/V1PullPolicy';
|
|
3
3
|
import type { V1LocalObjectReference } from '../schemas/V1LocalObjectReference';
|
|
4
4
|
import type { V1Toleration } from '../schemas/V1Toleration';
|
|
@@ -22,7 +22,7 @@ export interface V1SourceDetails {
|
|
|
22
22
|
/**
|
|
23
23
|
* ENVList contains ENV passed to the source pod
|
|
24
24
|
*/
|
|
25
|
-
env?:
|
|
25
|
+
env?: K8sIoApiCoreV1EnvVar[];
|
|
26
26
|
/**
|
|
27
27
|
* HostNetwork define the hostNetwork of the external pod
|
|
28
28
|
* it supports boolean values and default value is false
|
package/package.json
CHANGED
|
File without changes
|