@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.
Files changed (157) hide show
  1. package/autostopping/alert.d.ts +2 -2
  2. package/autostopping/alert.js +2 -2
  3. package/autostopping/gcpProxy.d.ts +4 -4
  4. package/autostopping/gcpProxy.js +4 -4
  5. package/autostopping/ruleEcs.d.ts +4 -4
  6. package/autostopping/ruleEcs.js +4 -4
  7. package/autostopping/ruleRds.d.ts +5 -5
  8. package/autostopping/ruleRds.js +5 -5
  9. package/autostopping/ruleScaleGroup.d.ts +12 -12
  10. package/autostopping/ruleScaleGroup.js +12 -12
  11. package/autostopping/ruleVm.d.ts +22 -22
  12. package/autostopping/ruleVm.js +22 -22
  13. package/chaos/actionTemplate.d.ts +55 -55
  14. package/chaos/actionTemplate.js +55 -55
  15. package/chaos/experimentTemplate.d.ts +84 -84
  16. package/chaos/experimentTemplate.js +84 -84
  17. package/chaos/faultTemplate.d.ts +124 -124
  18. package/chaos/faultTemplate.js +124 -124
  19. package/chaos/imageRegistry.d.ts +6 -6
  20. package/chaos/imageRegistry.js +6 -6
  21. package/chaos/securityGovernanceCondition.d.ts +19 -19
  22. package/chaos/securityGovernanceCondition.js +19 -19
  23. package/chaos/securityGovernanceConditionV3.d.ts +13 -13
  24. package/chaos/securityGovernanceConditionV3.js +13 -13
  25. package/chaos/securityGovernanceRule.d.ts +21 -21
  26. package/chaos/securityGovernanceRule.js +21 -21
  27. package/chaos/securityGovernanceRuleV3.d.ts +9 -9
  28. package/chaos/securityGovernanceRuleV3.js +9 -9
  29. package/cluster/orchestrator.d.ts +1 -1
  30. package/cluster/orchestrator.js +1 -1
  31. package/cluster/orchestratorConfig.d.ts +9 -9
  32. package/cluster/orchestratorConfig.js +9 -9
  33. package/encryptedText.d.ts +3 -3
  34. package/encryptedText.js +3 -3
  35. package/environment.d.ts +7 -7
  36. package/environment.js +7 -7
  37. package/infrastructureDefinition.d.ts +13 -13
  38. package/infrastructureDefinition.js +13 -13
  39. package/package.json +2 -2
  40. package/platform/appDynamicsConnector.d.ts +8 -8
  41. package/platform/appDynamicsConnector.js +8 -8
  42. package/platform/artifactoryConnector.d.ts +12 -12
  43. package/platform/artifactoryConnector.js +12 -12
  44. package/platform/awsCCConnector.d.ts +4 -4
  45. package/platform/awsCCConnector.js +4 -4
  46. package/platform/azureCloudCostConnector.d.ts +12 -12
  47. package/platform/azureCloudCostConnector.js +12 -12
  48. package/platform/azureCloudProviderConnector.d.ts +31 -31
  49. package/platform/azureCloudProviderConnector.js +31 -31
  50. package/platform/bitbucketConnector.d.ts +27 -27
  51. package/platform/bitbucketConnector.js +27 -27
  52. package/platform/connectorCustomhealthsource.d.ts +6 -6
  53. package/platform/connectorCustomhealthsource.js +6 -6
  54. package/platform/connectorGcpKms.d.ts +15 -15
  55. package/platform/connectorGcpKms.js +15 -15
  56. package/platform/connectorRancher.d.ts +3 -3
  57. package/platform/connectorRancher.js +3 -3
  58. package/platform/dbSchema.d.ts +32 -32
  59. package/platform/dbSchema.js +32 -32
  60. package/platform/elasticsearchConnector.d.ts +8 -8
  61. package/platform/elasticsearchConnector.js +8 -8
  62. package/platform/environment.d.ts +11 -11
  63. package/platform/environment.js +11 -11
  64. package/platform/environmentClustersMapping.d.ts +6 -6
  65. package/platform/environmentClustersMapping.js +6 -6
  66. package/platform/filters.d.ts +4 -4
  67. package/platform/filters.js +4 -4
  68. package/platform/gcpCloudCostConnector.d.ts +4 -4
  69. package/platform/gcpCloudCostConnector.js +4 -4
  70. package/platform/gcpSecretManagerConnector.d.ts +8 -8
  71. package/platform/gcpSecretManagerConnector.js +8 -8
  72. package/platform/getEnvironmentClustersMapping.d.ts +12 -12
  73. package/platform/getEnvironmentClustersMapping.js +12 -12
  74. package/platform/getPolicySet.d.ts +8 -8
  75. package/platform/getPolicySet.js +8 -8
  76. package/platform/gitOpsAgent.d.ts +4 -4
  77. package/platform/gitOpsAgent.js +4 -4
  78. package/platform/gitOpsApplications.d.ts +9 -9
  79. package/platform/gitOpsApplications.js +9 -9
  80. package/platform/gitOpsGnupg.d.ts +3 -3
  81. package/platform/gitOpsGnupg.js +3 -3
  82. package/platform/gitOpsRepoCert.d.ts +1 -1
  83. package/platform/gitOpsRepoCert.js +1 -1
  84. package/platform/gitOpsRepoCred.d.ts +5 -5
  85. package/platform/gitOpsRepoCred.js +5 -5
  86. package/platform/gitopsAppProjectMapping.d.ts +12 -0
  87. package/platform/gitopsAppProjectMapping.d.ts.map +1 -1
  88. package/platform/gitopsAppProjectMapping.js +2 -0
  89. package/platform/gitopsAppProjectMapping.js.map +1 -1
  90. package/platform/gitopsApplicationset.d.ts +59 -59
  91. package/platform/gitopsApplicationset.js +59 -59
  92. package/platform/harLifecycleRule.d.ts +20 -20
  93. package/platform/harLifecycleRule.js +20 -20
  94. package/platform/harRegistry.d.ts +69 -69
  95. package/platform/harRegistry.js +69 -69
  96. package/platform/iacmAnsibleInventory.d.ts +11 -11
  97. package/platform/iacmAnsibleInventory.js +11 -11
  98. package/platform/iacmAnsiblePlaybook.d.ts +10 -10
  99. package/platform/iacmAnsiblePlaybook.js +10 -10
  100. package/platform/idpScorecard.d.ts +14 -14
  101. package/platform/idpScorecard.js +14 -14
  102. package/platform/idpScorecardCheck.d.ts +9 -9
  103. package/platform/idpScorecardCheck.js +9 -9
  104. package/platform/infraVariableSet.d.ts +21 -21
  105. package/platform/infraVariableSet.js +21 -21
  106. package/platform/infrastructure.d.ts +7 -7
  107. package/platform/infrastructure.js +7 -7
  108. package/platform/kubernetesConnector.d.ts +17 -17
  109. package/platform/kubernetesConnector.js +17 -17
  110. package/platform/monitoredService.d.ts +123 -123
  111. package/platform/monitoredService.js +123 -123
  112. package/platform/notificationRule.d.ts +10 -10
  113. package/platform/notificationRule.js +10 -10
  114. package/platform/pipeline.d.ts +9 -9
  115. package/platform/pipeline.js +9 -9
  116. package/platform/pipelineCentralNotificationRule.d.ts +22 -22
  117. package/platform/pipelineCentralNotificationRule.js +22 -22
  118. package/platform/pipelineFilters.d.ts +43 -43
  119. package/platform/pipelineFilters.js +43 -43
  120. package/platform/prometheusConnector.d.ts +6 -6
  121. package/platform/prometheusConnector.js +6 -6
  122. package/platform/repo.d.ts +4 -4
  123. package/platform/repo.js +4 -4
  124. package/platform/resourceGroup.d.ts +23 -23
  125. package/platform/resourceGroup.js +23 -23
  126. package/platform/secretFile.d.ts +10 -10
  127. package/platform/secretFile.js +10 -10
  128. package/platform/secretText.d.ts +13 -13
  129. package/platform/secretText.js +13 -13
  130. package/platform/secretWinrm.d.ts +89 -89
  131. package/platform/secretWinrm.js +89 -89
  132. package/platform/service.d.ts +10 -10
  133. package/platform/service.js +10 -10
  134. package/platform/slo.d.ts +17 -17
  135. package/platform/slo.js +17 -17
  136. package/platform/splunkConnector.d.ts +11 -11
  137. package/platform/splunkConnector.js +11 -11
  138. package/platform/templateFilters.d.ts +4 -4
  139. package/platform/templateFilters.js +4 -4
  140. package/platform/usergroup.d.ts +21 -21
  141. package/platform/usergroup.js +21 -21
  142. package/platform/variables.d.ts +4 -4
  143. package/platform/variables.js +4 -4
  144. package/platform/workspace.d.ts +32 -32
  145. package/platform/workspace.js +32 -32
  146. package/platformCcmFilters.d.ts +4 -4
  147. package/platformCcmFilters.js +4 -4
  148. package/service/discoveryAgent.d.ts +62 -62
  149. package/service/discoveryAgent.js +62 -62
  150. package/service/discoverySetting.d.ts +2 -2
  151. package/service/discoverySetting.js +2 -2
  152. package/service/kubernetes.d.ts +4 -4
  153. package/service/kubernetes.js +4 -4
  154. package/sshCredential.d.ts +3 -3
  155. package/sshCredential.js +3 -3
  156. package/userGroup.d.ts +6 -6
  157. package/userGroup.js +6 -6
