@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
@@ -39,13 +39,6 @@ import * as outputs from "../types/output";
39
39
  * import * as harness from "@pulumi/harness";
40
40
  *
41
41
  * const ssoTypeSaml = new harness.platform.Usergroup("sso_type_saml", {
42
- * identifier: "identifier",
43
- * name: "name",
44
- * orgId: "org_id",
45
- * projectId: "project_id",
46
- * linkedSsoId: "linked_sso_id",
47
- * externallyManaged: false,
48
- * users: ["user_id"],
49
42
  * notificationConfigs: [
50
43
  * {
51
44
  * type: "SLACK",
@@ -65,13 +58,6 @@ import * as outputs from "../types/output";
65
58
  * pagerDutyKey: "pagerDutyKey",
66
59
  * },
67
60
  * ],
68
- * linkedSsoDisplayName: "linked_sso_display_name",
69
- * ssoGroupId: "sso_group_name",
70
- * ssoGroupName: "sso_group_name",
71
- * linkedSsoType: "SAML",
72
- * ssoLinked: true,
73
- * });
74
- * const ssoTypeLdap = new harness.platform.Usergroup("sso_type_ldap", {
75
61
  * identifier: "identifier",
76
62
  * name: "name",
77
63
  * orgId: "org_id",
@@ -79,6 +65,13 @@ import * as outputs from "../types/output";
79
65
  * linkedSsoId: "linked_sso_id",
80
66
  * externallyManaged: false,
81
67
  * users: ["user_id"],
68
+ * linkedSsoDisplayName: "linked_sso_display_name",
69
+ * ssoGroupId: "sso_group_name",
70
+ * ssoGroupName: "sso_group_name",
71
+ * linkedSsoType: "SAML",
72
+ * ssoLinked: true,
73
+ * });
74
+ * const ssoTypeLdap = new harness.platform.Usergroup("sso_type_ldap", {
82
75
  * notificationConfigs: [
83
76
  * {
84
77
  * type: "SLACK",
@@ -98,6 +91,13 @@ import * as outputs from "../types/output";
98
91
  * pagerDutyKey: "pagerDutyKey",
99
92
  * },
100
93
  * ],
94
+ * identifier: "identifier",
95
+ * name: "name",
96
+ * orgId: "org_id",
97
+ * projectId: "project_id",
98
+ * linkedSsoId: "linked_sso_id",
99
+ * externallyManaged: false,
100
+ * users: ["user_id"],
101
101
  * linkedSsoDisplayName: "linked_sso_display_name",
102
102
  * ssoGroupId: "sso_group_id",
103
103
  * ssoGroupName: "sso_group_name",
@@ -106,13 +106,6 @@ import * as outputs from "../types/output";
106
106
  * });
107
107
  * // Create user group by adding user emails
