@pulumi/harness 0.16.7 → 0.16.8
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/autostopping/alert.d.ts +2 -2
- package/autostopping/alert.js +2 -2
- package/autostopping/gcpProxy.d.ts +4 -4
- package/autostopping/gcpProxy.js +4 -4
- package/autostopping/ruleEcs.d.ts +4 -4
- package/autostopping/ruleEcs.js +4 -4
- package/autostopping/ruleRds.d.ts +5 -5
- package/autostopping/ruleRds.js +5 -5
- package/autostopping/ruleScaleGroup.d.ts +12 -12
- package/autostopping/ruleScaleGroup.js +12 -12
- package/autostopping/ruleVm.d.ts +22 -22
- package/autostopping/ruleVm.js +22 -22
- package/chaos/actionTemplate.d.ts +55 -55
- package/chaos/actionTemplate.js +55 -55
- package/chaos/experimentTemplate.d.ts +84 -84
- package/chaos/experimentTemplate.js +84 -84
- package/chaos/faultTemplate.d.ts +124 -124
- package/chaos/faultTemplate.js +124 -124
- package/chaos/imageRegistry.d.ts +6 -6
- package/chaos/imageRegistry.js +6 -6
- package/chaos/securityGovernanceCondition.d.ts +19 -19
- package/chaos/securityGovernanceCondition.js +19 -19
- package/chaos/securityGovernanceConditionV3.d.ts +13 -13
- package/chaos/securityGovernanceConditionV3.js +13 -13
- package/chaos/securityGovernanceRule.d.ts +21 -21
- package/chaos/securityGovernanceRule.js +21 -21
- package/chaos/securityGovernanceRuleV3.d.ts +9 -9
- package/chaos/securityGovernanceRuleV3.js +9 -9
- package/cluster/orchestrator.d.ts +1 -1
- package/cluster/orchestrator.js +1 -1
- package/cluster/orchestratorConfig.d.ts +9 -9
- package/cluster/orchestratorConfig.js +9 -9
- package/encryptedText.d.ts +3 -3
- package/encryptedText.js +3 -3
- package/environment.d.ts +7 -7
- package/environment.js +7 -7
- package/infrastructureDefinition.d.ts +13 -13
- package/infrastructureDefinition.js +13 -13
- package/package.json +2 -2
- package/platform/appDynamicsConnector.d.ts +8 -8
- package/platform/appDynamicsConnector.js +8 -8
- package/platform/artifactoryConnector.d.ts +12 -12
- package/platform/artifactoryConnector.js +12 -12
- package/platform/awsCCConnector.d.ts +4 -4
- package/platform/awsCCConnector.js +4 -4
- package/platform/azureCloudCostConnector.d.ts +12 -12
- package/platform/azureCloudCostConnector.js +12 -12
- package/platform/azureCloudProviderConnector.d.ts +31 -31
- package/platform/azureCloudProviderConnector.js +31 -31
- package/platform/bitbucketConnector.d.ts +27 -27
- package/platform/bitbucketConnector.js +27 -27
- package/platform/connectorCustomhealthsource.d.ts +6 -6
- package/platform/connectorCustomhealthsource.js +6 -6
- package/platform/connectorGcpKms.d.ts +15 -15
- package/platform/connectorGcpKms.js +15 -15
- package/platform/connectorRancher.d.ts +3 -3
- package/platform/connectorRancher.js +3 -3
- package/platform/dbSchema.d.ts +32 -32
- package/platform/dbSchema.js +32 -32
- package/platform/elasticsearchConnector.d.ts +8 -8
- package/platform/elasticsearchConnector.js +8 -8
- package/platform/environment.d.ts +11 -11
- package/platform/environment.js +11 -11
- package/platform/environmentClustersMapping.d.ts +6 -6
- package/platform/environmentClustersMapping.js +6 -6
- package/platform/filters.d.ts +4 -4
- package/platform/filters.js +4 -4
- package/platform/gcpCloudCostConnector.d.ts +4 -4
- package/platform/gcpCloudCostConnector.js +4 -4
- package/platform/gcpSecretManagerConnector.d.ts +8 -8
- package/platform/gcpSecretManagerConnector.js +8 -8
- package/platform/getEnvironmentClustersMapping.d.ts +12 -12
- package/platform/getEnvironmentClustersMapping.js +12 -12
- package/platform/getPolicySet.d.ts +8 -8
- package/platform/getPolicySet.js +8 -8
- package/platform/gitOpsAgent.d.ts +4 -4
- package/platform/gitOpsAgent.js +4 -4
- package/platform/gitOpsApplications.d.ts +9 -9
- package/platform/gitOpsApplications.js +9 -9
- package/platform/gitOpsGnupg.d.ts +3 -3
- package/platform/gitOpsGnupg.js +3 -3
- package/platform/gitOpsRepoCert.d.ts +1 -1
- package/platform/gitOpsRepoCert.js +1 -1
- package/platform/gitOpsRepoCred.d.ts +5 -5
- package/platform/gitOpsRepoCred.js +5 -5
- package/platform/gitopsAppProjectMapping.d.ts +12 -0
- package/platform/gitopsAppProjectMapping.d.ts.map +1 -1
- package/platform/gitopsAppProjectMapping.js +2 -0
- package/platform/gitopsAppProjectMapping.js.map +1 -1
- package/platform/gitopsApplicationset.d.ts +59 -59
- package/platform/gitopsApplicationset.js +59 -59
- package/platform/harLifecycleRule.d.ts +20 -20
- package/platform/harLifecycleRule.js +20 -20
- package/platform/harRegistry.d.ts +69 -69
- package/platform/harRegistry.js +69 -69
- package/platform/iacmAnsibleInventory.d.ts +11 -11
- package/platform/iacmAnsibleInventory.js +11 -11
- package/platform/iacmAnsiblePlaybook.d.ts +10 -10
- package/platform/iacmAnsiblePlaybook.js +10 -10
- package/platform/idpScorecard.d.ts +14 -14
- package/platform/idpScorecard.js +14 -14
- package/platform/idpScorecardCheck.d.ts +9 -9
- package/platform/idpScorecardCheck.js +9 -9
- package/platform/infraVariableSet.d.ts +21 -21
- package/platform/infraVariableSet.js +21 -21
- package/platform/infrastructure.d.ts +7 -7
- package/platform/infrastructure.js +7 -7
- package/platform/kubernetesConnector.d.ts +17 -17
- package/platform/kubernetesConnector.js +17 -17
- package/platform/monitoredService.d.ts +123 -123
- package/platform/monitoredService.js +123 -123
- package/platform/notificationRule.d.ts +10 -10
- package/platform/notificationRule.js +10 -10
- package/platform/pipeline.d.ts +9 -9
- package/platform/pipeline.js +9 -9
- package/platform/pipelineCentralNotificationRule.d.ts +22 -22
- package/platform/pipelineCentralNotificationRule.js +22 -22
- package/platform/pipelineFilters.d.ts +43 -43
- package/platform/pipelineFilters.js +43 -43
- package/platform/prometheusConnector.d.ts +6 -6
- package/platform/prometheusConnector.js +6 -6
- package/platform/repo.d.ts +4 -4
- package/platform/repo.js +4 -4
- package/platform/resourceGroup.d.ts +23 -23
- package/platform/resourceGroup.js +23 -23
- package/platform/secretFile.d.ts +10 -10
- package/platform/secretFile.js +10 -10
- package/platform/secretText.d.ts +13 -13
- package/platform/secretText.js +13 -13
- package/platform/secretWinrm.d.ts +89 -89
- package/platform/secretWinrm.js +89 -89
- package/platform/service.d.ts +10 -10
- package/platform/service.js +10 -10
- package/platform/slo.d.ts +17 -17
- package/platform/slo.js +17 -17
- package/platform/splunkConnector.d.ts +11 -11
- package/platform/splunkConnector.js +11 -11
- package/platform/templateFilters.d.ts +4 -4
- package/platform/templateFilters.js +4 -4
- package/platform/usergroup.d.ts +21 -21
- package/platform/usergroup.js +21 -21
- package/platform/variables.d.ts +4 -4
- package/platform/variables.js +4 -4
- package/platform/workspace.d.ts +32 -32
- package/platform/workspace.js +32 -32
- package/platformCcmFilters.d.ts +4 -4
- package/platformCcmFilters.js +4 -4
- package/service/discoveryAgent.d.ts +62 -62
- package/service/discoveryAgent.js +62 -62
- package/service/discoverySetting.d.ts +2 -2
- package/service/discoverySetting.js +2 -2
- package/service/kubernetes.d.ts +4 -4
- package/service/kubernetes.js +4 -4
- package/sshCredential.d.ts +3 -3
- package/sshCredential.js +3 -3
- package/userGroup.d.ts +6 -6
- package/userGroup.js +6 -6
package/autostopping/alert.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ import * as outputs from "../types/output";
|
|
|
11
11
|
* import * as harness from "@pulumi/harness";
|
|
12
12
|
*
|
|
13
13
|
* const specific_rule_alert = new harness.autostopping.Alert("specific-rule-alert", {
|
|
14
|
-
* name: "demo-alert",
|
|
15
14
|
* recipients: {
|
|
16
15
|
* emails: [
|
|
17
16
|
* "user1@example.com",
|
|
@@ -22,6 +21,7 @@ import * as outputs from "../types/output";
|
|
|
22
21
|
* "slack-web-hook-2",
|
|
23
22
|
* ],
|
|
24
23
|
* },
|
|
24
|
+
* name: "demo-alert",
|
|
25
25
|
* events: [
|
|
26
26
|
* "autostopping_rule_created",
|
|
27
27
|
* "autostopping_rule_updated",
|
|
@@ -32,7 +32,6 @@ import * as outputs from "../types/output";
|
|
|
32
32
|
* ruleIdLists: [1234],
|
|
33
33
|
* });
|
|
34
34
|
* const all_rule_alert = new harness.autostopping.Alert("all-rule-alert", {
|
|
35
|
-
* name: "demo-alert",
|
|
36
35
|
* recipients: {
|
|
37
36
|
* emails: [
|
|
38
37
|
* "user1@example.com",
|
|
@@ -43,6 +42,7 @@ import * as outputs from "../types/output";
|
|
|
43
42
|
* "slack-web-hook-2",
|
|
44
43
|
* ],
|
|
45
44
|
* },
|
|
45
|
+
* name: "demo-alert",
|
|
46
46
|
* events: [
|
|
47
47
|
* "autostopping_rule_created",
|
|
48
48
|
* "autostopping_rule_updated",
|
package/autostopping/alert.js
CHANGED
|
@@ -38,7 +38,6 @@ const utilities = __importStar(require("../utilities"));
|
|
|
38
38
|
* import * as harness from "@pulumi/harness";
|
|
39
39
|
*
|
|
40
40
|
* const specific_rule_alert = new harness.autostopping.Alert("specific-rule-alert", {
|
|
41
|
-
* name: "demo-alert",
|
|
42
41
|
* recipients: {
|
|
43
42
|
* emails: [
|
|
44
43
|
* "user1@example.com",
|
|
@@ -49,6 +48,7 @@ const utilities = __importStar(require("../utilities"));
|
|
|
49
48
|
* "slack-web-hook-2",
|
|
50
49
|
* ],
|
|
51
50
|
* },
|
|
51
|
+
* name: "demo-alert",
|
|
52
52
|
* events: [
|
|
53
53
|
* "autostopping_rule_created",
|
|
54
54
|
* "autostopping_rule_updated",
|
|
@@ -59,7 +59,6 @@ const utilities = __importStar(require("../utilities"));
|
|
|
59
59
|
* ruleIdLists: [1234],
|
|
60
60
|
* });
|
|
61
61
|
* const all_rule_alert = new harness.autostopping.Alert("all-rule-alert", {
|
|
62
|
-
* name: "demo-alert",
|
|
63
62
|
* recipients: {
|
|
64
63
|
* emails: [
|
|
65
64
|
* "user1@example.com",
|
|
@@ -70,6 +69,7 @@ const utilities = __importStar(require("../utilities"));
|
|
|
70
69
|
* "slack-web-hook-2",
|
|
71
70
|
* ],
|
|
72
71
|
* },
|
|
72
|
+
* name: "demo-alert",
|
|
73
73
|
* events: [
|
|
74
74
|
* "autostopping_rule_created",
|
|
75
75
|
* "autostopping_rule_updated",
|
|
@@ -11,6 +11,10 @@ import * as outputs from "../types/output";
|
|
|
11
11
|
* import * as harness from "@pulumi/harness";
|
|
12
12
|
*
|
|
13
13
|
* const test = new harness.autostopping.GcpProxy("test", {
|
|
14
|
+
* certificates: {
|
|
15
|
+
* keySecretId: "projects/project_id/secrets/secret_id/versions/1",
|
|
16
|
+
* certSecretId: "projects/project_id/secrets/secret_id/versions/1",
|
|
17
|
+
* },
|
|
14
18
|
* name: "name",
|
|
15
19
|
* cloudConnectorId: "cloud_connector_id",
|
|
16
20
|
* region: "region",
|
|
@@ -21,10 +25,6 @@ import * as outputs from "../types/output";
|
|
|
21
25
|
* subnetId: "https://www.googleapis.com/compute/v1/projects/project_id/regions/region/subnetworks/subnet_name",
|
|
22
26
|
* apiKey: "",
|
|
23
27
|
* allocateStaticIp: false,
|
|
24
|
-
* certificates: {
|
|
25
|
-
* keySecretId: "projects/project_id/secrets/secret_id/versions/1",
|
|
26
|
-
* certSecretId: "projects/project_id/secrets/secret_id/versions/1",
|
|
27
|
-
* },
|
|
28
28
|
* deleteCloudResourcesOnDestroy: false,
|
|
29
29
|
* });
|
|
30
30
|
* ```
|
package/autostopping/gcpProxy.js
CHANGED
|
@@ -38,6 +38,10 @@ const utilities = __importStar(require("../utilities"));
|
|
|
38
38
|
* import * as harness from "@pulumi/harness";
|
|
39
39
|
*
|
|
40
40
|
* const test = new harness.autostopping.GcpProxy("test", {
|
|
41
|
+
* certificates: {
|
|
42
|
+
* keySecretId: "projects/project_id/secrets/secret_id/versions/1",
|
|
43
|
+
* certSecretId: "projects/project_id/secrets/secret_id/versions/1",
|
|
44
|
+
* },
|
|
41
45
|
* name: "name",
|
|
42
46
|
* cloudConnectorId: "cloud_connector_id",
|
|
43
47
|
* region: "region",
|
|
@@ -48,10 +52,6 @@ const utilities = __importStar(require("../utilities"));
|
|
|
48
52
|
* subnetId: "https://www.googleapis.com/compute/v1/projects/project_id/regions/region/subnetworks/subnet_name",
|
|
49
53
|
* apiKey: "",
|
|
50
54
|
* allocateStaticIp: false,
|
|
51
|
-
* certificates: {
|
|
52
|
-
* keySecretId: "projects/project_id/secrets/secret_id/versions/1",
|
|
53
|
-
* certSecretId: "projects/project_id/secrets/secret_id/versions/1",
|
|
54
|
-
* },
|
|
55
55
|
* deleteCloudResourcesOnDestroy: false,
|
|
56
56
|
* });
|
|
57
57
|
* ```
|
|
@@ -11,10 +11,6 @@ import * as outputs from "../types/output";
|
|
|
11
11
|
* import * as harness from "@pulumi/harness";
|
|
12
12
|
*
|
|
13
13
|
* const test = new harness.autostopping.RuleEcs("test", {
|
|
14
|
-
* name: "name",
|
|
15
|
-
* cloudConnectorId: "cloud_connector_id",
|
|
16
|
-
* idleTimeMins: 10,
|
|
17
|
-
* dryRun: true,
|
|
18
14
|
* container: {
|
|
19
15
|
* cluster: "cluster",
|
|
20
16
|
* service: "service",
|
|
@@ -25,6 +21,10 @@ import * as outputs from "../types/output";
|
|
|
25
21
|
* ruleId: 24576,
|
|
26
22
|
* delayInSec: 5,
|
|
27
23
|
* }],
|
|
24
|
+
* name: "name",
|
|
25
|
+
* cloudConnectorId: "cloud_connector_id",
|
|
26
|
+
* idleTimeMins: 10,
|
|
27
|
+
* dryRun: true,
|
|
28
28
|
* });
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
package/autostopping/ruleEcs.js
CHANGED
|
@@ -38,10 +38,6 @@ const utilities = __importStar(require("../utilities"));
|
|
|
38
38
|
* import * as harness from "@pulumi/harness";
|
|
39
39
|
*
|
|
40
40
|
* const test = new harness.autostopping.RuleEcs("test", {
|
|
41
|
-
* name: "name",
|
|
42
|
-
* cloudConnectorId: "cloud_connector_id",
|
|
43
|
-
* idleTimeMins: 10,
|
|
44
|
-
* dryRun: true,
|
|
45
41
|
* container: {
|
|
46
42
|
* cluster: "cluster",
|
|
47
43
|
* service: "service",
|
|
@@ -52,6 +48,10 @@ const utilities = __importStar(require("../utilities"));
|
|
|
52
48
|
* ruleId: 24576,
|
|
53
49
|
* delayInSec: 5,
|
|
54
50
|
* }],
|
|
51
|
+
* name: "name",
|
|
52
|
+
* cloudConnectorId: "cloud_connector_id",
|
|
53
|
+
* idleTimeMins: 10,
|
|
54
|
+
* dryRun: true,
|
|
55
55
|
* });
|
|
56
56
|
* ```
|
|
57
57
|
*/
|
|
@@ -11,20 +11,20 @@ import * as outputs from "../types/output";
|
|
|
11
11
|
* import * as harness from "@pulumi/harness";
|
|
12
12
|
*
|
|
13
13
|
* const test = new harness.autostopping.RuleRds("test", {
|
|
14
|
-
* name: "name",
|
|
15
|
-
* cloudConnectorId: "cloud_connector_id",
|
|
16
|
-
* idleTimeMins: 10,
|
|
17
|
-
* dryRun: true,
|
|
18
14
|
* database: {
|
|
19
15
|
* id: "database_id",
|
|
20
16
|
* region: "region",
|
|
21
17
|
* },
|
|
22
18
|
* tcps: [{
|
|
23
|
-
* proxyId: "proxy_id",
|
|
24
19
|
* forwardRules: [{
|
|
25
20
|
* port: 2233,
|
|
26
21
|
* }],
|
|
22
|
+
* proxyId: "proxy_id",
|
|
27
23
|
* }],
|
|
24
|
+
* name: "name",
|
|
25
|
+
* cloudConnectorId: "cloud_connector_id",
|
|
26
|
+
* idleTimeMins: 10,
|
|
27
|
+
* dryRun: true,
|
|
28
28
|
* });
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
package/autostopping/ruleRds.js
CHANGED
|
@@ -38,20 +38,20 @@ const utilities = __importStar(require("../utilities"));
|
|
|
38
38
|
* import * as harness from "@pulumi/harness";
|
|
39
39
|
*
|
|
40
40
|
* const test = new harness.autostopping.RuleRds("test", {
|
|
41
|
-
* name: "name",
|
|
42
|
-
* cloudConnectorId: "cloud_connector_id",
|
|
43
|
-
* idleTimeMins: 10,
|
|
44
|
-
* dryRun: true,
|
|
45
41
|
* database: {
|
|
46
42
|
* id: "database_id",
|
|
47
43
|
* region: "region",
|
|
48
44
|
* },
|
|
49
45
|
* tcps: [{
|
|
50
|
-
* proxyId: "proxy_id",
|
|
51
46
|
* forwardRules: [{
|
|
52
47
|
* port: 2233,
|
|
53
48
|
* }],
|
|
49
|
+
* proxyId: "proxy_id",
|
|
54
50
|
* }],
|
|
51
|
+
* name: "name",
|
|
52
|
+
* cloudConnectorId: "cloud_connector_id",
|
|
53
|
+
* idleTimeMins: 10,
|
|
54
|
+
* dryRun: true,
|
|
55
55
|
* });
|
|
56
56
|
* ```
|
|
57
57
|
*/
|
|
@@ -11,10 +11,6 @@ import * as outputs from "../types/output";
|
|
|
11
11
|
* import * as harness from "@pulumi/harness";
|
|
12
12
|
*
|
|
13
13
|
* const test = new harness.autostopping.RuleScaleGroup("test", {
|
|
14
|
-
* name: "test",
|
|
15
|
-
* cloudConnectorId: "test-connector",
|
|
16
|
-
* idleTimeMins: 5,
|
|
17
|
-
* customDomains: ["app.example.com"],
|
|
18
14
|
* scaleGroup: {
|
|
19
15
|
* id: "asg-arn",
|
|
20
16
|
* name: "asg-name",
|
|
@@ -25,14 +21,6 @@ import * as outputs from "../types/output";
|
|
|
25
21
|
* onDemand: 1,
|
|
26
22
|
* },
|
|
27
23
|
* https: [{
|
|
28
|
-
* proxyId: "lb-id",
|
|
29
|
-
* routings: [{
|
|
30
|
-
* sourceProtocol: "http",
|
|
31
|
-
* sourcePort: 80,
|
|
32
|
-
* action: "forward",
|
|
33
|
-
* targetProtocol: "http",
|
|
34
|
-
* targetPort: 80,
|
|
35
|
-
* }],
|
|
36
24
|
* healths: [{
|
|
37
25
|
* protocol: "http",
|
|
38
26
|
* port: 80,
|
|
@@ -41,7 +29,19 @@ import * as outputs from "../types/output";
|
|
|
41
29
|
* statusCodeFrom: 200,
|
|
42
30
|
* statusCodeTo: 299,
|
|
43
31
|
* }],
|
|
32
|
+
* routings: [{
|
|
33
|
+
* sourceProtocol: "http",
|
|
34
|
+
* sourcePort: 80,
|
|
35
|
+
* action: "forward",
|
|
36
|
+
* targetProtocol: "http",
|
|
37
|
+
* targetPort: 80,
|
|
38
|
+
* }],
|
|
39
|
+
* proxyId: "lb-id",
|
|
44
40
|
* }],
|
|
41
|
+
* name: "test",
|
|
42
|
+
* cloudConnectorId: "test-connector",
|
|
43
|
+
* idleTimeMins: 5,
|
|
44
|
+
* customDomains: ["app.example.com"],
|
|
45
45
|
* });
|
|
46
46
|
* ```
|
|
47
47
|
*/
|
|
@@ -38,10 +38,6 @@ const utilities = __importStar(require("../utilities"));
|
|
|
38
38
|
* import * as harness from "@pulumi/harness";
|
|
39
39
|
*
|
|
40
40
|
* const test = new harness.autostopping.RuleScaleGroup("test", {
|
|
41
|
-
* name: "test",
|
|
42
|
-
* cloudConnectorId: "test-connector",
|
|
43
|
-
* idleTimeMins: 5,
|
|
44
|
-
* customDomains: ["app.example.com"],
|
|
45
41
|
* scaleGroup: {
|
|
46
42
|
* id: "asg-arn",
|
|
47
43
|
* name: "asg-name",
|
|
@@ -52,14 +48,6 @@ const utilities = __importStar(require("../utilities"));
|
|
|
52
48
|
* onDemand: 1,
|
|
53
49
|
* },
|
|
54
50
|
* https: [{
|
|
55
|
-
* proxyId: "lb-id",
|
|
56
|
-
* routings: [{
|
|
57
|
-
* sourceProtocol: "http",
|
|
58
|
-
* sourcePort: 80,
|
|
59
|
-
* action: "forward",
|
|
60
|
-
* targetProtocol: "http",
|
|
61
|
-
* targetPort: 80,
|
|
62
|
-
* }],
|
|
63
51
|
* healths: [{
|
|
64
52
|
* protocol: "http",
|
|
65
53
|
* port: 80,
|
|
@@ -68,7 +56,19 @@ const utilities = __importStar(require("../utilities"));
|
|
|
68
56
|
* statusCodeFrom: 200,
|
|
69
57
|
* statusCodeTo: 299,
|
|
70
58
|
* }],
|
|
59
|
+
* routings: [{
|
|
60
|
+
* sourceProtocol: "http",
|
|
61
|
+
* sourcePort: 80,
|
|
62
|
+
* action: "forward",
|
|
63
|
+
* targetProtocol: "http",
|
|
64
|
+
* targetPort: 80,
|
|
65
|
+
* }],
|
|
66
|
+
* proxyId: "lb-id",
|
|
71
67
|
* }],
|
|
68
|
+
* name: "test",
|
|
69
|
+
* cloudConnectorId: "test-connector",
|
|
70
|
+
* idleTimeMins: 5,
|
|
71
|
+
* customDomains: ["app.example.com"],
|
|
72
72
|
* });
|
|
73
73
|
* ```
|
|
74
74
|
*/
|
package/autostopping/ruleVm.d.ts
CHANGED
|
@@ -11,16 +11,23 @@ import * as outputs from "../types/output";
|
|
|
11
11
|
* import * as harness from "@pulumi/harness";
|
|
12
12
|
*
|
|
13
13
|
* const test = new harness.autostopping.RuleVm("test", {
|
|
14
|
-
* name: "name",
|
|
15
|
-
* cloudConnectorId: "cloud_connector_id",
|
|
16
|
-
* idleTimeMins: 10,
|
|
17
|
-
* dryRun: true,
|
|
18
14
|
* filter: {
|
|
19
15
|
* vmIds: ["/subscriptions/subscription_id/resourceGroups/resource_group/providers/Microsoft.Compute/virtualMachines/virtual_machine"],
|
|
20
16
|
* regions: ["useast2"],
|
|
21
17
|
* },
|
|
18
|
+
* depends: [{
|
|
19
|
+
* ruleId: 24576,
|
|
20
|
+
* delayInSec: 5,
|
|
21
|
+
* }],
|
|
22
22
|
* https: [{
|
|
23
|
-
*
|
|
23
|
+
* healths: [{
|
|
24
|
+
* protocol: "http",
|
|
25
|
+
* port: 80,
|
|
26
|
+
* path: "/",
|
|
27
|
+
* timeout: 30,
|
|
28
|
+
* statusCodeFrom: 200,
|
|
29
|
+
* statusCodeTo: 299,
|
|
30
|
+
* }],
|
|
24
31
|
* routings: [
|
|
25
32
|
* {
|
|
26
33
|
* sourceProtocol: "https",
|
|
@@ -37,31 +44,24 @@ import * as outputs from "../types/output";
|
|
|
37
44
|
* action: "forward",
|
|
38
45
|
* },
|
|
39
46
|
* ],
|
|
40
|
-
*
|
|
41
|
-
* protocol: "http",
|
|
42
|
-
* port: 80,
|
|
43
|
-
* path: "/",
|
|
44
|
-
* timeout: 30,
|
|
45
|
-
* statusCodeFrom: 200,
|
|
46
|
-
* statusCodeTo: 299,
|
|
47
|
-
* }],
|
|
47
|
+
* proxyId: "proxy_id",
|
|
48
48
|
* }],
|
|
49
49
|
* tcps: [{
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
* port: 22,
|
|
50
|
+
* forwardRules: [{
|
|
51
|
+
* port: 2233,
|
|
53
52
|
* }],
|
|
54
53
|
* rdps: [{
|
|
55
54
|
* port: 3389,
|
|
56
55
|
* }],
|
|
57
|
-
*
|
|
58
|
-
* port:
|
|
56
|
+
* sshes: [{
|
|
57
|
+
* port: 22,
|
|
59
58
|
* }],
|
|
59
|
+
* proxyId: "proxy_id",
|
|
60
60
|
* }],
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
61
|
+
* name: "name",
|
|
62
|
+
* cloudConnectorId: "cloud_connector_id",
|
|
63
|
+
* idleTimeMins: 10,
|
|
64
|
+
* dryRun: true,
|
|
65
65
|
* });
|
|
66
66
|
* ```
|
|
67
67
|
*/
|
package/autostopping/ruleVm.js
CHANGED
|
@@ -38,16 +38,23 @@ const utilities = __importStar(require("../utilities"));
|
|
|
38
38
|
* import * as harness from "@pulumi/harness";
|
|
39
39
|
*
|
|
40
40
|
* const test = new harness.autostopping.RuleVm("test", {
|
|
41
|
-
* name: "name",
|
|
42
|
-
* cloudConnectorId: "cloud_connector_id",
|
|
43
|
-
* idleTimeMins: 10,
|
|
44
|
-
* dryRun: true,
|
|
45
41
|
* filter: {
|
|
46
42
|
* vmIds: ["/subscriptions/subscription_id/resourceGroups/resource_group/providers/Microsoft.Compute/virtualMachines/virtual_machine"],
|
|
47
43
|
* regions: ["useast2"],
|
|
48
44
|
* },
|
|
45
|
+
* depends: [{
|
|
46
|
+
* ruleId: 24576,
|
|
47
|
+
* delayInSec: 5,
|
|
48
|
+
* }],
|
|
49
49
|
* https: [{
|
|
50
|
-
*
|
|
50
|
+
* healths: [{
|
|
51
|
+
* protocol: "http",
|
|
52
|
+
* port: 80,
|
|
53
|
+
* path: "/",
|
|
54
|
+
* timeout: 30,
|
|
55
|
+
* statusCodeFrom: 200,
|
|
56
|
+
* statusCodeTo: 299,
|
|
57
|
+
* }],
|
|
51
58
|
* routings: [
|
|
52
59
|
* {
|
|
53
60
|
* sourceProtocol: "https",
|
|
@@ -64,31 +71,24 @@ const utilities = __importStar(require("../utilities"));
|
|
|
64
71
|
* action: "forward",
|
|
65
72
|
* },
|
|
66
73
|
* ],
|
|
67
|
-
*
|
|
68
|
-
* protocol: "http",
|
|
69
|
-
* port: 80,
|
|
70
|
-
* path: "/",
|
|
71
|
-
* timeout: 30,
|
|
72
|
-
* statusCodeFrom: 200,
|
|
73
|
-
* statusCodeTo: 299,
|
|
74
|
-
* }],
|
|
74
|
+
* proxyId: "proxy_id",
|
|
75
75
|
* }],
|
|
76
76
|
* tcps: [{
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
* port: 22,
|
|
77
|
+
* forwardRules: [{
|
|
78
|
+
* port: 2233,
|
|
80
79
|
* }],
|
|
81
80
|
* rdps: [{
|
|
82
81
|
* port: 3389,
|
|
83
82
|
* }],
|
|
84
|
-
*
|
|
85
|
-
* port:
|
|
83
|
+
* sshes: [{
|
|
84
|
+
* port: 22,
|
|
86
85
|
* }],
|
|
86
|
+
* proxyId: "proxy_id",
|
|
87
87
|
* }],
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
88
|
+
* name: "name",
|
|
89
|
+
* cloudConnectorId: "cloud_connector_id",
|
|
90
|
+
* idleTimeMins: 10,
|
|
91
|
+
* dryRun: true,
|
|
92
92
|
* });
|
|
93
93
|
* ```
|
|
94
94
|
*/
|
|
@@ -40,20 +40,27 @@ import * as outputs from "../types/output";
|
|
|
40
40
|
* // ----------------------------------------------------------------------------
|
|
41
41
|
* // Most common pattern: container action with runtime inputs and defaults
|
|
42
42
|
* const containerWithRuntimeInputs = new harness.chaos.ActionTemplate("container_with_runtime_inputs", {
|
|
43
|
-
* orgId: _this.id,
|
|
44
|
-
* projectId: thisHarnessPlatformProject.id,
|
|
45
|
-
* hubIdentity: projectLevel.identity,
|
|
46
|
-
* identity: "container-action-template",
|
|
47
|
-
* name: "Container Action Template",
|
|
48
|
-
* description: "Container action with runtime inputs and defaults",
|
|
49
|
-
* type: "container",
|
|
50
|
-
* infrastructureType: "<+input>.default('Kubernetes')",
|
|
51
|
-
* tags: [
|
|
52
|
-
* "container",
|
|
53
|
-
* "kubernetes",
|
|
54
|
-
* "runtime-inputs",
|
|
55
|
-
* ],
|
|
56
43
|
* containerAction: {
|
|
44
|
+
* resources: {
|
|
45
|
+
* limits: {
|
|
46
|
+
* cpu: "500m",
|
|
47
|
+
* memory: "512Mi",
|
|
48
|
+
* },
|
|
49
|
+
* requests: {
|
|
50
|
+
* cpu: "250m",
|
|
51
|
+
* memory: "256Mi",
|
|
52
|
+
* },
|
|
53
|
+
* },
|
|
54
|
+
* envs: [
|
|
55
|
+
* {
|
|
56
|
+
* name: "TEST_VAR",
|
|
57
|
+
* value: "<+input>.default('test_value')",
|
|
58
|
+
* },
|
|
59
|
+
* {
|
|
60
|
+
* name: "ANOTHER_VAR",
|
|
61
|
+
* value: "<+input>.default('another_value')",
|
|
62
|
+
* },
|
|
63
|
+
* ],
|
|
57
64
|
* image: "<+input>.default('busybox:latest')",
|
|
58
65
|
* commands: ["<+input>.default('sh')"],
|
|
59
66
|
* args: "echo 'Running container action'; sleep 15",
|
|
@@ -71,26 +78,6 @@ import * as outputs from "../types/output";
|
|
|
71
78
|
* description: "Chaos container action",
|
|
72
79
|
* owner: "chaos-team",
|
|
73
80
|
* },
|
|
74
|
-
* envs: [
|
|
75
|
-
* {
|
|
76
|
-
* name: "TEST_VAR",
|
|
77
|
-
* value: "<+input>.default('test_value')",
|
|
78
|
-
* },
|
|
79
|
-
* {
|
|
80
|
-
* name: "ANOTHER_VAR",
|
|
81
|
-
* value: "<+input>.default('another_value')",
|
|
82
|
-
* },
|
|
83
|
-
* ],
|
|
84
|
-
* resources: {
|
|
85
|
-
* limits: {
|
|
86
|
-
* cpu: "500m",
|
|
87
|
-
* memory: "512Mi",
|
|
88
|
-
* },
|
|
89
|
-
* requests: {
|
|
90
|
-
* cpu: "250m",
|
|
91
|
-
* memory: "256Mi",
|
|
92
|
-
* },
|
|
93
|
-
* },
|
|
94
81
|
* },
|
|
95
82
|
* runProperties: {
|
|
96
83
|
* timeout: "<+input>.default('60s')",
|
|
@@ -112,6 +99,19 @@ import * as outputs from "../types/output";
|
|
|
112
99
|
* description: "Kubernetes namespace (runtime input)",
|
|
113
100
|
* },
|
|
114
101
|
* ],
|
|
102
|
+
* orgId: _this.id,
|
|
103
|
+
* projectId: thisHarnessPlatformProject.id,
|
|
104
|
+
* hubIdentity: projectLevel.identity,
|
|
105
|
+
* identity: "container-action-template",
|
|
106
|
+
* name: "Container Action Template",
|
|
107
|
+
* description: "Container action with runtime inputs and defaults",
|
|
108
|
+
* type: "container",
|
|
109
|
+
* infrastructureType: "<+input>.default('Kubernetes')",
|
|
110
|
+
* tags: [
|
|
111
|
+
* "container",
|
|
112
|
+
* "kubernetes",
|
|
113
|
+
* "runtime-inputs",
|
|
114
|
+
* ],
|
|
115
115
|
* }, {
|
|
116
116
|
* dependsOn: [projectLevel],
|
|
117
117
|
* });
|
|
@@ -120,6 +120,12 @@ import * as outputs from "../types/output";
|
|
|
120
120
|
* // ----------------------------------------------------------------------------
|
|
121
121
|
* // Delay action for adding wait time in experiments
|
|
122
122
|
* const delayAction = new harness.chaos.ActionTemplate("delay_action", {
|
|
123
|
+
* delayAction: {
|
|
124
|
+
* duration: "<+input>.default('30s')",
|
|
125
|
+
* },
|
|
126
|
+
* runProperties: {
|
|
127
|
+
* timeout: "60s",
|
|
128
|
+
* },
|
|
123
129
|
* orgId: _this.id,
|
|
124
130
|
* projectId: thisHarnessPlatformProject.id,
|
|
125
131
|
* hubIdentity: projectLevel.identity,
|
|
@@ -132,12 +138,6 @@ import * as outputs from "../types/output";
|
|
|
132
138
|
* "delay",
|
|
133
139
|
* "wait",
|
|
134
140
|
* ],
|
|
135
|
-
* delayAction: {
|
|
136
|
-
* duration: "<+input>.default('30s')",
|
|
137
|
-
* },
|
|
138
|
-
* runProperties: {
|
|
139
|
-
* timeout: "60s",
|
|
140
|
-
* },
|
|
141
141
|
* }, {
|
|
142
142
|
* dependsOn: [projectLevel],
|
|
143
143
|
* });
|
|
@@ -146,19 +146,11 @@ import * as outputs from "../types/output";
|
|
|
146
146
|
* // ----------------------------------------------------------------------------
|
|
147
147
|
* // Custom script action for flexible operations
|
|
148
148
|
* const scriptAction = new harness.chaos.ActionTemplate("script_action", {
|
|
149
|
-
* orgId: _this.id,
|
|
150
|
-
* projectId: thisHarnessPlatformProject.id,
|
|
151
|
-
* hubIdentity: projectLevel.identity,
|
|
152
|
-
* identity: "script-action-template",
|
|
153
|
-
* name: "Script Action Template",
|
|
154
|
-
* description: "Custom script action for chaos operations",
|
|
155
|
-
* type: "script",
|
|
156
|
-
* infrastructureType: "<+input>.default('Kubernetes')",
|
|
157
|
-
* tags: [
|
|
158
|
-
* "script",
|
|
159
|
-
* "custom",
|
|
160
|
-
* ],
|
|
161
149
|
* customScriptAction: {
|
|
150
|
+
* envs: [{
|
|
151
|
+
* name: "TARGET",
|
|
152
|
+
* value: "<+input>.default('default-target')",
|
|
153
|
+
* }],
|
|
162
154
|
* script: `#!/bin/bash
|
|
163
155
|
* echo \\"Running custom chaos script\\"
|
|
164
156
|
* echo \\"Target: <+input>\\"
|
|
@@ -166,10 +158,6 @@ import * as outputs from "../types/output";
|
|
|
166
158
|
* echo \\"Script completed\\"
|
|
167
159
|
* `,
|
|
168
160
|
* shell: "bash",
|
|
169
|
-
* envs: [{
|
|
170
|
-
* name: "TARGET",
|
|
171
|
-
* value: "<+input>.default('default-target')",
|
|
172
|
-
* }],
|
|
173
161
|
* },
|
|
174
162
|
* runProperties: {
|
|
175
163
|
* timeout: "<+input>.default('120s')",
|
|
@@ -182,6 +170,18 @@ import * as outputs from "../types/output";
|
|
|
182
170
|
* required: true,
|
|
183
171
|
* description: "Target resource for the script",
|
|
184
172
|
* }],
|
|
173
|
+
* orgId: _this.id,
|
|
174
|
+
* projectId: thisHarnessPlatformProject.id,
|
|
175
|
+
* hubIdentity: projectLevel.identity,
|
|
176
|
+
* identity: "script-action-template",
|
|
177
|
+
* name: "Script Action Template",
|
|
178
|
+
* description: "Custom script action for chaos operations",
|
|
179
|
+
* type: "script",
|
|
180
|
+
* infrastructureType: "<+input>.default('Kubernetes')",
|
|
181
|
+
* tags: [
|
|
182
|
+
* "script",
|
|
183
|
+
* "custom",
|
|
184
|
+
* ],
|
|
185
185
|
* }, {
|
|
186
186
|
* dependsOn: [projectLevel],
|
|
187
187
|
* });
|