@@ -50,13 +50,7 @@ const utilities = __importStar(require("../utilities"));
50
50
  *
51
51
  * // Example of a Kubernetes Security Governance Condition (V3)
52
52
  * const k8sCondition = new harness.chaos.SecurityGovernanceConditionV3("k8s_condition", {
53
- * orgId: orgId,
54
- * projectId: projectId,
55
- * name: "k8s-security-condition",
56
- * description: "Security governance condition for Kubernetes workloads",
57
- * infraType: "KubernetesV2",
58
53
  * faultSpec: {
59
- * operator: "NOT_EQUAL_TO",
60
54
  * faults: [
61
55
  * {
62
56
  * faultType: "FAULT",
@@ -67,6 +61,7 @@ const utilities = __importStar(require("../utilities"));
67
61
  * name: "pod-dns",
68
62
  * },
69
63
  * ],
64
+ * operator: "NOT_EQUAL_TO",
70
65
  * },
71
66
  * k8sSpec: {
72
67
  * infraSpec: {
@@ -74,7 +69,6 @@ const utilities = __importStar(require("../utilities"));
74
69
  * infraIds: [k8sInfraId],
75
70
  * },
76
71
  * applicationSpec: {
77
- * operator: "EQUAL_TO",
78
72
  * workloads: [{
79
73
  * namespace: "default",
80
74
  * kind: "deployment",
@@ -82,6 +76,7 @@ const utilities = __importStar(require("../utilities"));
82
76
  * services: ["nginx-service"],
83
77
  * applicationMapId: "nginx-app",
84
78
  * }],
79
+ * operator: "EQUAL_TO",
85
80
  * },
86
81
  * chaosServiceAccountSpec: {
87
82
  * operator: "EQUAL_TO",
@@ -91,6 +86,11 @@ const utilities = __importStar(require("../utilities"));
91
86
  * ],
92
87
  * },
93
88
  * },
89
+ * orgId: orgId,
90
+ * projectId: projectId,
91
+ * name: "k8s-security-condition",
92
+ * description: "Security governance condition for Kubernetes workloads",
93
+ * infraType: "KubernetesV2",
94
94
  * tags: [
95
95
  * "env:prod",
96
96
  * "team:security",
@@ -99,13 +99,7 @@ const utilities = __importStar(require("../utilities"));
99
99
  * });
