@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/dbSchema.js
CHANGED
|
@@ -38,72 +38,61 @@ const utilities = __importStar(require("../utilities"));
|
|
|
38
38
|
* import * as harness from "@pulumi/harness";
|
|
39
39
|
*
|
|
40
40
|
* const defaultTypeTest = new harness.platform.DbSchema("default_type_test", {
|
|
41
|
-
* identifier: "identifier",
|
|
42
|
-
* orgId: "org_id",
|
|
43
|
-
* projectId: "project_id",
|
|
44
|
-
* name: "name",
|
|
45
|
-
* service: "service1",
|
|
46
|
-
* tags: [
|
|
47
|
-
* "foo:bar",
|
|
48
|
-
* "bar:foo",
|
|
49
|
-
* ],
|
|
50
41
|
* schemaSource: {
|
|
51
42
|
* connector: "gitConnector",
|
|
52
43
|
* repo: "TestRepo",
|
|
53
44
|
* location: "db/example-changelog.yaml",
|
|
54
45
|
* archivePath: "path/to/archive.zip",
|
|
55
46
|
* },
|
|
56
|
-
* });
|
|
57
|
-
* const liquibaseRepositoryTest = new harness.platform.DbSchema("liquibase_repository_test", {
|
|
58
47
|
* identifier: "identifier",
|
|
59
48
|
* orgId: "org_id",
|
|
60
49
|
* projectId: "project_id",
|
|
61
50
|
* name: "name",
|
|
62
51
|
* service: "service1",
|
|
63
|
-
* type: "Repository",
|
|
64
|
-
* migrationType: "Liquibase",
|
|
65
52
|
* tags: [
|
|
66
53
|
* "foo:bar",
|
|
67
54
|
* "bar:foo",
|
|
68
55
|
* ],
|
|
56
|
+
* });
|
|
57
|
+
* const liquibaseRepositoryTest = new harness.platform.DbSchema("liquibase_repository_test", {
|
|
69
58
|
* schemaSource: {
|
|
70
59
|
* connector: "gitConnector",
|
|
71
60
|
* repo: "TestRepo",
|
|
72
61
|
* location: "db/example-changelog.yaml",
|
|
73
62
|
* archivePath: "path/to/archive.zip",
|
|
74
63
|
* },
|
|
75
|
-
* });
|
|
76
|
-
* const liquibaseScriptTest = new harness.platform.DbSchema("liquibase_script_test", {
|
|
77
64
|
* identifier: "identifier",
|
|
78
65
|
* orgId: "org_id",
|
|
79
66
|
* projectId: "project_id",
|
|
80
67
|
* name: "name",
|
|
81
|
-
* migrationType: "Liquibase",
|
|
82
68
|
* service: "service1",
|
|
83
|
-
* type: "
|
|
69
|
+
* type: "Repository",
|
|
70
|
+
* migrationType: "Liquibase",
|
|
84
71
|
* tags: [
|
|
85
72
|
* "foo:bar",
|
|
86
73
|
* "bar:foo",
|
|
87
74
|
* ],
|
|
75
|
+
* });
|
|
76
|
+
* const liquibaseScriptTest = new harness.platform.DbSchema("liquibase_script_test", {
|
|
88
77
|
* changelogScript: {
|
|
89
78
|
* image: "plugins/image",
|
|
90
79
|
* command: "echo \\\"hello dbops\\\"",
|
|
91
80
|
* shell: "sh/bash",
|
|
92
81
|
* location: "db/example-changelog.yaml",
|
|
93
82
|
* },
|
|
94
|
-
* });
|
|
95
|
-
* const flywayRepositoryTest = new harness.platform.DbSchema("flyway_repository_test", {
|
|
96
83
|
* identifier: "identifier",
|
|
97
84
|
* orgId: "org_id",
|
|
98
85
|
* projectId: "project_id",
|
|
99
86
|
* name: "name",
|
|
87
|
+
* migrationType: "Liquibase",
|
|
100
88
|
* service: "service1",
|
|
101
|
-
* type: "
|
|
102
|
-
* migrationType: "Flyway",
|
|
89
|
+
* type: "Script",
|
|
103
90
|
* tags: [
|
|
104
91
|
* "foo:bar",
|
|
105
92
|
* "bar:foo",
|
|
106
93
|
* ],
|
|
94
|
+
* });
|
|
95
|
+
* const flywayRepositoryTest = new harness.platform.DbSchema("flyway_repository_test", {
|
|
107
96
|
* schemaSource: {
|
|
108
97
|
* connector: "gitConnector",
|
|
109
98
|
* repo: "TestRepo",
|
|
@@ -111,19 +100,19 @@ const utilities = __importStar(require("../utilities"));
|
|
|
111
100
|
* toml: "db/flyway.toml",
|
|
112
101
|
* archivePath: "path/to/archive.zip",
|
|
113
102
|
* },
|
|
114
|
-
* });
|
|
115
|
-
* const flywayScriptTest = new harness.platform.DbSchema("flyway_script_test", {
|
|
116
103
|
* identifier: "identifier",
|
|
117
104
|
* orgId: "org_id",
|
|
118
105
|
* projectId: "project_id",
|
|
119
106
|
* name: "name",
|
|
120
|
-
* migrationType: "Flyway",
|
|
121
107
|
* service: "service1",
|
|
122
|
-
* type: "
|
|
108
|
+
* type: "Repository",
|
|
109
|
+
* migrationType: "Flyway",
|
|
123
110
|
* tags: [
|
|
124
111
|
* "foo:bar",
|
|
125
112
|
* "bar:foo",
|
|
126
113
|
* ],
|
|
114
|
+
* });
|
|
115
|
+
* const flywayScriptTest = new harness.platform.DbSchema("flyway_script_test", {
|
|
127
116
|
* changelogScript: {
|
|
128
117
|
* image: "plugins/image",
|
|
129
118
|
* command: "echo \\\"hello dbops\\\"",
|
|
@@ -131,42 +120,53 @@ const utilities = __importStar(require("../utilities"));
|
|
|
131
120
|
* location: "db/flyway/migrations",
|
|
132
121
|
* toml: "db/flyway.toml",
|
|
133
122
|
* },
|
|
134
|
-
* });
|
|
135
|
-
* const perconaEnabledTest = new harness.platform.DbSchema("percona_enabled_test", {
|
|
136
123
|
* identifier: "identifier",
|
|
137
124
|
* orgId: "org_id",
|
|
138
125
|
* projectId: "project_id",
|
|
139
126
|
* name: "name",
|
|
127
|
+
* migrationType: "Flyway",
|
|
140
128
|
* service: "service1",
|
|
141
|
-
* type: "
|
|
142
|
-
* migrationType: "Liquibase",
|
|
143
|
-
* usePercona: true,
|
|
129
|
+
* type: "Script",
|
|
144
130
|
* tags: [
|
|
145
131
|
* "foo:bar",
|
|
146
132
|
* "bar:foo",
|
|
147
133
|
* ],
|
|
134
|
+
* });
|
|
135
|
+
* const perconaEnabledTest = new harness.platform.DbSchema("percona_enabled_test", {
|
|
148
136
|
* schemaSource: {
|
|
149
137
|
* connector: "gitConnector",
|
|
150
138
|
* repo: "TestRepo",
|
|
151
139
|
* location: "db/example-changelog.yaml",
|
|
152
140
|
* archivePath: "path/to/archive.zip",
|
|
153
141
|
* },
|
|
154
|
-
* });
|
|
155
|
-
* const harnessCodeRepo = new harness.platform.DbSchema("harness_code_repo", {
|
|
156
142
|
* identifier: "identifier",
|
|
157
143
|
* orgId: "org_id",
|
|
158
144
|
* projectId: "project_id",
|
|
159
145
|
* name: "name",
|
|
160
146
|
* service: "service1",
|
|
161
147
|
* type: "Repository",
|
|
148
|
+
* migrationType: "Liquibase",
|
|
149
|
+
* usePercona: true,
|
|
162
150
|
* tags: [
|
|
163
151
|
* "foo:bar",
|
|
164
152
|
* "bar:foo",
|
|
165
153
|
* ],
|
|
154
|
+
* });
|
|
155
|
+
* const harnessCodeRepo = new harness.platform.DbSchema("harness_code_repo", {
|
|
166
156
|
* schemaSource: {
|
|
167
157
|
* repo: "my-harness-code-repo",
|
|
168
158
|
* location: "db/example-changelog.yaml",
|
|
169
159
|
* },
|
|
160
|
+
* identifier: "identifier",
|
|
161
|
+
* orgId: "org_id",
|
|
162
|
+
* projectId: "project_id",
|
|
163
|
+
* name: "name",
|
|
164
|
+
* service: "service1",
|
|
165
|
+
* type: "Repository",
|
|
166
|
+
* tags: [
|
|
167
|
+
* "foo:bar",
|
|
168
|
+
* "bar:foo",
|
|
169
|
+
* ],
|
|
170
170
|
* });
|
|
171
171
|
* ```
|
|
172
172
|
*
|
|
@@ -12,29 +12,29 @@ import * as outputs from "../types/output";
|
|
|
12
12
|
*
|
|
13
13
|
* // Authentication mechanism as api token
|
|
14
14
|
* const token = new harness.platform.ElasticsearchConnector("token", {
|
|
15
|
+
* apiToken: {
|
|
16
|
+
* clientId: "client_id",
|
|
17
|
+
* clientSecretRef: "account.secret_id",
|
|
18
|
+
* },
|
|
15
19
|
* identifier: "identifier",
|
|
16
20
|
* name: "name",
|
|
17
21
|
* description: "test",
|
|
18
22
|
* tags: ["foo:bar"],
|
|
19
23
|
* url: "http://elk6.dev.harness.io:9200/",
|
|
20
24
|
* delegateSelectors: ["harness-delegate"],
|
|
21
|
-
* apiToken: {
|
|
22
|
-
* clientId: "client_id",
|
|
23
|
-
* clientSecretRef: "account.secret_id",
|
|
24
|
-
* },
|
|
25
25
|
* });
|
|
26
26
|
* // Authentication mechanism as username and password
|
|
27
27
|
* const test = new harness.platform.ElasticsearchConnector("test", {
|
|
28
|
+
* usernamePassword: {
|
|
29
|
+
* username: "username",
|
|
30
|
+
* passwordRef: "account.secret_id",
|
|
31
|
+
* },
|
|
28
32
|
* identifier: "identifier",
|
|
29
33
|
* name: "name",
|
|
30
34
|
* description: "test",
|
|
31
35
|
* tags: ["foo:bar"],
|
|
32
36
|
* url: "http://elk6.dev.harness.io:9200/",
|
|
33
37
|
* delegateSelectors: ["harness-delegate"],
|
|
34
|
-
* usernamePassword: {
|
|
35
|
-
* username: "username",
|
|
36
|
-
* passwordRef: "account.secret_id",
|
|
37
|
-
* },
|
|
38
38
|
* });
|
|
39
39
|
* // Authentication mechanism without authentication
|
|
40
40
|
* const noAuthentication = new harness.platform.ElasticsearchConnector("no_authentication", {
|
|
@@ -39,29 +39,29 @@ const utilities = __importStar(require("../utilities"));
|
|
|
39
39
|
*
|
|
40
40
|
* // Authentication mechanism as api token
|
|
41
41
|
* const token = new harness.platform.ElasticsearchConnector("token", {
|
|
42
|
+
* apiToken: {
|
|
43
|
+
* clientId: "client_id",
|
|
44
|
+
* clientSecretRef: "account.secret_id",
|
|
45
|
+
* },
|
|
42
46
|
* identifier: "identifier",
|
|
43
47
|
* name: "name",
|
|
44
48
|
* description: "test",
|
|
45
49
|
* tags: ["foo:bar"],
|
|
46
50
|
* url: "http://elk6.dev.harness.io:9200/",
|
|
47
51
|
* delegateSelectors: ["harness-delegate"],
|
|
48
|
-
* apiToken: {
|
|
49
|
-
* clientId: "client_id",
|
|
50
|
-
* clientSecretRef: "account.secret_id",
|
|
51
|
-
* },
|
|
52
52
|
* });
|
|
53
53
|
* // Authentication mechanism as username and password
|
|
54
54
|
* const test = new harness.platform.ElasticsearchConnector("test", {
|
|
55
|
+
* usernamePassword: {
|
|
56
|
+
* username: "username",
|
|
57
|
+
* passwordRef: "account.secret_id",
|
|
58
|
+
* },
|
|
55
59
|
* identifier: "identifier",
|
|
56
60
|
* name: "name",
|
|
57
61
|
* description: "test",
|
|
58
62
|
* tags: ["foo:bar"],
|
|
59
63
|
* url: "http://elk6.dev.harness.io:9200/",
|
|
60
64
|
* delegateSelectors: ["harness-delegate"],
|
|
61
|
-
* usernamePassword: {
|
|
62
|
-
* username: "username",
|
|
63
|
-
* passwordRef: "account.secret_id",
|
|
64
|
-
* },
|
|
65
65
|
* });
|
|
66
66
|
* // Authentication mechanism without authentication
|
|
67
67
|
* const noAuthentication = new harness.platform.ElasticsearchConnector("no_authentication", {
|
|
@@ -11,6 +11,14 @@ import * as outputs from "../types/output";
|
|
|
11
11
|
* import * as harness from "@pulumi/harness";
|
|
12
12
|
*
|
|
13
13
|
* const example = new harness.platform.Environment("example", {
|
|
14
|
+
* gitDetails: {
|
|
15
|
+
* branchName: "branchName",
|
|
16
|
+
* commitMessage: "commitMessage",
|
|
17
|
+
* filePath: "filePath",
|
|
18
|
+
* connectorRef: "connectorRef",
|
|
19
|
+
* storeType: "REMOTE",
|
|
20
|
+
* repoName: "repoName",
|
|
21
|
+
* },
|
|
14
22
|
* identifier: "identifier",
|
|
15
23
|
* name: "name",
|
|
16
24
|
* orgId: "org_id",
|
|
@@ -20,14 +28,6 @@ import * as outputs from "../types/output";
|
|
|
20
28
|
* "bar:foo",
|
|
21
29
|
* ],
|
|
22
30
|
* type: "PreProduction",
|
|
23
|
-
* gitDetails: {
|
|
24
|
-
* branchName: "branchName",
|
|
25
|
-
* commitMessage: "commitMessage",
|
|
26
|
-
* filePath: "filePath",
|
|
27
|
-
* connectorRef: "connectorRef",
|
|
28
|
-
* storeType: "REMOTE",
|
|
29
|
-
* repoName: "repoName",
|
|
30
|
-
* },
|
|
31
31
|
* yaml: `environment:
|
|
32
32
|
* name: name
|
|
33
33
|
* identifier: identifier
|
|
@@ -75,9 +75,6 @@ import * as outputs from "../types/output";
|
|
|
75
75
|
* });
|
|
76
76
|
* //## Importing Environment from Git
|
|
77
77
|
* const test = new harness.platform.Environment("test", {
|
|
78
|
-
* identifier: "accEnv",
|
|
79
|
-
* name: "accEnv",
|
|
80
|
-
* type: "PreProduction",
|
|
81
78
|
* gitDetails: {
|
|
82
79
|
* storeType: "REMOTE",
|
|
83
80
|
* connectorRef: "account.DoNotDeleteGitX",
|
|
@@ -86,6 +83,9 @@ import * as outputs from "../types/output";
|
|
|
86
83
|
* branch: "main",
|
|
87
84
|
* importFromGit: true,
|
|
88
85
|
* },
|
|
86
|
+
* identifier: "accEnv",
|
|
87
|
+
* name: "accEnv",
|
|
88
|
+
* type: "PreProduction",
|
|
89
89
|
* });
|
|
90
90
|
* ```
|
|
91
91
|
*
|
package/platform/environment.js
CHANGED
|
@@ -38,6 +38,14 @@ const utilities = __importStar(require("../utilities"));
|
|
|
38
38
|
* import * as harness from "@pulumi/harness";
|
|
39
39
|
*
|
|
40
40
|
* const example = new harness.platform.Environment("example", {
|
|
41
|
+
* gitDetails: {
|
|
42
|
+
* branchName: "branchName",
|
|
43
|
+
* commitMessage: "commitMessage",
|
|
44
|
+
* filePath: "filePath",
|
|
45
|
+
* connectorRef: "connectorRef",
|
|
46
|
+
* storeType: "REMOTE",
|
|
47
|
+
* repoName: "repoName",
|
|
48
|
+
* },
|
|
41
49
|
* identifier: "identifier",
|
|
42
50
|
* name: "name",
|
|
43
51
|
* orgId: "org_id",
|
|
@@ -47,14 +55,6 @@ const utilities = __importStar(require("../utilities"));
|
|
|
47
55
|
* "bar:foo",
|
|
48
56
|
* ],
|
|
49
57
|
* type: "PreProduction",
|
|
50
|
-
* gitDetails: {
|
|
51
|
-
* branchName: "branchName",
|
|
52
|
-
* commitMessage: "commitMessage",
|
|
53
|
-
* filePath: "filePath",
|
|
54
|
-
* connectorRef: "connectorRef",
|
|
55
|
-
* storeType: "REMOTE",
|
|
56
|
-
* repoName: "repoName",
|
|
57
|
-
* },
|
|
58
58
|
* yaml: `environment:
|
|
59
59
|
* name: name
|
|
60
60
|
* identifier: identifier
|
|
@@ -102,9 +102,6 @@ const utilities = __importStar(require("../utilities"));
|
|
|
102
102
|
* });
|
|
103
103
|
* //## Importing Environment from Git
|
|
104
104
|
* const test = new harness.platform.Environment("test", {
|
|
105
|
-
* identifier: "accEnv",
|
|
106
|
-
* name: "accEnv",
|
|
107
|
-
* type: "PreProduction",
|
|
108
105
|
* gitDetails: {
|
|
109
106
|
* storeType: "REMOTE",
|
|
110
107
|
* connectorRef: "account.DoNotDeleteGitX",
|
|
@@ -113,6 +110,9 @@ const utilities = __importStar(require("../utilities"));
|
|
|
113
110
|
* branch: "main",
|
|
114
111
|
* importFromGit: true,
|
|
115
112
|
* },
|
|
113
|
+
* identifier: "accEnv",
|
|
114
|
+
* name: "accEnv",
|
|
115
|
+
* type: "PreProduction",
|
|
116
116
|
* });
|
|
117
117
|
* ```
|
|
118
118
|
*
|
|
@@ -12,21 +12,19 @@ import * as outputs from "../types/output";
|
|
|
12
12
|
*
|
|
13
13
|
* // mapping a cluster to a project level env
|
|
14
14
|
* const example = new harness.platform.EnvironmentClustersMapping("example", {
|
|
15
|
-
* identifier: "mycustomidentifier",
|
|
16
|
-
* orgId: "orgIdentifer",
|
|
17
|
-
* projectId: "projectIdentifier",
|
|
18
|
-
* envId: "exampleEnvId",
|
|
19
15
|
* clusters: [{
|
|
20
16
|
* identifier: "incluster",
|
|
21
17
|
* name: "in-cluster",
|
|
22
18
|
* agentIdentifier: "account.gitopsagentdev",
|
|
23
19
|
* scope: "ACCOUNT",
|
|
24
20
|
* }],
|
|
21
|
+
* identifier: "mycustomidentifier",
|
|
22
|
+
* orgId: "orgIdentifer",
|
|
23
|
+
* projectId: "projectIdentifier",
|
|
24
|
+
* envId: "exampleEnvId",
|
|
25
25
|
* });
|
|
26
26
|
* // mapping two clusters to account level env
|
|
27
27
|
* const example2 = new harness.platform.EnvironmentClustersMapping("example2", {
|
|
28
|
-
* identifier: "mycustomidentifier",
|
|
29
|
-
* envId: "env1",
|
|
30
28
|
* clusters: [
|
|
31
29
|
* {
|
|
32
30
|
* identifier: "clusterA",
|
|
@@ -41,6 +39,8 @@ import * as outputs from "../types/output";
|
|
|
41
39
|
* scope: "ACCOUNT",
|
|
42
40
|
* },
|
|
43
41
|
* ],
|
|
42
|
+
* identifier: "mycustomidentifier",
|
|
43
|
+
* envId: "env1",
|
|
44
44
|
* });
|
|
45
45
|
* ```
|
|
46
46
|
*
|
|
@@ -39,21 +39,19 @@ const utilities = __importStar(require("../utilities"));
|
|
|
39
39
|
*
|
|
40
40
|
* // mapping a cluster to a project level env
|
|
41
41
|
* const example = new harness.platform.EnvironmentClustersMapping("example", {
|
|
42
|
-
* identifier: "mycustomidentifier",
|
|
43
|
-
* orgId: "orgIdentifer",
|
|
44
|
-
* projectId: "projectIdentifier",
|
|
45
|
-
* envId: "exampleEnvId",
|
|
46
42
|
* clusters: [{
|
|
47
43
|
* identifier: "incluster",
|
|
48
44
|
* name: "in-cluster",
|
|
49
45
|
* agentIdentifier: "account.gitopsagentdev",
|
|
50
46
|
* scope: "ACCOUNT",
|
|
51
47
|
* }],
|
|
48
|
+
* identifier: "mycustomidentifier",
|
|
49
|
+
* orgId: "orgIdentifer",
|
|
50
|
+
* projectId: "projectIdentifier",
|
|
51
|
+
* envId: "exampleEnvId",
|
|
52
52
|
* });
|
|
53
53
|
* // mapping two clusters to account level env
|
|
54
54
|
* const example2 = new harness.platform.EnvironmentClustersMapping("example2", {
|
|
55
|
-
* identifier: "mycustomidentifier",
|
|
56
|
-
* envId: "env1",
|
|
57
55
|
* clusters: [
|
|
58
56
|
* {
|
|
59
57
|
* identifier: "clusterA",
|
|
@@ -68,6 +66,8 @@ const utilities = __importStar(require("../utilities"));
|
|
|
68
66
|
* scope: "ACCOUNT",
|
|
69
67
|
* },
|
|
70
68
|
* ],
|
|
69
|
+
* identifier: "mycustomidentifier",
|
|
70
|
+
* envId: "env1",
|
|
71
71
|
* });
|
|
72
72
|
* ```
|
|
73
73
|
*
|
package/platform/filters.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.Filters("test", {
|
|
14
|
+
* filterProperties: {
|
|
15
|
+
* tags: ["foo:bar"],
|
|
16
|
+
* filterType: "Connector",
|
|
17
|
+
* },
|
|
14
18
|
* identifier: "identifier",
|
|
15
19
|
* name: "name",
|
|
16
20
|
* orgId: "org_id",
|
|
17
21
|
* projectId: "project_id",
|
|
18
22
|
* type: "Connector",
|
|
19
|
-
* filterProperties: {
|
|
20
|
-
* tags: ["foo:bar"],
|
|
21
|
-
* filterType: "Connector",
|
|
22
|
-
* },
|
|
23
23
|
* filterVisibility: "EveryOne",
|
|
24
24
|
* });
|
|
25
25
|
* ```
|
package/platform/filters.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.Filters("test", {
|
|
41
|
+
* filterProperties: {
|
|
42
|
+
* tags: ["foo:bar"],
|
|
43
|
+
* filterType: "Connector",
|
|
44
|
+
* },
|
|
41
45
|
* identifier: "identifier",
|
|
42
46
|
* name: "name",
|
|
43
47
|
* orgId: "org_id",
|
|
44
48
|
* projectId: "project_id",
|
|
45
49
|
* type: "Connector",
|
|
46
|
-
* filterProperties: {
|
|
47
|
-
* tags: ["foo:bar"],
|
|
48
|
-
* filterType: "Connector",
|
|
49
|
-
* },
|
|
50
50
|
* filterVisibility: "EveryOne",
|
|
51
51
|
* });
|
|
52
52
|
* ```
|
|
@@ -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.platform.GcpCloudCostConnector("test", {
|
|
14
|
+
* billingExportSpec: {
|
|
15
|
+
* dataSetId: "data_set_id",
|
|
16
|
+
* tableId: "table_id",
|
|
17
|
+
* },
|
|
14
18
|
* identifier: "identifier",
|
|
15
19
|
* name: "name",
|
|
16
20
|
* description: "test",
|
|
@@ -23,10 +27,6 @@ import * as outputs from "../types/output";
|
|
|
23
27
|
* ],
|
|
24
28
|
* gcpProjectId: "gcp_project_id",
|
|
25
29
|
* serviceAccountEmail: "service_account_email",
|
|
26
|
-
* billingExportSpec: {
|
|
27
|
-
* dataSetId: "data_set_id",
|
|
28
|
-
* tableId: "table_id",
|
|
29
|
-
* },
|
|
30
30
|
* });
|
|
31
31
|
* ```
|
|
32
32
|
*
|
|
@@ -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.platform.GcpCloudCostConnector("test", {
|
|
41
|
+
* billingExportSpec: {
|
|
42
|
+
* dataSetId: "data_set_id",
|
|
43
|
+
* tableId: "table_id",
|
|
44
|
+
* },
|
|
41
45
|
* identifier: "identifier",
|
|
42
46
|
* name: "name",
|
|
43
47
|
* description: "test",
|
|
@@ -50,10 +54,6 @@ const utilities = __importStar(require("../utilities"));
|
|
|
50
54
|
* ],
|
|
51
55
|
* gcpProjectId: "gcp_project_id",
|
|
52
56
|
* serviceAccountEmail: "service_account_email",
|
|
53
|
-
* billingExportSpec: {
|
|
54
|
-
* dataSetId: "data_set_id",
|
|
55
|
-
* tableId: "table_id",
|
|
56
|
-
* },
|
|
57
57
|
* });
|
|
58
58
|
* ```
|
|
59
59
|
*
|
|
@@ -27,31 +27,31 @@ import * as outputs from "../types/output";
|
|
|
27
27
|
* inheritFromDelegate: true,
|
|
28
28
|
* });
|
|
29
29
|
* const gcpSmOidcPlatform = new harness.platform.GcpSecretManagerConnector("gcp_sm_oidc_platform", {
|
|
30
|
+
* oidcAuthentications: [{
|
|
31
|
+
* workloadPoolId: "harness-pool-test",
|
|
32
|
+
* providerId: "harness",
|
|
33
|
+
* gcpProjectId: "1234567",
|
|
34
|
+
* serviceAccountEmail: "harness.sample@iam.gserviceaccount.com",
|
|
35
|
+
* }],
|
|
30
36
|
* identifier: "identifier",
|
|
31
37
|
* name: "name",
|
|
32
38
|
* description: "test",
|
|
33
39
|
* tags: ["foo:bar"],
|
|
34
40
|
* executeOnDelegate: false,
|
|
41
|
+
* });
|
|
42
|
+
* const gcpSmOidcDelegate = new harness.platform.GcpSecretManagerConnector("gcp_sm_oidc_delegate", {
|
|
35
43
|
* oidcAuthentications: [{
|
|
36
44
|
* workloadPoolId: "harness-pool-test",
|
|
37
45
|
* providerId: "harness",
|
|
38
46
|
* gcpProjectId: "1234567",
|
|
39
47
|
* serviceAccountEmail: "harness.sample@iam.gserviceaccount.com",
|
|
40
48
|
* }],
|
|
41
|
-
* });
|
|
42
|
-
* const gcpSmOidcDelegate = new harness.platform.GcpSecretManagerConnector("gcp_sm_oidc_delegate", {
|
|
43
49
|
* identifier: "identifier",
|
|
44
50
|
* name: "name",
|
|
45
51
|
* description: "test",
|
|
46
52
|
* tags: ["foo:bar"],
|
|
47
53
|
* "default": true,
|
|
48
54
|
* delegateSelectors: ["harness-delegate"],
|
|
49
|
-
* oidcAuthentications: [{
|
|
50
|
-
* workloadPoolId: "harness-pool-test",
|
|
51
|
-
* providerId: "harness",
|
|
52
|
-
* gcpProjectId: "1234567",
|
|
53
|
-
* serviceAccountEmail: "harness.sample@iam.gserviceaccount.com",
|
|
54
|
-
* }],
|
|
55
55
|
* });
|
|
56
56
|
* ```
|
|
57
57
|
*
|
|
@@ -54,31 +54,31 @@ const utilities = __importStar(require("../utilities"));
|
|
|
54
54
|
* inheritFromDelegate: true,
|
|
55
55
|
* });
|
|
56
56
|
* const gcpSmOidcPlatform = new harness.platform.GcpSecretManagerConnector("gcp_sm_oidc_platform", {
|
|
57
|
+
* oidcAuthentications: [{
|
|
58
|
+
* workloadPoolId: "harness-pool-test",
|
|
59
|
+
* providerId: "harness",
|
|
60
|
+
* gcpProjectId: "1234567",
|
|
61
|
+
* serviceAccountEmail: "harness.sample@iam.gserviceaccount.com",
|
|
62
|
+
* }],
|
|
57
63
|
* identifier: "identifier",
|
|
58
64
|
* name: "name",
|
|
59
65
|
* description: "test",
|
|
60
66
|
* tags: ["foo:bar"],
|
|
61
67
|
* executeOnDelegate: false,
|
|
68
|
+
* });
|
|
69
|
+
* const gcpSmOidcDelegate = new harness.platform.GcpSecretManagerConnector("gcp_sm_oidc_delegate", {
|
|
62
70
|
* oidcAuthentications: [{
|
|
63
71
|
* workloadPoolId: "harness-pool-test",
|
|
64
72
|
* providerId: "harness",
|
|
65
73
|
* gcpProjectId: "1234567",
|
|
66
74
|
* serviceAccountEmail: "harness.sample@iam.gserviceaccount.com",
|
|
67
75
|
* }],
|
|
68
|
-
* });
|
|
69
|
-
* const gcpSmOidcDelegate = new harness.platform.GcpSecretManagerConnector("gcp_sm_oidc_delegate", {
|
|
70
76
|
* identifier: "identifier",
|
|
71
77
|
* name: "name",
|
|
72
78
|
* description: "test",
|
|
73
79
|
* tags: ["foo:bar"],
|
|
74
80
|
* "default": true,
|
|
75
81
|
* delegateSelectors: ["harness-delegate"],
|
|
76
|
-
* oidcAuthentications: [{
|
|
77
|
-
* workloadPoolId: "harness-pool-test",
|
|
78
|
-
* providerId: "harness",
|
|
79
|
-
* gcpProjectId: "1234567",
|
|
80
|
-
* serviceAccountEmail: "harness.sample@iam.gserviceaccount.com",
|
|
81
|
-
* }],
|
|
82
82
|
* });
|
|
83
83
|
* ```
|
|
84
84
|
*
|
|
@@ -12,21 +12,19 @@ import * as outputs from "../types/output";
|
|
|
12
12
|
*
|
|
13
13
|
* // data source for gitops clusters mapped to a project level env
|
|
14
14
|
* const example = harness.platform.getEnvironmentClustersMapping({
|
|
15
|
-
* identifier: "mycustomidentifier",
|
|
16
|
-
* orgId: "orgIdentifer",
|
|
17
|
-
* projectId: "projectIdentifier",
|
|
18
|
-
* envId: "exampleEnvId",
|
|
19
15
|
* clusters: [{
|
|
20
16
|
* identifier: "incluster",
|
|
21
17
|
* name: "in-cluster",
|
|
22
18
|
* agentIdentifier: "account.gitopsagentdev",
|
|
23
19
|
* scope: "ACCOUNT",
|
|
24
20
|
* }],
|
|
21
|
+
* identifier: "mycustomidentifier",
|
|
22
|
+
* orgId: "orgIdentifer",
|
|
23
|
+
* projectId: "projectIdentifier",
|
|
24
|
+
* envId: "exampleEnvId",
|
|
25
25
|
* });
|
|
26
26
|
* // data source for two gitops clusters mapped to an account level env
|
|
27
27
|
* const example2 = harness.platform.getEnvironmentClustersMapping({
|
|
28
|
-
* identifier: "mycustomidentifier",
|
|
29
|
-
* envId: "env1",
|
|
30
28
|
* clusters: [
|
|
31
29
|
* {
|
|
32
30
|
* identifier: "clusterA",
|
|
@@ -41,6 +39,8 @@ import * as outputs from "../types/output";
|
|
|
41
39
|
* scope: "ACCOUNT",
|
|
42
40
|
* },
|
|
43
41
|
* ],
|
|
42
|
+
* identifier: "mycustomidentifier",
|
|
43
|
+
* envId: "env1",
|
|
44
44
|
* });
|
|
45
45
|
* ```
|
|
46
46
|
*/
|
|
@@ -114,21 +114,19 @@ export interface GetEnvironmentClustersMappingResult {
|
|
|
114
114
|
*
|
|
115
115
|
* // data source for gitops clusters mapped to a project level env
|
|
116
116
|
* const example = harness.platform.getEnvironmentClustersMapping({
|
|
117
|
-
* identifier: "mycustomidentifier",
|
|
118
|
-
* orgId: "orgIdentifer",
|
|
119
|
-
* projectId: "projectIdentifier",
|
|
120
|
-
* envId: "exampleEnvId",
|
|
121
117
|
* clusters: [{
|
|
122
118
|
* identifier: "incluster",
|
|
123
119
|
* name: "in-cluster",
|
|
124
120
|
* agentIdentifier: "account.gitopsagentdev",
|
|
125
121
|
* scope: "ACCOUNT",
|
|
126
122
|
* }],
|
|
123
|
+
* identifier: "mycustomidentifier",
|
|
124
|
+
* orgId: "orgIdentifer",
|
|
125
|
+
* projectId: "projectIdentifier",
|
|
126
|
+
* envId: "exampleEnvId",
|
|
127
127
|
* });
|
|
128
128
|
* // data source for two gitops clusters mapped to an account level env
|
|
129
129
|
* const example2 = harness.platform.getEnvironmentClustersMapping({
|
|
130
|
-
* identifier: "mycustomidentifier",
|
|
131
|
-
* envId: "env1",
|
|
132
130
|
* clusters: [
|
|
133
131
|
* {
|
|
134
132
|
* identifier: "clusterA",
|
|
@@ -143,6 +141,8 @@ export interface GetEnvironmentClustersMappingResult {
|
|
|
143
141
|
* scope: "ACCOUNT",
|
|
144
142
|
* },
|
|
145
143
|
* ],
|
|
144
|
+
* identifier: "mycustomidentifier",
|
|
145
|
+
* envId: "env1",
|
|
146
146
|
* });
|
|
147
147
|
* ```
|
|
148
148
|
*/
|