108
108
  * const example = new harness.platform.Usergroup("example", {
109
- * identifier: "identifier",
110
- * name: "name",
111
- * orgId: "org_id",
112
- * projectId: "project_id",
113
- * linkedSsoId: "linked_sso_id",
114
- * externallyManaged: false,
115
- * userEmails: ["user@email.com"],
116
109
  * notificationConfigs: [
117
110
  * {
118
111
  * type: "SLACK",
@@ -132,6 +125,13 @@ import * as outputs from "../types/output";
132
125
  * pagerDutyKey: "pagerDutyKey",
133
126
  * },
134
127
  * ],
128
+ * identifier: "identifier",
129
+ * name: "name",
130
+ * orgId: "org_id",
131
+ * projectId: "project_id",
132
+ * linkedSsoId: "linked_sso_id",
133
+ * externallyManaged: false,
134
+ * userEmails: ["user@email.com"],
135
135
  * linkedSsoDisplayName: "linked_sso_display_name",
136
136
  * ssoGroupId: "sso_group_name",
137
137
  * ssoGroupName: "sso_group_name",
@@ -66,13 +66,6 @@ const utilities = __importStar(require("../utilities"));
66
66
  * import * as harness from "@pulumi/harness";
67
67
  *
68
68
  * const ssoTypeSaml = new harness.platform.Usergroup("sso_type_saml", {
69
- * identifier: "identifier",
70
- * name: "name",
71
- * orgId: "org_id",
72
- * projectId: "project_id",
73
- * linkedSsoId: "linked_sso_id",
74
- * externallyManaged: false,
75
- * users: ["user_id"],
76
69
  * notificationConfigs: [
77
70
  * {
78
71
  * type: "SLACK",
@@ -92,13 +85,6 @@ const utilities = __importStar(require("../utilities"));
92
85
  * pagerDutyKey: "pagerDutyKey",
93
86
  * },
94
87
  * ],
95
- * linkedSsoDisplayName: "linked_sso_display_name",
96
- * ssoGroupId: "sso_group_name",
97
- * ssoGroupName: "sso_group_name",
98
- * linkedSsoType: "SAML",
99
- * ssoLinked: true,
100
- * });
101
- * const ssoTypeLdap = new harness.platform.Usergroup("sso_type_ldap", {
102
88
  * identifier: "identifier",
103
89
  * name: "name",
104
90
  * orgId: "org_id",
@@ -106,6 +92,13 @@ const utilities = __importStar(require("../utilities"));
106
92
  * linkedSsoId: "linked_sso_id",
107
93
  * externallyManaged: false,
108
94
  * users: ["user_id"],
95
+ * linkedSsoDisplayName: "linked_sso_display_name",
96
+ * ssoGroupId: "sso_group_name",
97
+ * ssoGroupName: "sso_group_name",
98
+ * linkedSsoType: "SAML",
99
+ * ssoLinked: true,
100
+ * });
101
+ * const ssoTypeLdap = new harness.platform.Usergroup("sso_type_ldap", {
109
102
  * notificationConfigs: [
110
103
  * {
111
104
  * type: "SLACK",
@@ -125,6 +118,13 @@ const utilities = __importStar(require("../utilities"));
125
118
  * pagerDutyKey: "pagerDutyKey",
126
119
  * },
127
120
  * ],
121
+ * identifier: "identifier",
122
+ * name: "name",
123
+ * orgId: "org_id",
124
+ * projectId: "project_id",
125
+ * linkedSsoId: "linked_sso_id",
126
+ * externallyManaged: false,
127
+ * users: ["user_id"],
128
128
  * linkedSsoDisplayName: "linked_sso_display_name",
129
129
  * ssoGroupId: "sso_group_id",
130
130
  * ssoGroupName: "sso_group_name",
@@ -133,13 +133,6 @@ const utilities = __importStar(require("../utilities"));
133
133
  * });
134
134
  * // Create user group by adding user emails
135
135
  * const example = new harness.platform.Usergroup("example", {
136
- * identifier: "identifier",
137
- * name: "name",
138
- * orgId: "org_id",
139
- * projectId: "project_id",
140
- * linkedSsoId: "linked_sso_id",
141
- * externallyManaged: false,
142
- * userEmails: ["user@email.com"],
143
136
  * notificationConfigs: [
144
137
  * {
145
138
  * type: "SLACK",
@@ -159,6 +152,13 @@ const utilities = __importStar(require("../utilities"));
159
152
  * pagerDutyKey: "pagerDutyKey",
160
153
  * },
161
154
  * ],
155
+ * identifier: "identifier",
156
+ * name: "name",
157
+ * orgId: "org_id",
158
+ * projectId: "project_id",
159
+ * linkedSsoId: "linked_sso_id",
160
+ * externallyManaged: false,
161
+ * userEmails: ["user@email.com"],
162
162
  * linkedSsoDisplayName: "linked_sso_display_name",
163
163
  * ssoGroupId: "sso_group_name",
164
164
  * ssoGroupName: "sso_group_name",
@@ -11,15 +11,15 @@ import * as outputs from "../types/output";
11
11
  * import * as harness from "@pulumi/harness";
12
12
  *
13
13
  * const test = new harness.platform.Variables("test", {
14
+ * spec: {
15
+ * valueType: "FIXED",
16
+ * fixedValue: "fixedValue",
17
+ * },
14
18
  * identifier: "identifier",
15
19
  * name: "name",
16
20
  * orgId: "org_id",
17
21
  * projectId: "project_id",
18
22
  * type: "String",
19
- * spec: {
20
- * valueType: "FIXED",
21
- * fixedValue: "fixedValue",
22
- * },
23
23
  * });
24
24
  * ```
25
25
  *
@@ -38,15 +38,15 @@ const utilities = __importStar(require("../utilities"));
38
38
  * import * as harness from "@pulumi/harness";
39
39
  *
40
40
  * const test = new harness.platform.Variables("test", {
41
+ * spec: {
42
+ * valueType: "FIXED",
43
+ * fixedValue: "fixedValue",
44
+ * },
41
45
  * identifier: "identifier",
42
46
  * name: "name",
43
47
  * orgId: "org_id",
44
48
  * projectId: "project_id",
45
49
  * type: "String",
46
- * spec: {
47
- * valueType: "FIXED",
48
- * fixedValue: "fixedValue",
49
- * },
50
50
  * });
51
51
  * ```
52
52
  *
@@ -11,34 +11,10 @@ import * as outputs from "../types/output";
11
11
  * import * as harness from "@pulumi/harness";
12
12
  *
13
13
  * const example = new harness.platform.Workspace("example", {
14
- * name: "example",
15
- * identifier: "example",
16
- * orgId: testHarnessPlatformOrganization.id,
17
- * projectId: testHarnessPlatformProject.id,
18
- * provisionerType: "terraform",
19
- * provisionerVersion: "1.5.6",
20
- * repository: "https://github.com/org/repo",
21
- * repositoryBranch: "main",
22
- * repositoryPath: "tf/aws/basic",
23
- * costEstimationEnabled: true,
24
- * providerConnector: test.id,
25
- * repositoryConnector: test.id,
26
- * tags: [
27
- * "tag1",
28
- * "tag2",
29
- * ],
30
- * terraformVariables: [
31
- * {
32
- * key: "key1",
33
- * value: "val1",
34
- * valueType: "string",
35
- * },
36
- * {
37
- * key: "key2",
38
- * value: "val2",
39
- * valueType: "string",
40
- * },
41
- * ],
14
+ * associatedTemplate: {
15
+ * templateId: "my_template",
16
+ * version: "v1.0.0",
17
+ * },
42
18
  * environmentVariables: [
43
19
  * {
44
20
  * key: "key1",
@@ -71,6 +47,34 @@ import * as outputs from "../types/output";
71
47
  * repositoryConnector: test.id,
72
48
  * },
73
49
  * ],
50
+ * terraformVariables: [
51
+ * {
52
+ * key: "key1",
53
+ * value: "val1",
54
+ * valueType: "string",
55
+ * },
56
+ * {
57
+ * key: "key2",
58
+ * value: "val2",
59
+ * valueType: "string",
60
+ * },
61
+ * ],
62
+ * name: "example",
63
+ * identifier: "example",
64
+ * orgId: testHarnessPlatformOrganization.id,
65
+ * projectId: testHarnessPlatformProject.id,
66
+ * provisionerType: "terraform",
67
+ * provisionerVersion: "1.5.6",
68
+ * repository: "https://github.com/org/repo",
69
+ * repositoryBranch: "main",
70
+ * repositoryPath: "tf/aws/basic",
71
+ * costEstimationEnabled: true,
72
+ * providerConnector: test.id,
73
+ * repositoryConnector: test.id,
74
+ * tags: [
75
+ * "tag1",
76
+ * "tag2",
77
+ * ],
74
78
  * variableSets: [testHarnessPlatformInfraVariableSet.id],
75
79
  * defaultPipelines: {
76
80
  * destroy: "destroy_pipeline_id",
@@ -78,10 +82,6 @@ import * as outputs from "../types/output";
78
82
  * plan: "plan_pipeline_id",
79
83
  * apply: "apply_pipeline_id",
80
84
  * },
81
- * associatedTemplate: {
82
- * templateId: "my_template",
83
- * version: "v1.0.0",
84
- * },
85
85
  * });
86
86
  * ```
87
87
  *
@@ -38,34 +38,10 @@ const utilities = __importStar(require("../utilities"));
38
38
  * import * as harness from "@pulumi/harness";
39
39
  *
40
40
  * const example = new harness.platform.Workspace("example", {
41
- * name: "example",
42
- * identifier: "example",
43
- * orgId: testHarnessPlatformOrganization.id,
44
- * projectId: testHarnessPlatformProject.id,
45
- * provisionerType: "terraform",
46
- * provisionerVersion: "1.5.6",
47
- * repository: "https://github.com/org/repo",
48
- * repositoryBranch: "main",
49
- * repositoryPath: "tf/aws/basic",
50
- * costEstimationEnabled: true,
51
- * providerConnector: test.id,
52
- * repositoryConnector: test.id,
53
- * tags: [
54
- * "tag1",
55
- * "tag2",
56
- * ],
57
- * terraformVariables: [
58
- * {
59
- * key: "key1",
60
- * value: "val1",
61
- * valueType: "string",
62
- * },
63
- * {
64
- * key: "key2",
65
- * value: "val2",
66
- * valueType: "string",
67
- * },
68
- * ],
41
+ * associatedTemplate: {
42
+ * templateId: "my_template",
43
+ * version: "v1.0.0",
44
+ * },
69
45
  * environmentVariables: [
70
46
  * {
71
47
  * key: "key1",
@@ -98,6 +74,34 @@ const utilities = __importStar(require("../utilities"));
98
74
  * repositoryConnector: test.id,
99
75
  * },
100
76
  * ],
77
+ * terraformVariables: [
78
+ * {
79
+ * key: "key1",
80
+ * value: "val1",
81
+ * valueType: "string",
82
+ * },
83
+ * {
84
+ * key: "key2",
85
+ * value: "val2",
86
+ * valueType: "string",
87
+ * },
88
+ * ],
89
+ * name: "example",
90
+ * identifier: "example",
91
+ * orgId: testHarnessPlatformOrganization.id,
92
+ * projectId: testHarnessPlatformProject.id,
93
+ * provisionerType: "terraform",
94
+ * provisionerVersion: "1.5.6",
95
+ * repository: "https://github.com/org/repo",
96
+ * repositoryBranch: "main",
97
+ * repositoryPath: "tf/aws/basic",
98
+ * costEstimationEnabled: true,
99
+ * providerConnector: test.id,
100
+ * repositoryConnector: test.id,
101
+ * tags: [
102
+ * "tag1",
103
+ * "tag2",
104
+ * ],
101
105
  * variableSets: [testHarnessPlatformInfraVariableSet.id],
102
106
  * defaultPipelines: {
103
107
  * destroy: "destroy_pipeline_id",
@@ -105,10 +109,6 @@ const utilities = __importStar(require("../utilities"));
105
109
  * plan: "plan_pipeline_id",
106
110
  * apply: "apply_pipeline_id",
107
111
  * },
108
- * associatedTemplate: {
109
- * templateId: "my_template",
110
- * version: "v1.0.0",
111
- * },
112
112
  * });
113
113
  * ```
114
114
  *
@@ -11,15 +11,15 @@ import * as outputs from "./types/output";
11
11
  * import * as harness from "@pulumi/harness";
12
12
  *
13
13
  * const test = new harness.PlatformCcmFilters("test", {
14
+ * filterProperties: {
15
+ * tags: ["foo:bar"],
16
+ * filterType: "CCMRecommendation",
17
+ * },
14
18
  * identifier: "identifier",
15
19
  * name: "name",
16
20
  * orgId: "org_id",
17
21
  * projectId: "project_id",
18
22
  * type: "CCMRecommendation",
19
- * filterProperties: {
20
- * tags: ["foo:bar"],
21
- * filterType: "CCMRecommendation",
22
- * },
23
23
  * filterVisibility: "EveryOne",
24
24
  * });
25
25
  * ```
@@ -38,15 +38,15 @@ const utilities = __importStar(require("./utilities"));
38
38
  * import * as harness from "@pulumi/harness";
39
39
  *
40
40
  * const test = new harness.PlatformCcmFilters("test", {
41
+ * filterProperties: {
42
+ * tags: ["foo:bar"],
43
+ * filterType: "CCMRecommendation",
44
+ * },
41
45
  * identifier: "identifier",
42
46
  * name: "name",
43
47
  * orgId: "org_id",
44
48
  * projectId: "project_id",
45
49
  * type: "CCMRecommendation",
46
- * filterProperties: {
47
- * tags: ["foo:bar"],
48
- * filterType: "CCMRecommendation",
49
- * },
50
50
  * filterVisibility: "EveryOne",
51
51
  * });
52
52
  * ```
@@ -13,18 +13,18 @@ import * as outputs from "../types/output";
13
13
  * import * as harness from "@pulumi/harness";
14
14
  *
15
15
  * const example = new harness.service.DiscoveryAgent("example", {
16
- * name: "ExampleAgent",
17
- * orgIdentifier: "your_org_id",
18
- * projectIdentifier: "your_project_id",
19
- * environmentIdentifier: "your_environment_id",
20
- * infraIdentifier: "your_infra_id",
21
16
  * configs: [{
22
- * collectorImage: "harness/service-discovery-collector:main-latest",
23
- * logWatcherImage: "harness/chaos-log-watcher:main-latest",
24
17
  * kubernetes: [{
25
18
  * namespace: "harness-sd",
26
19
  * }],
20
+ * collectorImage: "harness/service-discovery-collector:main-latest",
21
+ * logWatcherImage: "harness/chaos-log-watcher:main-latest",
27
22
  * }],
23
+ * name: "ExampleAgent",
24
+ * orgIdentifier: "your_org_id",
25
+ * projectIdentifier: "your_project_id",
26
+ * environmentIdentifier: "your_environment_id",
27
+ * infraIdentifier: "your_infra_id",
28
28
  * });
29
29
  * ```
30
30
  *
@@ -36,62 +36,56 @@ import * as outputs from "../types/output";
36
36
  *
37
37
  * // Create a new service discovery agent with minimal configuration
38
38
  * const example = new harness.service.DiscoveryAgent("example", {
39
+ * configs: [{
40
+ * kubernetes: [{
41
+ * namespace: "harness-sd",
42
+ * }],
43
+ * }],
39
44
  * name: "example-agent",
40
45
  * orgIdentifier: orgIdentifier,
41
46
  * projectIdentifier: projectIdentifier,
42
47
  * environmentIdentifier: environmentIdentifier,
43
48
  * infraIdentifier: "example-infra",
49
+ * });
50
+ * // Create a new service discovery agent with node agent enabled
51
+ * const nodeAgent = new harness.service.DiscoveryAgent("node_agent", {
44
52
  * configs: [{
53
+ * datas: [{
54
+ * enableNodeAgent: true,
55
+ * }],
45
56
  * kubernetes: [{
46
57
  * namespace: "harness-sd",
47
58
  * }],
48
59
  * }],
49
- * });
50
- * // Create a new service discovery agent with node agent enabled
51
- * const nodeAgent = new harness.service.DiscoveryAgent("node_agent", {
52
60
  * name: "node-agent-example",
53
61
  * orgIdentifier: orgIdentifier,
54
62
  * projectIdentifier: projectIdentifier,
55
63
  * environmentIdentifier: environmentIdentifier,
56
64
  * infraIdentifier: "node-agent-example",
57
- * configs: [{
58
- * kubernetes: [{
59
- * namespace: "harness-sd",
60
- * }],
61
- * datas: [{
62
- * enableNodeAgent: true,
63
- * }],
64
- * }],
65
65
  * });
66
66
  * // Create a new service discovery agent with full configuration
67
67
  * const fullConfig = new harness.service.DiscoveryAgent("full_config", {
68
- * name: "full-config-example",
69
- * orgIdentifier: orgIdentifier,
70
- * projectIdentifier: projectIdentifier,
71
- * environmentIdentifier: environmentIdentifier,
72
- * infraIdentifier: "full-config-example",
73
- * permanentInstallation: false,
74
- * correlationId: "full-config-correlation-123",
75
68
  * configs: [{
76
- * collectorImage: "harness/service-discovery-collector:main-latest",
77
- * logWatcherImage: "harness/chaos-log-watcher:main-latest",
78
- * skipSecureVerify: false,
69
+ * datas: [{
70
+ * crons: [{
71
+ * expression: "0/10 * * * *",
72
+ * }],
73
+ * enableNodeAgent: true,
74
+ * nodeAgentSelector: "node-role.kubernetes.io/worker=",
75
+ * enableBatchResources: true,
76
+ * enableOrphanedPod: true,
77
+ * namespaceSelector: "environment=dev",
78
+ * collectionWindowInMin: 15,
79
+ * blacklistedNamespaces: [
80
+ * "kube-system",
81
+ * "kube-public",
82
+ * ],
83
+ * observedNamespaces: [
84
+ * "default",
85
+ * "harness",
86
+ * ],
87
+ * }],
79
88
  * kubernetes: [{
80
- * namespace: "harness-sd",
81
- * serviceAccount: "harness-sd-sa",
82
- * imagePullPolicy: "IfNotPresent",
83
- * runAsUser: 2000,
84
- * runAsGroup: 2000,
85
- * labels: {
86
- * app: "service-discovery",
87
- * env: "dev",
88
- * },
89
- * annotations: {
90
- * "example.com/annotation": "value",
91
- * },
92
- * nodeSelector: {
93
- * "kubernetes.io/os": "linux",
94
- * },
95
89
  * resources: [{
96
90
  * limits: {
97
91
  * cpu: "500m",
@@ -108,25 +102,21 @@ import * as outputs from "../types/output";
108
102
  * value: "value1",
109
103
  * effect: "NoSchedule",
110
104
  * }],
111
- * }],
112
- * datas: [{
113
- * enableNodeAgent: true,
114
- * nodeAgentSelector: "node-role.kubernetes.io/worker=",
115
- * enableBatchResources: true,
116
- * enableOrphanedPod: true,
117
- * namespaceSelector: "environment=dev",
118
- * collectionWindowInMin: 15,
119
- * blacklistedNamespaces: [
120
- * "kube-system",
121
- * "kube-public",
122
- * ],
123
- * observedNamespaces: [
124
- * "default",
125
- * "harness",
126
- * ],
127
- * crons: [{
128
- * expression: "0/10 * * * *",
129
- * }],
105
+ * namespace: "harness-sd",
106
+ * serviceAccount: "harness-sd-sa",
107
+ * imagePullPolicy: "IfNotPresent",
108
+ * runAsUser: 2000,
109
+ * runAsGroup: 2000,
110
+ * labels: {
111
+ * app: "service-discovery",
112
+ * env: "dev",
113
+ * },
114
+ * annotations: {
115
+ * "example.com/annotation": "value",
116
+ * },
117
+ * nodeSelector: {
118
+ * "kubernetes.io/os": "linux",
119
+ * },
130
120
  * }],
131
121
  * mtls: [{
132
122
  * certPath: "/etc/certs/tls.crt",
@@ -140,7 +130,17 @@ import * as outputs from "../types/output";
140
130
  * noProxy: "localhost,127.0.0.1,.svc,.cluster.local",
141
131
  * url: "https://proxy.example.com",
142
132
  * }],
133
+ * collectorImage: "harness/service-discovery-collector:main-latest",
134
+ * logWatcherImage: "harness/chaos-log-watcher:main-latest",
135
+ * skipSecureVerify: false,
143
136
  * }],
137
+ * name: "full-config-example",
138
+ * orgIdentifier: orgIdentifier,
139
+ * projectIdentifier: projectIdentifier,
140
+ * environmentIdentifier: environmentIdentifier,
141
+ * infraIdentifier: "full-config-example",
142
+ * permanentInstallation: false,
143
+ * correlationId: "full-config-correlation-123",
144
144
  * });
145
145
  * ```
146
146
  *