@harnessio/react-chaos-manager-client 1.1.0 → 1.4.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.
Files changed (55) hide show
  1. package/dist/chaos-manager/src/services/hooks/useListFaultQuery.d.ts +1 -0
  2. package/dist/chaos-manager/src/services/index.d.ts +18 -18
  3. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosExecutionNode.d.ts +1 -0
  4. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesFaultDetails.d.ts +2 -2
  5. package/dist/chaos-manager/src/services/schemas/ChaosInfrastructureV2K8sInfraV2SpecIdentifiers.d.ts +1 -0
  6. package/dist/chaos-manager/src/services/schemas/ChaoshubresourcesChaosHubResource.d.ts +10 -0
  7. package/dist/chaos-manager/src/services/schemas/ChaoshubresourcesChaosHubResource.js +0 -3
  8. package/dist/chaos-manager/src/services/schemas/ChaoshubresourcesLink.d.ts +4 -0
  9. package/dist/chaos-manager/src/services/schemas/ChaoshubresourcesPermissionLevel.d.ts +1 -0
  10. package/dist/chaos-manager/src/services/schemas/ExecutionChaosExecutionNode.d.ts +1 -0
  11. package/dist/chaos-manager/src/services/schemas/ExecutionFaultData.d.ts +8 -4
  12. package/dist/chaos-manager/src/services/schemas/{TypesApplication.d.ts → ExperimentApplication.d.ts} +1 -1
  13. package/dist/chaos-manager/src/services/schemas/{GithubComWingsSoftwareDdcrPkgTypesChaosInputs.d.ts → ExperimentChaosInputs.d.ts} +3 -3
  14. package/dist/chaos-manager/src/services/schemas/{TypesConfigMap.d.ts → ExperimentConfigMap.d.ts} +1 -1
  15. package/dist/chaos-manager/src/services/schemas/ExperimentDefinition.d.ts +12 -0
  16. package/dist/chaos-manager/src/services/schemas/ExperimentExperimentComponents.d.ts +29 -0
  17. package/dist/chaos-manager/src/services/schemas/{TypesHelperConfig.d.ts → ExperimentHelperConfig.d.ts} +9 -9
  18. package/dist/chaos-manager/src/services/schemas/{TypesHostFile.d.ts → ExperimentHostFile.d.ts} +1 -1
  19. package/dist/chaos-manager/src/services/schemas/{TypesProjectedVolumes.d.ts → ExperimentProjectedVolumes.d.ts} +1 -1
  20. package/dist/chaos-manager/src/services/schemas/{TypesSecret.d.ts → ExperimentSecret.d.ts} +1 -1
  21. package/dist/chaos-manager/src/services/schemas/{TypesSecurityContext.d.ts → ExperimentSecurityContext.d.ts} +1 -1
  22. package/dist/chaos-manager/src/services/schemas/ExperimentSelector.d.ts +7 -0
  23. package/dist/chaos-manager/src/services/schemas/{TypesSidecar.d.ts → ExperimentSidecar.d.ts} +3 -3
  24. package/dist/chaos-manager/src/services/schemas/ExperimentStatusCheckTimeout.d.ts +4 -0
  25. package/dist/chaos-manager/src/services/schemas/ExperimentTargets.d.ts +6 -0
  26. package/dist/chaos-manager/src/services/schemas/{TypesWorkload.d.ts → ExperimentWorkload.d.ts} +3 -3
  27. package/dist/chaos-manager/src/services/schemas/ExperimentWorkloadKind.d.ts +1 -0
  28. package/dist/chaos-manager/src/services/schemas/ExperimentWorkloadKind.js +4 -0
  29. package/package.json +1 -1
  30. package/dist/chaos-manager/src/services/schemas/ExecutionKubernetesFaultData.d.ts +0 -10
  31. package/dist/chaos-manager/src/services/schemas/ExecutionMachineChaosFaultData.d.ts +0 -3
  32. package/dist/chaos-manager/src/services/schemas/GithubComWingsSoftwareDdcrPkgTypesDefinition.d.ts +0 -12
  33. package/dist/chaos-manager/src/services/schemas/TypesExperimentComponents.d.ts +0 -29
  34. package/dist/chaos-manager/src/services/schemas/TypesSelector.d.ts +0 -7
  35. package/dist/chaos-manager/src/services/schemas/TypesStatusCheckTimeout.d.ts +0 -4
  36. package/dist/chaos-manager/src/services/schemas/TypesTargets.d.ts +0 -6
  37. package/dist/chaos-manager/src/services/schemas/TypesWorkload.js +0 -1
  38. package/dist/chaos-manager/src/services/schemas/TypesWorkloadKind.d.ts +0 -1
  39. /package/dist/chaos-manager/src/services/schemas/{ExecutionMachineChaosFaultData.js → ChaoshubresourcesLink.js} +0 -0
  40. /package/dist/chaos-manager/src/services/schemas/{TypesApplication.js → ChaoshubresourcesPermissionLevel.js} +0 -0
  41. /package/dist/chaos-manager/src/services/schemas/{TypesConfigMap.js → ExperimentApplication.js} +0 -0
  42. /package/dist/chaos-manager/src/services/schemas/{ExecutionKubernetesFaultData.js → ExperimentChaosInputs.js} +0 -0
  43. /package/dist/chaos-manager/src/services/schemas/{TypesSecret.js → ExperimentConfigMap.js} +0 -0
  44. /package/dist/chaos-manager/src/services/schemas/{GithubComWingsSoftwareDdcrPkgTypesChaosInputs.js → ExperimentDefinition.js} +0 -0
  45. /package/dist/chaos-manager/src/services/schemas/{GithubComWingsSoftwareDdcrPkgTypesDefinition.js → ExperimentExperimentComponents.js} +0 -0
  46. /package/dist/chaos-manager/src/services/schemas/{TypesExperimentComponents.js → ExperimentHelperConfig.js} +0 -0
  47. /package/dist/chaos-manager/src/services/schemas/{TypesHelperConfig.js → ExperimentHostFile.js} +0 -0
  48. /package/dist/chaos-manager/src/services/schemas/{TypesHostFile.js → ExperimentProjectedVolumes.js} +0 -0
  49. /package/dist/chaos-manager/src/services/schemas/{TypesStatusCheckTimeout.js → ExperimentSecret.js} +0 -0
  50. /package/dist/chaos-manager/src/services/schemas/{TypesProjectedVolumes.js → ExperimentSecurityContext.js} +0 -0
  51. /package/dist/chaos-manager/src/services/schemas/{TypesSecurityContext.js → ExperimentSelector.js} +0 -0
  52. /package/dist/chaos-manager/src/services/schemas/{TypesSelector.js → ExperimentSidecar.js} +0 -0
  53. /package/dist/chaos-manager/src/services/schemas/{TypesWorkloadKind.js → ExperimentStatusCheckTimeout.js} +0 -0
  54. /package/dist/chaos-manager/src/services/schemas/{TypesSidecar.js → ExperimentTargets.js} +0 -0
  55. /package/dist/chaos-manager/src/services/schemas/{TypesTargets.js → ExperimentWorkload.js} +0 -0