100
100
  * // Example of a Linux Security Governance Condition (V3)
101
101
  * const linuxCondition = new harness.chaos.SecurityGovernanceConditionV3("linux_condition", {
102
- * orgId: orgId,
103
- * projectId: projectId,
104
- * name: "linux-security-condition",
105
- * description: "Security governance condition for Linux hosts",
106
- * infraType: "Linux",
107
102
  * faultSpec: {
108
- * operator: "NOT_EQUAL_TO",
109
103
  * faults: [
110
104
  * {
111
105
  * faultType: "FAULT",
@@ -116,6 +110,7 @@ const utilities = __importStar(require("../utilities"));
116
110
  * name: "memory-hog",
117
111
  * },
118
112
  * ],
113
+ * operator: "NOT_EQUAL_TO",
119
114
  * },
120
115
  * machineSpec: {
121
116
  * infraSpec: {
@@ -123,6 +118,11 @@ const utilities = __importStar(require("../utilities"));
123
118
  * infraIds: [linuxInfraId],
124
119
  * },
125
120
  * },
121
+ * orgId: orgId,
122
+ * projectId: projectId,
123
+ * name: "linux-security-condition",
124
+ * description: "Security governance condition for Linux hosts",
125
+ * infraType: "Linux",
126
126
  * tags: [
127
127
  * "env:prod",
128
128
  * "team:security",
@@ -12,6 +12,15 @@ import * as outputs from "../types/output";
12
12
  *
13
13
  * // K8s Rule
14
14
  * const example = new harness.chaos.SecurityGovernanceRule("example", {
15
+ * timeWindows: [{
16
+ * recurrence: {
17
+ * type: "Daily",
18
+ * until: -1,
19
+ * },
20
+ * timeZone: "UTC",
21
+ * startTime: 1711238400000,
22
+ * duration: "24h",
23
+ * }],
15
24
  * orgId: "<org_id>",
16
25
  * projectId: "<project_id>",
17
26
  * name: "<name>",
@@ -23,18 +32,18 @@ import * as outputs from "../types/output";
23
32
  * "<tag1>",
24
33
  * "<tag2>",
25
34
  * ],
35
+ * });
36
+ * // Linux Rule
37
+ * const linuxRule = new harness.chaos.SecurityGovernanceRule("linux_rule", {
26
38
  * timeWindows: [{
27
- * timeZone: "UTC",
28
- * startTime: 1711238400000,
29
- * duration: "24h",
30
39
  * recurrence: {
31
40
  * type: "Daily",
32
41
  * until: -1,
33
42
  * },
43
+ * timeZone: "UTC",
44
+ * startTime: 1711238400000,
45
+ * duration: "24h",
34
46
  * }],
35
- * });
36
- * // Linux Rule
37
- * const linuxRule = new harness.chaos.SecurityGovernanceRule("linux_rule", {
38
47
  * orgId: "<org_id>",
39
48
  * projectId: "<project_id>",
40
49
  * name: "<name>",
@@ -46,18 +55,18 @@ import * as outputs from "../types/output";
46
55
  * "<tag1>",
47
56
  * "<tag2>",
48
57
  * ],
58
+ * });
59
+ * // Windows Rule
60
+ * const windowsRule = new harness.chaos.SecurityGovernanceRule("windows_rule", {
49
61
  * timeWindows: [{
50
- * timeZone: "UTC",
51
- * startTime: 1711238400000,
52
- * duration: "24h",
53
62
  * recurrence: {
54
63
  * type: "Daily",
55
64
  * until: -1,
56
65
  * },
66
+ * timeZone: "UTC",
67
+ * startTime: 1711238400000,
68
+ * duration: "24h",
57
69
  * }],
58
- * });
59
- * // Windows Rule
60
- * const windowsRule = new harness.chaos.SecurityGovernanceRule("windows_rule", {
61
70
  * orgId: "<org_id>",
62
71
  * projectId: "<project_id>",
63
72
  * name: "<name>",
@@ -69,15 +78,6 @@ import * as outputs from "../types/output";
69
78
  * "<tag1>",
70
79
  * "<tag2>",
71
80
  * ],
72
- * timeWindows: [{
73
- * timeZone: "UTC",
74
- * startTime: 1711238400000,
75
- * duration: "24h",
76
- * recurrence: {
77
- * type: "Daily",
78
- * until: -1,
79
- * },
80
- * }],
81
81
  * });
