@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/platform/usergroup.d.ts
CHANGED
|
@@ -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",
|
package/platform/usergroup.js
CHANGED
|
@@ -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",
|
package/platform/variables.d.ts
CHANGED
|
@@ -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
|
*
|
package/platform/variables.js
CHANGED
|
@@ -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
|
*
|
package/platform/workspace.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
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
|
*
|
package/platform/workspace.js
CHANGED
|
@@ -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
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
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
|
*
|
package/platformCcmFilters.d.ts
CHANGED
|
@@ -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
|
* ```
|
package/platformCcmFilters.js
CHANGED
|
@@ -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
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
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
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
* "
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
* "
|
|
125
|
-
*
|
|
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
|
*
|