@@ -8,6 +8,7 @@ export interface ListFaultQueryQueryParams {
8
8
  projectIdentifier: string;
9
9
  hubIdentity?: string;
10
10
  infraType?: string;
11
+ permissionsRequired?: string;
11
12
  entityType?: string;
12
13
  search: string;
13
14
  /**
@@ -336,6 +336,8 @@ export type { ChaosfaulttemplateUpdateFaultTemplateResponse } from './schemas/Ch
336
336
  export type { ChaoshubFaultCategoriesCount } from './schemas/ChaoshubFaultCategoriesCount';
337
337
  export type { ChaoshubListFaultsResponse } from './schemas/ChaoshubListFaultsResponse';
338
338
  export type { ChaoshubresourcesChaosHubResource } from './schemas/ChaoshubresourcesChaosHubResource';
339
+ export type { ChaoshubresourcesLink } from './schemas/ChaoshubresourcesLink';
340
+ export type { ChaoshubresourcesPermissionLevel } from './schemas/ChaoshubresourcesPermissionLevel';
339
341
  export type { Chaoshubv2ChaosHubResponse } from './schemas/Chaoshubv2ChaosHubResponse';
340
342
  export type { Chaoshubv2CreateHubRequest } from './schemas/Chaoshubv2CreateHubRequest';
341
343
  export type { Chaoshubv2GetHubResponse } from './schemas/Chaoshubv2GetHubResponse';
@@ -390,12 +392,26 @@ export type { ExecutionFaultData } from './schemas/ExecutionFaultData';
390
392
  export type { ExecutionHelperPodDetails } from './schemas/ExecutionHelperPodDetails';
391
393
  export type { ExecutionHttpProbe } from './schemas/ExecutionHttpProbe';
392
394
  export type { ExecutionInfraType } from './schemas/ExecutionInfraType';
393
- export type { ExecutionKubernetesFaultData } from './schemas/ExecutionKubernetesFaultData';
394
- export type { ExecutionMachineChaosFaultData } from './schemas/ExecutionMachineChaosFaultData';
395
395
  export type { ExecutionProbeData } from './schemas/ExecutionProbeData';
396
396
  export type { ExecutionProbeIterations } from './schemas/ExecutionProbeIterations';
397
397
  export type { ExecutionPromProbe } from './schemas/ExecutionPromProbe';
398
+ export type { ExperimentApplication } from './schemas/ExperimentApplication';
399
+ export type { ExperimentChaosInputs } from './schemas/ExperimentChaosInputs';
400
+ export type { ExperimentConfigMap } from './schemas/ExperimentConfigMap';
401
+ export type { ExperimentDefinition } from './schemas/ExperimentDefinition';
402
+ export type { ExperimentExperimentComponents } from './schemas/ExperimentExperimentComponents';
403
+ export type { ExperimentHelperConfig } from './schemas/ExperimentHelperConfig';
404
+ export type { ExperimentHostFile } from './schemas/ExperimentHostFile';
405
+ export type { ExperimentProjectedVolumes } from './schemas/ExperimentProjectedVolumes';
398
406
  export type { ExperimentSaveChaosExperimentResponse } from './schemas/ExperimentSaveChaosExperimentResponse';
407
+ export type { ExperimentSecret } from './schemas/ExperimentSecret';
408
+ export type { ExperimentSecurityContext } from './schemas/ExperimentSecurityContext';
409
+ export type { ExperimentSelector } from './schemas/ExperimentSelector';
410
+ export type { ExperimentSidecar } from './schemas/ExperimentSidecar';
411
+ export type { ExperimentStatusCheckTimeout } from './schemas/ExperimentStatusCheckTimeout';
412
+ export type { ExperimentTargets } from './schemas/ExperimentTargets';
413
+ export type { ExperimentWorkload } from './schemas/ExperimentWorkload';
414
+ export type { ExperimentWorkloadKind } from './schemas/ExperimentWorkloadKind';
399
415
  export type { Gamedayrunv2ApprovalStatus } from './schemas/Gamedayrunv2ApprovalStatus';
400
416
  export type { Gamedayrunv2PrerequisiteStatus } from './schemas/Gamedayrunv2PrerequisiteStatus';
401
417
  export type { Gamedayv2GamedayRunStatus } from './schemas/Gamedayv2GamedayRunStatus';
@@ -440,8 +456,6 @@ export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSecretManager } fr
440
456
  export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSplunkObservabilityMetrics } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSplunkObservabilityMetrics';
441
457
  export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSplunkObservabilityProbeInputs } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSplunkObservabilityProbeInputs';
442
458
  export type { GithubComHarnessHceSaasHceSdkTypesApiK8sifsImageRegistryScopedIdentifiers } from './schemas/GithubComHarnessHceSaasHceSdkTypesApiK8sifsImageRegistryScopedIdentifiers';
443
- export type { GithubComWingsSoftwareDdcrPkgTypesChaosInputs } from './schemas/GithubComWingsSoftwareDdcrPkgTypesChaosInputs';
444
- export type { GithubComWingsSoftwareDdcrPkgTypesDefinition } from './schemas/GithubComWingsSoftwareDdcrPkgTypesDefinition';
445
459
  export type { HandlersChaosExperimentRunsStatsResponse } from './schemas/HandlersChaosExperimentRunsStatsResponse';
446
460
  export type { HandlersChaosLicenseUsageDto } from './schemas/HandlersChaosLicenseUsageDto';
447
461
  export type { HandlersDashboard } from './schemas/HandlersDashboard';
@@ -642,8 +656,6 @@ export type { TemplateVariableCategory } from './schemas/TemplateVariableCategor
642
656
  export type { TemplateVariableMinimum } from './schemas/TemplateVariableMinimum';
643
657
  export type { TemplateVariableType } from './schemas/TemplateVariableType';
644
658
  export type { TypesActionItem } from './schemas/TypesActionItem';
645
- export type { TypesApplication } from './schemas/TypesApplication';
646
- export type { TypesConfigMap } from './schemas/TypesConfigMap';
647
659
  export type { TypesCreateGamedayRequest } from './schemas/TypesCreateGamedayRequest';
648
660
  export type { TypesCreateGamedayResponse } from './schemas/TypesCreateGamedayResponse';
649
661
  export type { TypesCreateGamedayRunResponse } from './schemas/TypesCreateGamedayRunResponse';
@@ -652,7 +664,6 @@ export type { TypesCreateNoteResponse } from './schemas/TypesCreateNoteResponse'
652
664
  export type { TypesCreateProbeResponse } from './schemas/TypesCreateProbeResponse';
653
665
  export type { TypesDeleteChaosV2ExperimentResponse } from './schemas/TypesDeleteChaosV2ExperimentResponse';
654
666
  export type { TypesExecutedByExperiment } from './schemas/TypesExecutedByExperiment';
655
- export type { TypesExperimentComponents } from './schemas/TypesExperimentComponents';
656
667
  export type { TypesExperimentCreationError } from './schemas/TypesExperimentCreationError';
657
668
  export type { TypesExperimentCreationRequest } from './schemas/TypesExperimentCreationRequest';
658
669
  export type { TypesExperimentCreationResponse } from './schemas/TypesExperimentCreationResponse';
@@ -665,8 +676,6 @@ export type { TypesGamedayV2 } from './schemas/TypesGamedayV2';
665
676
  export type { TypesGetGamedayExperimentResponse } from './schemas/TypesGetGamedayExperimentResponse';
666
677
  export type { TypesGetGamedayResponse } from './schemas/TypesGetGamedayResponse';
667
678
  export type { TypesGetProbeResponse } from './schemas/TypesGetProbeResponse';
668
- export type { TypesHelperConfig } from './schemas/TypesHelperConfig';
669
- export type { TypesHostFile } from './schemas/TypesHostFile';
670
679
  export type { TypesImportProbeTemplateRequest } from './schemas/TypesImportProbeTemplateRequest';
671
680
  export type { TypesInfrastructureType } from './schemas/TypesInfrastructureType';
672
681
  export type { TypesInternalExperimentRunRequest } from './schemas/TypesInternalExperimentRunRequest';
@@ -683,23 +692,16 @@ export type { TypesProbeBulkEnableRequest } from './schemas/TypesProbeBulkEnable
683
692
  export type { TypesProbeRecentExecutions } from './schemas/TypesProbeRecentExecutions';
684
693
  export type { TypesProbeRequest } from './schemas/TypesProbeRequest';
685
694
  export type { TypesProbeType } from './schemas/TypesProbeType';
686
- export type { TypesProjectedVolumes } from './schemas/TypesProjectedVolumes';
687
695
  export type { TypesRecentGamedayRun } from './schemas/TypesRecentGamedayRun';
688
696
  export type { TypesRun } from './schemas/TypesRun';
689
697
  export type { TypesScenarioType } from './schemas/TypesScenarioType';
690
- export type { TypesSecret } from './schemas/TypesSecret';
691
- export type { TypesSecurityContext } from './schemas/TypesSecurityContext';
692
- export type { TypesSelector } from './schemas/TypesSelector';
693
- export type { TypesSidecar } from './schemas/TypesSidecar';
694
698
  export type { TypesStakeHolderDetailsForRuns } from './schemas/TypesStakeHolderDetailsForRuns';
695
699
  export type { TypesStakeHolderInput } from './schemas/TypesStakeHolderInput';
696
700
  export type { TypesStakeHolderResponse } from './schemas/TypesStakeHolderResponse';
697
701
  export type { TypesStakeHolderRole } from './schemas/TypesStakeHolderRole';
698
702
  export type { TypesStatus } from './schemas/TypesStatus';
699
- export type { TypesStatusCheckTimeout } from './schemas/TypesStatusCheckTimeout';
700
703
  export type { TypesStopChaosV2ExperimentResponse } from './schemas/TypesStopChaosV2ExperimentResponse';
701
704
  export type { TypesSummary } from './schemas/TypesSummary';
702
- export type { TypesTargets } from './schemas/TypesTargets';
703
705
  export type { TypesUpdateCronExperimentAction } from './schemas/TypesUpdateCronExperimentAction';
704
706
  export type { TypesUpdateCronExperimentStateRequest } from './schemas/TypesUpdateCronExperimentStateRequest';
705
707
  export type { TypesUpdateCronExperimentStateResponse } from './schemas/TypesUpdateCronExperimentStateResponse';
@@ -711,8 +713,6 @@ export type { TypesUpdatePrerequisiteRequest } from './schemas/TypesUpdatePrereq
711
713
  export type { TypesUpdateStakeHolderActionRequest } from './schemas/TypesUpdateStakeHolderActionRequest';
712
714
  export type { TypesUserDetails } from './schemas/TypesUserDetails';
713
715
  export type { TypesWeightages } from './schemas/TypesWeightages';
714
- export type { TypesWorkload } from './schemas/TypesWorkload';
715
- export type { TypesWorkloadKind } from './schemas/TypesWorkloadKind';
716
716
  export type { V1ApmProbeInputs } from './schemas/V1ApmProbeInputs';
717
717
  export type { V1ApmProbeTlsConfig } from './schemas/V1ApmProbeTlsConfig';
718
718
  export type { V1AppDynamicsInputs } from './schemas/V1AppDynamicsInputs';
@@ -15,6 +15,7 @@ export interface ChaosExecutionNodesChaosExecutionNode {
15
15
  lastUpdatedAt?: number;
16
16
  orgID?: string;
17
17
  projectID?: string;
18
+ spec?: string;
18
19
  startedAt?: number;
19
20
  status?: ChaosExecutionNodesChaosStepStatus;
20
21
  stepName?: string;
@@ -1,5 +1,5 @@
1
- import type { GithubComWingsSoftwareDdcrPkgTypesDefinition } from '../schemas/GithubComWingsSoftwareDdcrPkgTypesDefinition';
1
+ import type { ExperimentDefinition } from '../schemas/ExperimentDefinition';
2
2
  export interface ChaosExecutionNodesFaultDetails {
3
- definition?: GithubComWingsSoftwareDdcrPkgTypesDefinition;
3
+ definition?: ExperimentDefinition;
4
4
  name?: string;
5
5
  }
@@ -1,6 +1,7 @@
1
1
  import type { ChaosInfrastructureV2InfraScope } from '../schemas/ChaosInfrastructureV2InfraScope';
2
2
  import type { ChaosInfrastructureV2InfraType } from '../schemas/ChaosInfrastructureV2InfraType';
3
3
  export interface ChaosInfrastructureV2K8sInfraV2SpecIdentifiers {
4
+ aiEnabled?: boolean;
4
5
  discoveryAgentId?: string;
5
6
  emissaryURL?: string;
6
7
  namespace?: string;
@@ -1,3 +1,5 @@
1
+ import type { ChaoshubresourcesLink } from '../schemas/ChaoshubresourcesLink';
2
+ import type { ChaoshubresourcesPermissionLevel } from '../schemas/ChaoshubresourcesPermissionLevel';
1
3
  export interface ChaoshubresourcesChaosHubResource {
2
4
  accountID: string;
3
5
  /**
@@ -74,11 +76,19 @@ export interface ChaoshubresourcesChaosHubResource {
74
76
  * Kind of the resource
75
77
  */
76
78
  kind?: string;
79
+ /**
80
+ * Links are array of Link
81
+ */
82
+ links?: ChaoshubresourcesLink[];
77
83
  /**
78
84
  * name of the resource
79
85
  */
80
86
  name?: string;
81
87
  orgID?: string;
88
+ /**
89
+ * PermissionsRequired represents the level of permissions required for the resource
90
+ */
91
+ permissionsRequired?: ChaoshubresourcesPermissionLevel;
82
92
  /**
83
93
  * Plan
84
94
  */
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -0,0 +1,4 @@
1
+ export interface ChaoshubresourcesLink {
2
+ name?: string;
3
+ url?: string;
4
+ }
@@ -0,0 +1 @@
1
+ export type ChaoshubresourcesPermissionLevel = 'advanced' | 'basic';
@@ -13,6 +13,7 @@ export interface ExecutionChaosExecutionNode {
13
13
  infraType?: ExecutionInfraType;
14
14
  isRemoved?: boolean;
15
15
  lastUpdatedAt?: number;
16
+ spec?: string;
16
17
  startedAt?: number;
17
18
  status?: ExecutionChaosStepStatus;
18
19
  stepName?: string;
@@ -1,6 +1,10 @@
1
- import type { ExecutionKubernetesFaultData } from '../schemas/ExecutionKubernetesFaultData';
2
- import type { ExecutionMachineChaosFaultData } from '../schemas/ExecutionMachineChaosFaultData';
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
- kubernetesFaultData?: ExecutionKubernetesFaultData;
5
- machineChaosFaultData?: ExecutionMachineChaosFaultData;
5
+ helperPodDetails?: ExecutionHelperPodDetails[];
6
+ name?: string;
7
+ namespace?: string;
8
+ targetChaosStatus?: V1alpha1TargetDetails[];
9
+ targets?: V1alpha1Targets[];
6
10
  }
@@ -1,4 +1,4 @@
1
- export interface TypesApplication {
1
+ export interface ExperimentApplication {
2
2
  function?: string;
3
3
  name?: string;
4
4
  }
@@ -1,14 +1,14 @@
1
- import type { TypesExperimentComponents } from '../schemas/TypesExperimentComponents';
1
+ import type { ExperimentExperimentComponents } from '../schemas/ExperimentExperimentComponents';
2
2
  import type { V1EnvVar } from '../schemas/V1EnvVar';
3
3
  import type { V1PullPolicy } from '../schemas/V1PullPolicy';
4
4
  import type { GithubComHarnessHceSaasHceSdkCommonProbeV1Probe } from '../schemas/GithubComHarnessHceSaasHceSdkCommonProbeV1Probe';
5
- export interface GithubComWingsSoftwareDdcrPkgTypesChaosInputs {
5
+ export interface ExperimentChaosInputs {
6
6
  annotations?: {
7
7
  [key: string]: string;
8
8
  };
9
9
  args?: string[];
10
10
  command?: string[];
11
- components?: TypesExperimentComponents;
11
+ components?: ExperimentExperimentComponents;
12
12
  defaultHealthCheck?: boolean;
13
13
  env?: V1EnvVar[];
14
14
  fault?: string;
@@ -1,4 +1,4 @@
1
- export interface TypesConfigMap {
1
+ export interface ExperimentConfigMap {
2
2
  defaultMode?: number;
3
3
  mountPath?: string;
4
4
  name?: string;
@@ -0,0 +1,12 @@
1
+ import type { ExperimentChaosInputs } from '../schemas/ExperimentChaosInputs';
2
+ import type { ExperimentTargets } from '../schemas/ExperimentTargets';
3
+ export interface ExperimentDefinition {
4
+ /**
5
+ * Chaos to store the chaos inputs
6
+ */
7
+ chaos?: ExperimentChaosInputs;
8
+ /**
9
+ * Type of the fault
10
+ */
11
+ targets?: ExperimentTargets;
12
+ }
@@ -0,0 +1,29 @@
1
+ import type { ExperimentConfigMap } from '../schemas/ExperimentConfigMap';
2
+ import type { ExperimentHelperConfig } from '../schemas/ExperimentHelperConfig';
3
+ import type { ExperimentHostFile } from '../schemas/ExperimentHostFile';
4
+ import type { V1LocalObjectReference } from '../schemas/V1LocalObjectReference';
5
+ import type { ExperimentProjectedVolumes } from '../schemas/ExperimentProjectedVolumes';
6
+ import type { V1ResourceRequirements } from '../schemas/V1ResourceRequirements';
7
+ import type { ExperimentSecret } from '../schemas/ExperimentSecret';
8
+ import type { ExperimentSecurityContext } from '../schemas/ExperimentSecurityContext';
9
+ import type { ExperimentSidecar } from '../schemas/ExperimentSidecar';
10
+ import type { ExperimentStatusCheckTimeout } from '../schemas/ExperimentStatusCheckTimeout';
11
+ import type { V1Toleration } from '../schemas/V1Toleration';
12
+ export interface ExperimentExperimentComponents {
13
+ configMaps?: ExperimentConfigMap[];
14
+ helper?: ExperimentHelperConfig;
15
+ hostFileVolumes?: ExperimentHostFile[];
16
+ hostPID?: boolean;
17
+ imagePullSecrets?: V1LocalObjectReference[];
18
+ nodeSelector?: {
19
+ [key: string]: string;
20
+ };
21
+ projectedVolumes?: ExperimentProjectedVolumes[];
22
+ resources?: V1ResourceRequirements;
23
+ secrets?: ExperimentSecret[];
24
+ securityContext?: ExperimentSecurityContext;
25
+ sidecar?: ExperimentSidecar[];
26
+ statusCheckTimeouts?: ExperimentStatusCheckTimeout;
27
+ terminationGracePeriodSeconds?: number;
28
+ tolerations?: V1Toleration[];
29
+ }
@@ -1,21 +1,21 @@
1
- import type { TypesConfigMap } from '../schemas/TypesConfigMap';
1
+ import type { ExperimentConfigMap } from '../schemas/ExperimentConfigMap';
2
2
  import type { V1EnvVar } from '../schemas/V1EnvVar';
3
- import type { TypesHostFile } from '../schemas/TypesHostFile';
3
+ import type { ExperimentHostFile } from '../schemas/ExperimentHostFile';
4
4
  import type { V1PullPolicy } from '../schemas/V1PullPolicy';
5
5
  import type { V1LocalObjectReference } from '../schemas/V1LocalObjectReference';
6
6
  import type { V1ResourceRequirements } from '../schemas/V1ResourceRequirements';
7
- import type { TypesSecret } from '../schemas/TypesSecret';
8
- import type { TypesSecurityContext } from '../schemas/TypesSecurityContext';
7
+ import type { ExperimentSecret } from '../schemas/ExperimentSecret';
8
+ import type { ExperimentSecurityContext } from '../schemas/ExperimentSecurityContext';
9
9
  import type { V1Toleration } from '../schemas/V1Toleration';
10
- export interface TypesHelperConfig {
10
+ export interface ExperimentHelperConfig {
11
11
  annotations?: {
12
12
  [key: string]: string;
13
13
  };
14
14
  args?: string[];
15
15
  command?: string[];
16
- configMaps?: TypesConfigMap[];
16
+ configMaps?: ExperimentConfigMap[];
17
17
  env?: V1EnvVar[];
18
- hostFileVolumes?: TypesHostFile[];
18
+ hostFileVolumes?: ExperimentHostFile[];
19
19
  hostIPC?: boolean;
20
20
  hostNetwork?: boolean;
21
21
  hostPID?: boolean;
@@ -29,7 +29,7 @@ export interface TypesHelperConfig {
29
29
  [key: string]: string;
30
30
  };
31
31
  resources?: V1ResourceRequirements;
32
- secrets?: TypesSecret[];
33
- securityContext?: TypesSecurityContext;
32
+ secrets?: ExperimentSecret[];
33
+ securityContext?: ExperimentSecurityContext;
34
34
  tolerations?: V1Toleration[];
35
35
  }
@@ -1,5 +1,5 @@
1
1
  import type { V1HostPathType } from '../schemas/V1HostPathType';
2
- export interface TypesHostFile {
2
+ export interface ExperimentHostFile {
3
3
  mountPath?: string;
4
4
  name?: string;
5
5
  nodePath?: string;
@@ -1,5 +1,5 @@
1
1
  import type { V1ProjectedVolumeSource } from '../schemas/V1ProjectedVolumeSource';
2
- export interface TypesProjectedVolumes {
2
+ export interface ExperimentProjectedVolumes {
3
3
  mountPath?: string;
4
4
  name?: string;
5
5
  projected?: V1ProjectedVolumeSource;
@@ -1,4 +1,4 @@
1
- export interface TypesSecret {
1
+ export interface ExperimentSecret {
2
2
  defaultMode?: number;
3
3
  mountPath?: string;
4
4
  name?: string;
@@ -1,6 +1,6 @@
1
1
  import type { V1SecurityContext } from '../schemas/V1SecurityContext';
2
2
  import type { V1PodSecurityContext } from '../schemas/V1PodSecurityContext';
3
- export interface TypesSecurityContext {
3
+ export interface ExperimentSecurityContext {
4
4
  containerSecurityContext?: V1SecurityContext;
5
5
  podSecurityContext?: V1PodSecurityContext;
6
6
  }
@@ -0,0 +1,7 @@
1
+ import type { ExperimentWorkload } from '../schemas/ExperimentWorkload';
2
+ export interface ExperimentSelector {
3
+ /**
4
+ * Workloads to store the workloads
5
+ */
6
+ workloads?: ExperimentWorkload[];
7
+ }
@@ -1,11 +1,11 @@
1
1
  import type { V1EnvVar } from '../schemas/V1EnvVar';
2
2
  import type { V1EnvFromSource } from '../schemas/V1EnvFromSource';
3
3
  import type { V1PullPolicy } from '../schemas/V1PullPolicy';
4
- import type { TypesSecret } from '../schemas/TypesSecret';
5
- export interface TypesSidecar {
4
+ import type { ExperimentSecret } from '../schemas/ExperimentSecret';
5
+ export interface ExperimentSidecar {
6
6
  env?: V1EnvVar[];
7
7
  envFrom?: V1EnvFromSource[];
8
8
  image?: string;
9
9
  imagePullPolicy?: V1PullPolicy;
10
- secrets?: TypesSecret[];
10
+ secrets?: ExperimentSecret[];
11
11
  }
@@ -0,0 +1,4 @@
1
+ export interface ExperimentStatusCheckTimeout {
2
+ delay?: number;
3
+ timeout?: number;
4
+ }
@@ -0,0 +1,6 @@
1
+ import type { ExperimentApplication } from '../schemas/ExperimentApplication';
2
+ import type { ExperimentSelector } from '../schemas/ExperimentSelector';
3
+ export interface ExperimentTargets {
4
+ application?: ExperimentApplication;
5
+ selectors?: ExperimentSelector;
6
+ }
@@ -1,9 +1,9 @@
1
- import type { TypesWorkloadKind } from '../schemas/TypesWorkloadKind';
2
- export interface TypesWorkload {
1
+ import type { ExperimentWorkloadKind } from '../schemas/ExperimentWorkloadKind';
2
+ export interface ExperimentWorkload {
3
3
  /**
4
4
  * Kind of the workload
5
5
  */
6
- kind?: TypesWorkloadKind;
6
+ kind?: ExperimentWorkloadKind;
7
7
  /**
8
8
  * Labels of the workload
9
9
  */
@@ -0,0 +1 @@
1
+ export type ExperimentWorkloadKind = 'daemonSet' | 'deployment' | 'deploymentconfig' | 'pod' | 'rollout' | 'statefulset';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "1.1.0",
3
+ "version": "1.4.0",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -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
- }
@@ -1,3 +0,0 @@
1
- export interface ExecutionMachineChaosFaultData {
2
- name?: string;
3
- }
@@ -1,12 +0,0 @@
1
- import type { GithubComWingsSoftwareDdcrPkgTypesChaosInputs } from '../schemas/GithubComWingsSoftwareDdcrPkgTypesChaosInputs';
2
- import type { TypesTargets } from '../schemas/TypesTargets';
3
- export interface GithubComWingsSoftwareDdcrPkgTypesDefinition {
4
- /**
5
- * Chaos to store the chaos inputs
6
- */
7
- chaos?: GithubComWingsSoftwareDdcrPkgTypesChaosInputs;
8
- /**
9
- * Type of the fault
10
- */
11
- targets?: TypesTargets;
12
- }
@@ -1,29 +0,0 @@
1
- import type { TypesConfigMap } from '../schemas/TypesConfigMap';
2
- import type { TypesHelperConfig } from '../schemas/TypesHelperConfig';
3
- import type { TypesHostFile } from '../schemas/TypesHostFile';
4
- import type { V1LocalObjectReference } from '../schemas/V1LocalObjectReference';
5
- import type { TypesProjectedVolumes } from '../schemas/TypesProjectedVolumes';
6
- import type { V1ResourceRequirements } from '../schemas/V1ResourceRequirements';
7
- import type { TypesSecret } from '../schemas/TypesSecret';
8
- import type { TypesSecurityContext } from '../schemas/TypesSecurityContext';
9
- import type { TypesSidecar } from '../schemas/TypesSidecar';
10
- import type { TypesStatusCheckTimeout } from '../schemas/TypesStatusCheckTimeout';
11
- import type { V1Toleration } from '../schemas/V1Toleration';
12
- export interface TypesExperimentComponents {
13
- configMaps?: TypesConfigMap[];
14
- helper?: TypesHelperConfig;
15
- hostFileVolumes?: TypesHostFile[];
16
- hostPID?: boolean;
17
- imagePullSecrets?: V1LocalObjectReference[];
18
- nodeSelector?: {
19
- [key: string]: string;
20
- };
21
- projectedVolumes?: TypesProjectedVolumes[];
22
- resources?: V1ResourceRequirements;
23
- secrets?: TypesSecret[];
24
- securityContext?: TypesSecurityContext;
25
- sidecar?: TypesSidecar[];
26
- statusCheckTimeouts?: TypesStatusCheckTimeout;
27
- terminationGracePeriodSeconds?: number;
28
- tolerations?: V1Toleration[];
29
- }
@@ -1,7 +0,0 @@
1
- import type { TypesWorkload } from '../schemas/TypesWorkload';
2
- export interface TypesSelector {
3
- /**
4
- * Workloads to store the workloads
5
- */
6
- workloads?: TypesWorkload[];
7
- }
@@ -1,4 +0,0 @@
1
- export interface TypesStatusCheckTimeout {
2
- delay?: number;
3
- timeout?: number;
4
- }
@@ -1,6 +0,0 @@
1
- import type { TypesApplication } from '../schemas/TypesApplication';
2
- import type { TypesSelector } from '../schemas/TypesSelector';
3
- export interface TypesTargets {
4
- application?: TypesApplication;
5
- selectors?: TypesSelector;
6
- }
@@ -1 +0,0 @@
1
- export type TypesWorkloadKind = 'daemonSet' | 'deployment' | 'deploymentconfig' | 'pod' | 'rollout' | 'statefulset';