82
82
  * ```
83
83
  *
@@ -39,6 +39,15 @@ const utilities = __importStar(require("../utilities"));
39
39
  *
40
40
  * // K8s Rule
41
41
  * const example = new harness.chaos.SecurityGovernanceRule("example", {
42
+ * timeWindows: [{
43
+ * recurrence: {
44
+ * type: "Daily",
45
+ * until: -1,
46
+ * },
47
+ * timeZone: "UTC",
48
+ * startTime: 1711238400000,
49
+ * duration: "24h",
50
+ * }],
42
51
  * orgId: "<org_id>",
43
52
  * projectId: "<project_id>",
44
53
  * name: "<name>",
@@ -50,18 +59,18 @@ const utilities = __importStar(require("../utilities"));
50
59
  * "<tag1>",
51
60
  * "<tag2>",
52
61
  * ],
62
+ * });
63
+ * // Linux Rule
64
+ * const linuxRule = new harness.chaos.SecurityGovernanceRule("linux_rule", {
53
65
  * timeWindows: [{
54
- * timeZone: "UTC",
55
- * startTime: 1711238400000,
56
- * duration: "24h",
57
66
  * recurrence: {
58
67
  * type: "Daily",
59
68
  * until: -1,
60
69
  * },
70
+ * timeZone: "UTC",
71
+ * startTime: 1711238400000,
72
+ * duration: "24h",
61
73
  * }],
62
- * });
63
- * // Linux Rule
64
- * const linuxRule = new harness.chaos.SecurityGovernanceRule("linux_rule", {
65
74
  * orgId: "<org_id>",
66
75
  * projectId: "<project_id>",
67
76
  * name: "<name>",
@@ -73,18 +82,18 @@ const utilities = __importStar(require("../utilities"));
73
82
  * "<tag1>",
74
83
  * "<tag2>",
75
84
  * ],
85
+ * });
86
+ * // Windows Rule
87
+ * const windowsRule = new harness.chaos.SecurityGovernanceRule("windows_rule", {
76
88
  * timeWindows: [{
77
- * timeZone: "UTC",
78
- * startTime: 1711238400000,
79
- * duration: "24h",
80
89
  * recurrence: {
81
90
  * type: "Daily",
82
91
  * until: -1,
83
92
  * },
93
+ * timeZone: "UTC",
94
+ * startTime: 1711238400000,
95
+ * duration: "24h",
84
96
  * }],
85
- * });
86
- * // Windows Rule
87
- * const windowsRule = new harness.chaos.SecurityGovernanceRule("windows_rule", {
88
97
  * orgId: "<org_id>",
89
98
  * projectId: "<project_id>",
90
99
  * name: "<name>",
@@ -96,15 +105,6 @@ const utilities = __importStar(require("../utilities"));
96
105
  * "<tag1>",
97
106
  * "<tag2>",
98
107
  * ],
99
- * timeWindows: [{
100
- * timeZone: "UTC",
101
- * startTime: 1711238400000,
102
- * duration: "24h",
103
- * recurrence: {
104
- * type: "Daily",
105
- * until: -1,
106
- * },
107
- * }],
108
108
  * });
109
109
  * ```
110
110
  *
@@ -18,6 +18,15 @@ import * as outputs from "../types/output";
18
18
  *
19
19
  * // Example of a Security Governance Rule (V3)
20
20
  * const example = new harness.chaos.SecurityGovernanceRuleV3("example", {
21
+ * timeWindows: [{
22
+ * recurrence: {
23
+ * type: "Daily",
24
+ * until: -1,
25
+ * },
26
+ * timeZone: "UTC",
27
+ * startTime: 1711238400000,
28
+ * duration: "24h",
29
+ * }],
21
30
  * orgId: orgId,
22
31
  * projectId: projectId,
23
32
  * name: "k8s-security-rule",
@@ -29,15 +38,6 @@ import * as outputs from "../types/output";
29
38
  * "env:prod",
30
39
  * "team:security",
31
40
  * ],
32
- * timeWindows: [{
33
- * timeZone: "UTC",
34
- * startTime: 1711238400000,
35
- * duration: "24h",
36
- * recurrence: {
37
- * type: "Daily",
38
- * until: -1,
39
- * },
40
- * }],
41
41
  * });
42
42
  * export const securityGovernanceRuleV3Id = example.id;
43
43
  * ```
@@ -45,6 +45,15 @@ const utilities = __importStar(require("../utilities"));
45
45
  *
46
46
  * // Example of a Security Governance Rule (V3)
47
47
  * const example = new harness.chaos.SecurityGovernanceRuleV3("example", {
48
+ * timeWindows: [{
49
+ * recurrence: {
50
+ * type: "Daily",
51
+ * until: -1,
52
+ * },
53
+ * timeZone: "UTC",
54
+ * startTime: 1711238400000,
55
+ * duration: "24h",
56
+ * }],
48
57
  * orgId: orgId,
49
58
  * projectId: projectId,
50
59
  * name: "k8s-security-rule",
@@ -56,15 +65,6 @@ const utilities = __importStar(require("../utilities"));
56
65
  * "env:prod",
57
66
  * "team:security",
58
67
  * ],
59
- * timeWindows: [{
60
- * timeZone: "UTC",
61
- * startTime: 1711238400000,
62
- * duration: "24h",
63
- * recurrence: {
64
- * type: "Daily",
65
- * until: -1,
66
- * },
67
- * }],
68
68
  * });
69
69
  * export const securityGovernanceRuleV3Id = example.id;
70
70
  * ```
@@ -9,7 +9,7 @@ import * as pulumi from "@pulumi/pulumi";
9
9
  * import * as aws from "@pulumi/aws";
10
10
  * import * as harness from "@pulumi/harness";
11
11
  *
12
- * const current = aws.Region({});
12
+ * const current = aws.region({});
13
13
  * const test = new harness.cluster.Orchestrator("test", {
14
14
  * name: "name",
15
15
  * clusterEndpoint: "http://test.test.com",
@@ -38,7 +38,7 @@ const utilities = __importStar(require("../utilities"));
38
38
  * import * as aws from "@pulumi/aws";
39
39
  * import * as harness from "@pulumi/harness";
40
40
  *
41
- * const current = aws.Region({});
41
+ * const current = aws.region({});
42
42
  * const test = new harness.cluster.Orchestrator("test", {
43
43
  * name: "name",
44
44
  * clusterEndpoint: "http://test.test.com",
@@ -11,8 +11,6 @@ import * as outputs from "../types/output";
11
11
  * import * as harness from "@pulumi/harness";
12
12
  *
13
13
  * const example = new harness.cluster.OrchestratorConfig("example", {
14
- * orchestratorId: "orch-cvifpfl9rbg8neldj97g",
15
- * disabled: false,
16
14
  * distribution: {
17
15
  * baseOndemandCapacity: 2,
18
16
  * ondemandReplicaPercentage: 50,
@@ -27,8 +25,6 @@ import * as outputs from "../types/output";
27
25
  * },
28
26
  * },
29
27
  * disruption: {
30
- * criteria: "WhenEmpty",
31
- * delay: "10m",
32
28
  * budgets: [
33
29
  * {
34
30
  * reasons: [
@@ -39,17 +35,19 @@ import * as outputs from "../types/output";
39
35
  * nodes: "20",
40
36
  * },
41
37
  * {
38
+ * schedule: {
39
+ * frequency: "@monthly",
40
+ * duration: "10m",
41
+ * },
42
42
  * reasons: [
43
43
  * "Drifted",
44
44
  * "Empty",
45
45
  * ],
46
46
  * nodes: "1",
47
- * schedule: {
48
- * frequency: "@monthly",
49
- * duration: "10m",
50
- * },
51
47
  * },
52
48
  * ],
49
+ * criteria: "WhenEmpty",
50
+ * delay: "10m",
53
51
  * },
54
52
  * },
55
53
  * nodePreferences: {
@@ -61,7 +59,6 @@ import * as outputs from "../types/output";
61
59
  * masterAccountId: "dummyAccountId",
62
60
  * },
63
61
  * replacementSchedule: {
64
- * windowType: "Custom",
65
62
  * appliesTo: {
66
63
  * consolidation: true,
67
64
  * harnessPodEviction: true,
@@ -78,7 +75,10 @@ import * as outputs from "../types/output";
78
75
  * startTime: "10:30",
79
76
  * endTime: "11:30",
80
77
  * },
78
+ * windowType: "Custom",
81
79
  * },
80
+ * orchestratorId: "orch-cvifpfl9rbg8neldj97g",
81
+ * disabled: false,
82
82
  * });
83
83
  * ```
84
84
  */
@@ -38,8 +38,6 @@ const utilities = __importStar(require("../utilities"));
38
38
  * import * as harness from "@pulumi/harness";
39
39
  *
40
40
  * const example = new harness.cluster.OrchestratorConfig("example", {
41
- * orchestratorId: "orch-cvifpfl9rbg8neldj97g",
42
- * disabled: false,
43
41
  * distribution: {
44
42
  * baseOndemandCapacity: 2,
45
43
  * ondemandReplicaPercentage: 50,
@@ -54,8 +52,6 @@ const utilities = __importStar(require("../utilities"));
54
52
  * },
55
53
  * },
56
54
  * disruption: {
57
- * criteria: "WhenEmpty",
58
- * delay: "10m",
59
55
  * budgets: [
60
56
  * {
61
57
  * reasons: [
@@ -66,17 +62,19 @@ const utilities = __importStar(require("../utilities"));
66
62
  * nodes: "20",
67
63
  * },
68
64
  * {
65
+ * schedule: {
66
+ * frequency: "@monthly",
67
+ * duration: "10m",
68
+ * },
69
69
  * reasons: [
70
70
  * "Drifted",
71
71
  * "Empty",
72
72
  * ],
73
73
  * nodes: "1",
74
- * schedule: {
75
- * frequency: "@monthly",
76
- * duration: "10m",
77
- * },
78
74
  * },
79
75
  * ],
76
+ * criteria: "WhenEmpty",
77
+ * delay: "10m",
80
78
  * },
81
79
  * },
82
80
  * nodePreferences: {
@@ -88,7 +86,6 @@ const utilities = __importStar(require("../utilities"));
88
86
  * masterAccountId: "dummyAccountId",
89
87
  * },
90
88
  * replacementSchedule: {
91
- * windowType: "Custom",
92
89
  * appliesTo: {
93
90
  * consolidation: true,
94
91
  * harnessPodEviction: true,
@@ -105,7 +102,10 @@ const utilities = __importStar(require("../utilities"));
105
102
  * startTime: "10:30",
106
103
  * endTime: "11:30",
107
104
  * },
105
+ * windowType: "Custom",
108
106
  * },
107
+ * orchestratorId: "orch-cvifpfl9rbg8neldj97g",
108
+ * disabled: false,
109
109
  * });
110
110
  * ```
111
111
  */
@@ -14,9 +14,6 @@ import * as outputs from "./types/output";
14
14
  * "default": true,
15
15
  * });
16
16
  * const example = new harness.EncryptedText("example", {
17
- * name: "example-secret",
18
- * value: "someval",
19
- * secretManagerId: _default.then(_default => _default.id),
20
17
  * usageScopes: [
21
18
  * {
22
19
  * environmentFilterType: "PRODUCTION_ENVIRONMENTS",
@@ -25,6 +22,9 @@ import * as outputs from "./types/output";
25
22
  * environmentFilterType: "NON_PRODUCTION_ENVIRONMENTS",
26
23
  * },
27
24
  * ],
25
+ * name: "example-secret",
26
+ * value: "someval",
27
+ * secretManagerId: _default.then(_default => _default.id),
28
28
  * });
29
29
  * ```
30
30
  *
package/encryptedText.js CHANGED
@@ -41,9 +41,6 @@ const utilities = __importStar(require("./utilities"));
41
41
  * "default": true,
42
42
  * });
43
43
  * const example = new harness.EncryptedText("example", {
44
- * name: "example-secret",
45
- * value: "someval",
46
- * secretManagerId: _default.then(_default => _default.id),
47
44
  * usageScopes: [
48
45
  * {
49
46
  * environmentFilterType: "PRODUCTION_ENVIRONMENTS",
@@ -52,6 +49,9 @@ const utilities = __importStar(require("./utilities"));
52
49
  * environmentFilterType: "NON_PRODUCTION_ENVIRONMENTS",
53
50
  * },
54
51
  * ],
52
+ * name: "example-secret",
53
+ * value: "someval",
54
+ * secretManagerId: _default.then(_default => _default.id),
55
55
  * });
56
56
  * ```
57
57
  *
package/environment.d.ts CHANGED
@@ -12,10 +12,6 @@ import * as outputs from "./types/output";
12
12
  *
13
13
  * const test = new harness.Application("test", {name: "%[1]s"});
14
14
  * const testKubernetes = new harness.service.Kubernetes("test", {
15
- * appId: test.id,
16
- * name: "%[1]s",
17
- * helmVersion: "V2",
18
- * description: "description",
19
15
  * variables: [
20
16
  * {
21
17
  * name: "test",
@@ -28,11 +24,12 @@ import * as outputs from "./types/output";
28
24
  * type: "TEXT",
29
25
  * },
30
26
  * ],
31
- * });
32
- * const testEnvironment = new harness.Environment("test", {
33
27
  * appId: test.id,
34
28
  * name: "%[1]s",
35
- * type: "%[2]s",
29
+ * helmVersion: "V2",
30
+ * description: "description",
31
+ * });
32
+ * const testEnvironment = new harness.Environment("test", {
36
33
  * variableOverrides: [
37
34
  * {
38
35
  * serviceName: testKubernetes.name,
@@ -47,6 +44,9 @@ import * as outputs from "./types/output";
47
44
  * type: "TEXT",
48
45
  * },
49
46
  * ],
47
+ * appId: test.id,
48
+ * name: "%[1]s",
49
+ * type: "%[2]s",
50
50
  * });
51
51
  * ```
52
52
  *
package/environment.js CHANGED
@@ -39,10 +39,6 @@ const utilities = __importStar(require("./utilities"));
39
39
  *
40
40
  * const test = new harness.Application("test", {name: "%[1]s"});
41
41
  * const testKubernetes = new harness.service.Kubernetes("test", {
42
- * appId: test.id,
43
- * name: "%[1]s",
44
- * helmVersion: "V2",
45
- * description: "description",
46
42
  * variables: [
47
43
  * {
48
44
  * name: "test",
@@ -55,11 +51,12 @@ const utilities = __importStar(require("./utilities"));
55
51
  * type: "TEXT",
56
52
  * },
57
53
  * ],
58
- * });
59
- * const testEnvironment = new harness.Environment("test", {
60
54
  * appId: test.id,
61
55
  * name: "%[1]s",
62
- * type: "%[2]s",
56
+ * helmVersion: "V2",
57
+ * description: "description",
58
+ * });
59
+ * const testEnvironment = new harness.Environment("test", {
63
60
  * variableOverrides: [
64
61
  * {
65
62
  * serviceName: testKubernetes.name,
@@ -74,6 +71,9 @@ const utilities = __importStar(require("./utilities"));
74
71
  * type: "TEXT",
75
72
  * },
76
73
  * ],
74
+ * appId: test.id,
75
+ * name: "%[1]s",
76
+ * type: "%[2]s",
77
77
  * });
78
78
  * ```
79
79
  *
@@ -12,10 +12,10 @@ import * as outputs from "./types/output";
12
12
  *
13
13
  * // Creating a Kubernetes infrastructure definition
14
14
  * const dev = new harness.cloudprovider.Kubernetes("dev", {
15
- * name: "k8s-dev",
16
15
  * authentication: {
17
16
  * delegateSelectors: ["k8s"],
18
17
  * },
18
+ * name: "k8s-dev",
19
19
  * });
20
20
  * const example = new harness.Application("example", {name: "example"});
21
21
  * const devEnvironment = new harness.Environment("dev", {
@@ -25,16 +25,16 @@ import * as outputs from "./types/output";
25
25
  * });
26
26
  * // Creating a infrastructure of type KUBERNETES
27
27
  * const k8s = new harness.InfrastructureDefinition("k8s", {
28
- * name: "k8s-eks-us-east-1",
29
- * appId: example.id,
30
- * envId: devEnvironment.id,
31
- * cloudProviderType: "KUBERNETES_CLUSTER",
32
- * deploymentType: "KUBERNETES",
33
28
  * kubernetes: {
34
29
  * cloudProviderName: dev.name,
35
30
  * namespace: "dev",
36
31
  * releaseName: "${service.name}",
37
32
  * },
33
+ * name: "k8s-eks-us-east-1",
34
+ * appId: example.id,
35
+ * envId: devEnvironment.id,
36
+ * cloudProviderType: "KUBERNETES_CLUSTER",
37
+ * deploymentType: "KUBERNETES",
38
38
  * });
39
39
  * // Creating a Deployment Template for CUSTOM infrastructure type
40
40
  * const exampleYaml = new harness.YamlConfig("example_yaml", {
@@ -54,14 +54,7 @@ import * as outputs from "./types/output";
54
54
  * });
55
55
  * // Creating a infrastructure of type CUSTOM
56
56
  * const custom = new harness.InfrastructureDefinition("custom", {
57
- * name: "custom-infra",
58
- * appId: example.id,
59
- * envId: devEnvironment.id,
60
- * cloudProviderType: "CUSTOM",
61
- * deploymentType: "CUSTOM",
62
- * deploymentTemplateUri: pulumi.interpolate`Example Folder/${exampleYaml.name}`,
63
57
  * custom: {
64
- * deploymentTypeTemplateVersion: "1",
65
58
  * variables: [
66
59
  * {
67
60
  * name: "url",
@@ -72,7 +65,14 @@ import * as outputs from "./types/output";
72
65
  * value: "instances.json",
73
66
  * },
74
67
  * ],
68
+ * deploymentTypeTemplateVersion: "1",
75
69
  * },
70
+ * name: "custom-infra",
71
+ * appId: example.id,
72
+ * envId: devEnvironment.id,
73
+ * cloudProviderType: "CUSTOM",
74
+ * deploymentType: "CUSTOM",
75
+ * deploymentTemplateUri: pulumi.interpolate`Example Folder/${exampleYaml.name}`,
76
76
  * });
77
77
  * ```
78
78
  *
@@ -39,10 +39,10 @@ const utilities = __importStar(require("./utilities"));
39
39
  *
40
40
  * // Creating a Kubernetes infrastructure definition
41
41
  * const dev = new harness.cloudprovider.Kubernetes("dev", {
42
- * name: "k8s-dev",
43
42
  * authentication: {
44
43
  * delegateSelectors: ["k8s"],
45
44
  * },
45
+ * name: "k8s-dev",
46
46
  * });
47
47
  * const example = new harness.Application("example", {name: "example"});
48
48
  * const devEnvironment = new harness.Environment("dev", {
@@ -52,16 +52,16 @@ const utilities = __importStar(require("./utilities"));
52
52
  * });
53
53
  * // Creating a infrastructure of type KUBERNETES
54
54
  * const k8s = new harness.InfrastructureDefinition("k8s", {
55
- * name: "k8s-eks-us-east-1",
56
- * appId: example.id,
57
- * envId: devEnvironment.id,
58
- * cloudProviderType: "KUBERNETES_CLUSTER",
59
- * deploymentType: "KUBERNETES",
60
55
  * kubernetes: {
61
56
  * cloudProviderName: dev.name,
62
57
  * namespace: "dev",
63
58
  * releaseName: "${service.name}",
64
59
  * },
60
+ * name: "k8s-eks-us-east-1",
61
+ * appId: example.id,
62
+ * envId: devEnvironment.id,
63
+ * cloudProviderType: "KUBERNETES_CLUSTER",
64
+ * deploymentType: "KUBERNETES",
65
65
  * });
66
66
  * // Creating a Deployment Template for CUSTOM infrastructure type
67
67
  * const exampleYaml = new harness.YamlConfig("example_yaml", {
@@ -81,14 +81,7 @@ const utilities = __importStar(require("./utilities"));
81
81
  * });
82
82
  * // Creating a infrastructure of type CUSTOM
83
83
  * const custom = new harness.InfrastructureDefinition("custom", {
84
- * name: "custom-infra",
85
- * appId: example.id,
86
- * envId: devEnvironment.id,
87
- * cloudProviderType: "CUSTOM",
88
- * deploymentType: "CUSTOM",
89
- * deploymentTemplateUri: pulumi.interpolate`Example Folder/${exampleYaml.name}`,
90
84
  * custom: {
91
- * deploymentTypeTemplateVersion: "1",
92
85
  * variables: [
93
86
  * {
94
87
  * name: "url",
@@ -99,7 +92,14 @@ const utilities = __importStar(require("./utilities"));
99
92
  * value: "instances.json",
100
93
  * },
101
94
  * ],
95
+ * deploymentTypeTemplateVersion: "1",
102
96
  * },
97
+ * name: "custom-infra",
98
+ * appId: example.id,
99
+ * envId: devEnvironment.id,
100
+ * cloudProviderType: "CUSTOM",
101
+ * deploymentType: "CUSTOM",
102
+ * deploymentTemplateUri: pulumi.interpolate`Example Folder/${exampleYaml.name}`,
103
103
  * });
104
104
  * ```
105
105
  *