@pulumi/harness 0.9.1 → 0.9.2
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/ruleEcs.d.ts +28 -0
- package/autostopping/ruleEcs.js +28 -0
- package/autostopping/ruleEcs.js.map +1 -1
- package/package.json +2 -2
- package/platform/connectorRancher.d.ts +17 -0
- package/platform/connectorRancher.js +17 -0
- package/platform/connectorRancher.js.map +1 -1
- package/platform/environment.d.ts +83 -0
- package/platform/environment.js +83 -0
- package/platform/environment.js.map +1 -1
- package/platform/gcpSecretManagerConnector.d.ts +49 -0
- package/platform/gcpSecretManagerConnector.js +49 -0
- package/platform/gcpSecretManagerConnector.js.map +1 -1
- package/platform/getSecretWinrm.d.ts +147 -0
- package/platform/getSecretWinrm.js +84 -0
- package/platform/getSecretWinrm.js.map +1 -0
- package/platform/index.d.ts +6 -0
- package/platform/index.js +12 -4
- package/platform/index.js.map +1 -1
- package/platform/infraModuleTesting.d.ts +18 -0
- package/platform/infraModuleTesting.js +18 -0
- package/platform/infraModuleTesting.js.map +1 -1
- package/platform/infrastructure.d.ts +40 -0
- package/platform/infrastructure.js +40 -0
- package/platform/infrastructure.js.map +1 -1
- package/platform/secretWinrm.d.ts +440 -0
- package/platform/secretWinrm.js +362 -0
- package/platform/secretWinrm.js.map +1 -0
- package/platform/service.d.ts +75 -0
- package/platform/service.js +75 -0
- package/platform/service.js.map +1 -1
- package/types/input.d.ts +72 -0
- package/types/output.d.ts +144 -0
|
@@ -5,6 +5,34 @@ import * as outputs from "../types/output";
|
|
|
5
5
|
* Resource for creating a Harness Variables.
|
|
6
6
|
*
|
|
7
7
|
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as harness from "@pulumi/harness";
|
|
12
|
+
*
|
|
13
|
+
* const test = new harness.autostopping.RuleEcs("test", {
|
|
14
|
+
* name: "name",
|
|
15
|
+
* cloudConnectorId: "cloud_connector_id",
|
|
16
|
+
* idleTimeMins: 10,
|
|
17
|
+
* dryRun: true,
|
|
18
|
+
* container: {
|
|
19
|
+
* cluster: "cluster",
|
|
20
|
+
* service: "service",
|
|
21
|
+
* region: "us-east-1",
|
|
22
|
+
* taskCount: 1,
|
|
23
|
+
* },
|
|
24
|
+
* tcp: [{
|
|
25
|
+
* proxyId: "proxy_id",
|
|
26
|
+
* forwardRule: [{
|
|
27
|
+
* port: 2233,
|
|
28
|
+
* }],
|
|
29
|
+
* }],
|
|
30
|
+
* depends: [{
|
|
31
|
+
* ruleId: 24576,
|
|
32
|
+
* delayInSec: 5,
|
|
33
|
+
* }],
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
8
36
|
*/
|
|
9
37
|
export declare class RuleEcs extends pulumi.CustomResource {
|
|
10
38
|
/**
|
package/autostopping/ruleEcs.js
CHANGED
|
@@ -9,6 +9,34 @@ const utilities = require("../utilities");
|
|
|
9
9
|
* Resource for creating a Harness Variables.
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as harness from "@pulumi/harness";
|
|
16
|
+
*
|
|
17
|
+
* const test = new harness.autostopping.RuleEcs("test", {
|
|
18
|
+
* name: "name",
|
|
19
|
+
* cloudConnectorId: "cloud_connector_id",
|
|
20
|
+
* idleTimeMins: 10,
|
|
21
|
+
* dryRun: true,
|
|
22
|
+
* container: {
|
|
23
|
+
* cluster: "cluster",
|
|
24
|
+
* service: "service",
|
|
25
|
+
* region: "us-east-1",
|
|
26
|
+
* taskCount: 1,
|
|
27
|
+
* },
|
|
28
|
+
* tcp: [{
|
|
29
|
+
* proxyId: "proxy_id",
|
|
30
|
+
* forwardRule: [{
|
|
31
|
+
* port: 2233,
|
|
32
|
+
* }],
|
|
33
|
+
* }],
|
|
34
|
+
* depends: [{
|
|
35
|
+
* ruleId: 24576,
|
|
36
|
+
* delayInSec: 5,
|
|
37
|
+
* }],
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
12
40
|
*/
|
|
13
41
|
class RuleEcs extends pulumi.CustomResource {
|
|
14
42
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ruleEcs.js","sourceRoot":"","sources":["../../autostopping/ruleEcs.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"ruleEcs.js","sourceRoot":"","sources":["../../autostopping/ruleEcs.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC9D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;IA4CD,YAAY,IAAY,EAAE,WAAwC,EAAE,IAAmC;QACnG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAuC,CAAC;YACtD,cAAc,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,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AArGL,0BAsGC;AAxFG,gBAAgB;AACO,oBAAY,GAAG,sCAAsC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/harness",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Harness resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"pulumi": {
|
|
24
24
|
"resource": true,
|
|
25
25
|
"name": "harness",
|
|
26
|
-
"version": "0.9.
|
|
26
|
+
"version": "0.9.2",
|
|
27
27
|
"server": "github://api.github.com/pulumi"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -6,6 +6,23 @@ import * as outputs from "../types/output";
|
|
|
6
6
|
*
|
|
7
7
|
* ## Example Usage
|
|
8
8
|
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as harness from "@pulumi/harness";
|
|
12
|
+
*
|
|
13
|
+
* const bearerToken = new harness.platform.KubernetesConnector("bearer_token", {
|
|
14
|
+
* identifier: "identifier",
|
|
15
|
+
* name: "name",
|
|
16
|
+
* description: "description",
|
|
17
|
+
* tags: ["foo:bar"],
|
|
18
|
+
* delegateSelectors: ["harness-delegate"],
|
|
19
|
+
* rancherUrl: "https://rancher.cluster.example",
|
|
20
|
+
* bearerToken: [{
|
|
21
|
+
* bearerTokenRef: "account.test_rancher_bearer_token",
|
|
22
|
+
* }],
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
9
26
|
* ## Import
|
|
10
27
|
*
|
|
11
28
|
* The `pulumi import` command can be used, for example:
|
|
@@ -10,6 +10,23 @@ const utilities = require("../utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
12
|
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as harness from "@pulumi/harness";
|
|
16
|
+
*
|
|
17
|
+
* const bearerToken = new harness.platform.KubernetesConnector("bearer_token", {
|
|
18
|
+
* identifier: "identifier",
|
|
19
|
+
* name: "name",
|
|
20
|
+
* description: "description",
|
|
21
|
+
* tags: ["foo:bar"],
|
|
22
|
+
* delegateSelectors: ["harness-delegate"],
|
|
23
|
+
* rancherUrl: "https://rancher.cluster.example",
|
|
24
|
+
* bearerToken: [{
|
|
25
|
+
* bearerTokenRef: "account.test_rancher_bearer_token",
|
|
26
|
+
* }],
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
13
30
|
* ## Import
|
|
14
31
|
*
|
|
15
32
|
* The `pulumi import` command can be used, for example:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectorRancher.js","sourceRoot":"","sources":["../../platform/connectorRancher.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"connectorRancher.js","sourceRoot":"","sources":["../../platform/connectorRancher.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE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
|
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as harness from "@pulumi/harness";
|
|
12
|
+
*
|
|
13
|
+
* const example = new harness.platform.Environment("example", {
|
|
14
|
+
* identifier: "identifier",
|
|
15
|
+
* name: "name",
|
|
16
|
+
* orgId: "org_id",
|
|
17
|
+
* projectId: "project_id",
|
|
18
|
+
* tags: [
|
|
19
|
+
* "foo:bar",
|
|
20
|
+
* "bar:foo",
|
|
21
|
+
* ],
|
|
22
|
+
* type: "PreProduction",
|
|
23
|
+
* gitDetails: {
|
|
24
|
+
* branchName: "branchName",
|
|
25
|
+
* commitMessage: "commitMessage",
|
|
26
|
+
* filePath: "filePath",
|
|
27
|
+
* connectorRef: "connectorRef",
|
|
28
|
+
* storeType: "REMOTE",
|
|
29
|
+
* repoName: "repoName",
|
|
30
|
+
* },
|
|
31
|
+
* yaml: `environment:
|
|
32
|
+
* name: name
|
|
33
|
+
* identifier: identifier
|
|
34
|
+
* orgIdentifier: org_id
|
|
35
|
+
* projectIdentifier: project_id
|
|
36
|
+
* type: PreProduction
|
|
37
|
+
* tags:
|
|
38
|
+
* foo: bar
|
|
39
|
+
* bar: foo
|
|
40
|
+
* variables:
|
|
41
|
+
* - name: envVar1
|
|
42
|
+
* type: String
|
|
43
|
+
* value: v1
|
|
44
|
+
* description: \\"\\"
|
|
45
|
+
* - name: envVar2
|
|
46
|
+
* type: String
|
|
47
|
+
* value: v2
|
|
48
|
+
* description: \\"\\"
|
|
49
|
+
* overrides:
|
|
50
|
+
* manifests:
|
|
51
|
+
* - manifest:
|
|
52
|
+
* identifier: manifestEnv
|
|
53
|
+
* type: Values
|
|
54
|
+
* spec:
|
|
55
|
+
* store:
|
|
56
|
+
* type: Git
|
|
57
|
+
* spec:
|
|
58
|
+
* connectorRef: <+input>
|
|
59
|
+
* gitFetchType: Branch
|
|
60
|
+
* paths:
|
|
61
|
+
* - file1
|
|
62
|
+
* repoName: <+input>
|
|
63
|
+
* branch: master
|
|
64
|
+
* configFiles:
|
|
65
|
+
* - configFile:
|
|
66
|
+
* identifier: configFileEnv
|
|
67
|
+
* spec:
|
|
68
|
+
* store:
|
|
69
|
+
* type: Harness
|
|
70
|
+
* spec:
|
|
71
|
+
* files:
|
|
72
|
+
* - account:/Add-ons/svcOverrideTest
|
|
73
|
+
* secretFiles: []
|
|
74
|
+
* `,
|
|
75
|
+
* });
|
|
76
|
+
* //## Importing Environment from Git
|
|
77
|
+
* const test = new harness.platform.Environment("test", {
|
|
78
|
+
* identifier: "accEnv",
|
|
79
|
+
* name: "accEnv",
|
|
80
|
+
* type: "PreProduction",
|
|
81
|
+
* gitDetails: {
|
|
82
|
+
* storeType: "REMOTE",
|
|
83
|
+
* connectorRef: "account.DoNotDeleteGitX",
|
|
84
|
+
* repoName: "pcf_practice",
|
|
85
|
+
* filePath: ".harness/accountEnvironment.yaml",
|
|
86
|
+
* branch: "main",
|
|
87
|
+
* importFromGit: true,
|
|
88
|
+
* },
|
|
89
|
+
* });
|
|
90
|
+
* ```
|
|
91
|
+
*
|
|
9
92
|
* ## Import
|
|
10
93
|
*
|
|
11
94
|
* The `pulumi import` command can be used, for example:
|
package/platform/environment.js
CHANGED
|
@@ -10,6 +10,89 @@ const utilities = require("../utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
12
|
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as harness from "@pulumi/harness";
|
|
16
|
+
*
|
|
17
|
+
* const example = new harness.platform.Environment("example", {
|
|
18
|
+
* identifier: "identifier",
|
|
19
|
+
* name: "name",
|
|
20
|
+
* orgId: "org_id",
|
|
21
|
+
* projectId: "project_id",
|
|
22
|
+
* tags: [
|
|
23
|
+
* "foo:bar",
|
|
24
|
+
* "bar:foo",
|
|
25
|
+
* ],
|
|
26
|
+
* type: "PreProduction",
|
|
27
|
+
* gitDetails: {
|
|
28
|
+
* branchName: "branchName",
|
|
29
|
+
* commitMessage: "commitMessage",
|
|
30
|
+
* filePath: "filePath",
|
|
31
|
+
* connectorRef: "connectorRef",
|
|
32
|
+
* storeType: "REMOTE",
|
|
33
|
+
* repoName: "repoName",
|
|
34
|
+
* },
|
|
35
|
+
* yaml: `environment:
|
|
36
|
+
* name: name
|
|
37
|
+
* identifier: identifier
|
|
38
|
+
* orgIdentifier: org_id
|
|
39
|
+
* projectIdentifier: project_id
|
|
40
|
+
* type: PreProduction
|
|
41
|
+
* tags:
|
|
42
|
+
* foo: bar
|
|
43
|
+
* bar: foo
|
|
44
|
+
* variables:
|
|
45
|
+
* - name: envVar1
|
|
46
|
+
* type: String
|
|
47
|
+
* value: v1
|
|
48
|
+
* description: \\"\\"
|
|
49
|
+
* - name: envVar2
|
|
50
|
+
* type: String
|
|
51
|
+
* value: v2
|
|
52
|
+
* description: \\"\\"
|
|
53
|
+
* overrides:
|
|
54
|
+
* manifests:
|
|
55
|
+
* - manifest:
|
|
56
|
+
* identifier: manifestEnv
|
|
57
|
+
* type: Values
|
|
58
|
+
* spec:
|
|
59
|
+
* store:
|
|
60
|
+
* type: Git
|
|
61
|
+
* spec:
|
|
62
|
+
* connectorRef: <+input>
|
|
63
|
+
* gitFetchType: Branch
|
|
64
|
+
* paths:
|
|
65
|
+
* - file1
|
|
66
|
+
* repoName: <+input>
|
|
67
|
+
* branch: master
|
|
68
|
+
* configFiles:
|
|
69
|
+
* - configFile:
|
|
70
|
+
* identifier: configFileEnv
|
|
71
|
+
* spec:
|
|
72
|
+
* store:
|
|
73
|
+
* type: Harness
|
|
74
|
+
* spec:
|
|
75
|
+
* files:
|
|
76
|
+
* - account:/Add-ons/svcOverrideTest
|
|
77
|
+
* secretFiles: []
|
|
78
|
+
* `,
|
|
79
|
+
* });
|
|
80
|
+
* //## Importing Environment from Git
|
|
81
|
+
* const test = new harness.platform.Environment("test", {
|
|
82
|
+
* identifier: "accEnv",
|
|
83
|
+
* name: "accEnv",
|
|
84
|
+
* type: "PreProduction",
|
|
85
|
+
* gitDetails: {
|
|
86
|
+
* storeType: "REMOTE",
|
|
87
|
+
* connectorRef: "account.DoNotDeleteGitX",
|
|
88
|
+
* repoName: "pcf_practice",
|
|
89
|
+
* filePath: ".harness/accountEnvironment.yaml",
|
|
90
|
+
* branch: "main",
|
|
91
|
+
* importFromGit: true,
|
|
92
|
+
* },
|
|
93
|
+
* });
|
|
94
|
+
* ```
|
|
95
|
+
*
|
|
13
96
|
* ## Import
|
|
14
97
|
*
|
|
15
98
|
* The `pulumi import` command can be used, for example:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"environment.js","sourceRoot":"","sources":["../../platform/environment.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"environment.js","sourceRoot":"","sources":["../../platform/environment.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6GG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAClE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,c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aACvD;YACD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;SACvC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AAvHL,kCAwHC;AA1GG,gBAAgB;AACO,wBAAY,GAAG,0CAA0C,CAAC"}
|
|
@@ -6,6 +6,55 @@ import * as outputs from "../types/output";
|
|
|
6
6
|
*
|
|
7
7
|
* ## Example Usage
|
|
8
8
|
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as harness from "@pulumi/harness";
|
|
12
|
+
*
|
|
13
|
+
* const gcpSmManual = new harness.platform.GcpSecretManagerConnector("gcp_sm_manual", {
|
|
14
|
+
* identifier: "identifier",
|
|
15
|
+
* name: "name",
|
|
16
|
+
* description: "test",
|
|
17
|
+
* tags: ["foo:bar"],
|
|
18
|
+
* delegateSelectors: ["harness-delegate"],
|
|
19
|
+
* credentialsRef: `account.${test.id}`,
|
|
20
|
+
* });
|
|
21
|
+
* const gcpSmInherit = new harness.platform.GcpSecretManagerConnector("gcp_sm_inherit", {
|
|
22
|
+
* identifier: "identifier",
|
|
23
|
+
* name: "name",
|
|
24
|
+
* description: "test",
|
|
25
|
+
* tags: ["foo:bar"],
|
|
26
|
+
* delegateSelectors: ["harness-delegate"],
|
|
27
|
+
* inheritFromDelegate: true,
|
|
28
|
+
* });
|
|
29
|
+
* const gcpSmOidcPlatform = new harness.platform.GcpSecretManagerConnector("gcp_sm_oidc_platform", {
|
|
30
|
+
* identifier: "identifier",
|
|
31
|
+
* name: "name",
|
|
32
|
+
* description: "test",
|
|
33
|
+
* tags: ["foo:bar"],
|
|
34
|
+
* executeOnDelegate: false,
|
|
35
|
+
* oidcAuthentications: [{
|
|
36
|
+
* workloadPoolId: "harness-pool-test",
|
|
37
|
+
* providerId: "harness",
|
|
38
|
+
* gcpProjectId: "1234567",
|
|
39
|
+
* serviceAccountEmail: "harness.sample@iam.gserviceaccount.com",
|
|
40
|
+
* }],
|
|
41
|
+
* });
|
|
42
|
+
* const gcpSmOidcDelegate = new harness.platform.GcpSecretManagerConnector("gcp_sm_oidc_delegate", {
|
|
43
|
+
* identifier: "identifier",
|
|
44
|
+
* name: "name",
|
|
45
|
+
* description: "test",
|
|
46
|
+
* tags: ["foo:bar"],
|
|
47
|
+
* "default": true,
|
|
48
|
+
* 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
|
+
* });
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
9
58
|
* ## Import
|
|
10
59
|
*
|
|
11
60
|
* The `pulumi import` command can be used, for example:
|
|
@@ -10,6 +10,55 @@ const utilities = require("../utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
12
|
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as harness from "@pulumi/harness";
|
|
16
|
+
*
|
|
17
|
+
* const gcpSmManual = new harness.platform.GcpSecretManagerConnector("gcp_sm_manual", {
|
|
18
|
+
* identifier: "identifier",
|
|
19
|
+
* name: "name",
|
|
20
|
+
* description: "test",
|
|
21
|
+
* tags: ["foo:bar"],
|
|
22
|
+
* delegateSelectors: ["harness-delegate"],
|
|
23
|
+
* credentialsRef: `account.${test.id}`,
|
|
24
|
+
* });
|
|
25
|
+
* const gcpSmInherit = new harness.platform.GcpSecretManagerConnector("gcp_sm_inherit", {
|
|
26
|
+
* identifier: "identifier",
|
|
27
|
+
* name: "name",
|
|
28
|
+
* description: "test",
|
|
29
|
+
* tags: ["foo:bar"],
|
|
30
|
+
* delegateSelectors: ["harness-delegate"],
|
|
31
|
+
* inheritFromDelegate: true,
|
|
32
|
+
* });
|
|
33
|
+
* const gcpSmOidcPlatform = new harness.platform.GcpSecretManagerConnector("gcp_sm_oidc_platform", {
|
|
34
|
+
* identifier: "identifier",
|
|
35
|
+
* name: "name",
|
|
36
|
+
* description: "test",
|
|
37
|
+
* tags: ["foo:bar"],
|
|
38
|
+
* executeOnDelegate: false,
|
|
39
|
+
* oidcAuthentications: [{
|
|
40
|
+
* workloadPoolId: "harness-pool-test",
|
|
41
|
+
* providerId: "harness",
|
|
42
|
+
* gcpProjectId: "1234567",
|
|
43
|
+
* serviceAccountEmail: "harness.sample@iam.gserviceaccount.com",
|
|
44
|
+
* }],
|
|
45
|
+
* });
|
|
46
|
+
* const gcpSmOidcDelegate = new harness.platform.GcpSecretManagerConnector("gcp_sm_oidc_delegate", {
|
|
47
|
+
* identifier: "identifier",
|
|
48
|
+
* name: "name",
|
|
49
|
+
* description: "test",
|
|
50
|
+
* tags: ["foo:bar"],
|
|
51
|
+
* "default": true,
|
|
52
|
+
* delegateSelectors: ["harness-delegate"],
|
|
53
|
+
* oidcAuthentications: [{
|
|
54
|
+
* workloadPoolId: "harness-pool-test",
|
|
55
|
+
* providerId: "harness",
|
|
56
|
+
* gcpProjectId: "1234567",
|
|
57
|
+
* serviceAccountEmail: "harness.sample@iam.gserviceaccount.com",
|
|
58
|
+
* }],
|
|
59
|
+
* });
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
13
62
|
* ## Import
|
|
14
63
|
*
|
|
15
64
|
* The `pulumi import` command can be used, for example:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gcpSecretManagerConnector.js","sourceRoot":"","sources":["../../platform/gcpSecretManagerConnector.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"gcpSecretManagerConnector.js","sourceRoot":"","sources":["../../platform/gcpSecretManagerConnector.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2EG;AACH,MAAa,yBAA0B,SAAQ,MAAM,CAAC,cAAc;IAChE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsC,EAAE,IAAmC;QACpI,OAAO,IAAI,yBAAyB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAChF,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,G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AC7C,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,EAAE,iBAAiB,CAAC;YAC9D,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,EAAE,iBAAiB,CAAC;YAC9D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,qBAAqB,CAAC,GAAG,IAAI,EAAE,mBAAmB,CAAC;YAClE,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,qBAAqB,CAAC,GAAG,IAAI,EAAE,mBAAmB,CAAC;YAClE,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;SACvC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,yBAAyB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9E,CAAC;;AA1HL,8DA2HC;AA7GG,gBAAgB;AACO,sCAAY,GAAG,sEAAsE,CAAC"}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "../types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Data source for looking up a WinRM credential secret.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as harness from "@pulumi/harness";
|
|
11
|
+
*
|
|
12
|
+
* // Data source to retrieve account level WinRM credential by identifier
|
|
13
|
+
* const example = harness.platform.getSecretWinrm({
|
|
14
|
+
* identifier: "winrm_credential_id",
|
|
15
|
+
* });
|
|
16
|
+
* // Data source to retrieve organization level WinRM credential
|
|
17
|
+
* const orgExample = harness.platform.getSecretWinrm({
|
|
18
|
+
* identifier: "winrm_credential_id",
|
|
19
|
+
* orgId: "org_identifier",
|
|
20
|
+
* });
|
|
21
|
+
* // Data source to retrieve project level WinRM credential
|
|
22
|
+
* const projectExample = harness.platform.getSecretWinrm({
|
|
23
|
+
* identifier: "winrm_credential_id",
|
|
24
|
+
* orgId: "org_identifier",
|
|
25
|
+
* projectId: "project_identifier",
|
|
26
|
+
* });
|
|
27
|
+
* export const winrmPort = example.then(example => example.port);
|
|
28
|
+
* export const winrmAuthType = example.then(example => example.ntlms).length.apply(length => length > 0 ? "NTLM" : "Kerberos");
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare function getSecretWinrm(args: GetSecretWinrmArgs, opts?: pulumi.InvokeOptions): Promise<GetSecretWinrmResult>;
|
|
32
|
+
/**
|
|
33
|
+
* A collection of arguments for invoking getSecretWinrm.
|
|
34
|
+
*/
|
|
35
|
+
export interface GetSecretWinrmArgs {
|
|
36
|
+
/**
|
|
37
|
+
* Unique identifier of the resource.
|
|
38
|
+
*/
|
|
39
|
+
identifier: string;
|
|
40
|
+
/**
|
|
41
|
+
* Name of the resource.
|
|
42
|
+
*/
|
|
43
|
+
name?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Unique identifier of the organization.
|
|
46
|
+
*/
|
|
47
|
+
orgId?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Unique identifier of the project.
|
|
50
|
+
*/
|
|
51
|
+
projectId?: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* A collection of values returned by getSecretWinrm.
|
|
55
|
+
*/
|
|
56
|
+
export interface GetSecretWinrmResult {
|
|
57
|
+
/**
|
|
58
|
+
* Description of the resource.
|
|
59
|
+
*/
|
|
60
|
+
readonly description: string;
|
|
61
|
+
/**
|
|
62
|
+
* The provider-assigned unique ID for this managed resource.
|
|
63
|
+
*/
|
|
64
|
+
readonly id: string;
|
|
65
|
+
/**
|
|
66
|
+
* Unique identifier of the resource.
|
|
67
|
+
*/
|
|
68
|
+
readonly identifier: string;
|
|
69
|
+
/**
|
|
70
|
+
* Kerberos authentication scheme
|
|
71
|
+
*/
|
|
72
|
+
readonly kerberos: outputs.platform.GetSecretWinrmKerbero[];
|
|
73
|
+
/**
|
|
74
|
+
* Name of the resource.
|
|
75
|
+
*/
|
|
76
|
+
readonly name?: string;
|
|
77
|
+
/**
|
|
78
|
+
* NTLM authentication scheme
|
|
79
|
+
*/
|
|
80
|
+
readonly ntlms: outputs.platform.GetSecretWinrmNtlm[];
|
|
81
|
+
/**
|
|
82
|
+
* Unique identifier of the organization.
|
|
83
|
+
*/
|
|
84
|
+
readonly orgId?: string;
|
|
85
|
+
/**
|
|
86
|
+
* WinRM port. Default is 5986 for HTTPS, 5985 for HTTP.
|
|
87
|
+
*/
|
|
88
|
+
readonly port: number;
|
|
89
|
+
/**
|
|
90
|
+
* Unique identifier of the project.
|
|
91
|
+
*/
|
|
92
|
+
readonly projectId?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Tags to associate with the resource.
|
|
95
|
+
*/
|
|
96
|
+
readonly tags: string[];
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Data source for looking up a WinRM credential secret.
|
|
100
|
+
*
|
|
101
|
+
* ## Example Usage
|
|
102
|
+
*
|
|
103
|
+
* ```typescript
|
|
104
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
105
|
+
* import * as harness from "@pulumi/harness";
|
|
106
|
+
*
|
|
107
|
+
* // Data source to retrieve account level WinRM credential by identifier
|
|
108
|
+
* const example = harness.platform.getSecretWinrm({
|
|
109
|
+
* identifier: "winrm_credential_id",
|
|
110
|
+
* });
|
|
111
|
+
* // Data source to retrieve organization level WinRM credential
|
|
112
|
+
* const orgExample = harness.platform.getSecretWinrm({
|
|
113
|
+
* identifier: "winrm_credential_id",
|
|
114
|
+
* orgId: "org_identifier",
|
|
115
|
+
* });
|
|
116
|
+
* // Data source to retrieve project level WinRM credential
|
|
117
|
+
* const projectExample = harness.platform.getSecretWinrm({
|
|
118
|
+
* identifier: "winrm_credential_id",
|
|
119
|
+
* orgId: "org_identifier",
|
|
120
|
+
* projectId: "project_identifier",
|
|
121
|
+
* });
|
|
122
|
+
* export const winrmPort = example.then(example => example.port);
|
|
123
|
+
* export const winrmAuthType = example.then(example => example.ntlms).length.apply(length => length > 0 ? "NTLM" : "Kerberos");
|
|
124
|
+
* ```
|
|
125
|
+
*/
|
|
126
|
+
export declare function getSecretWinrmOutput(args: GetSecretWinrmOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSecretWinrmResult>;
|
|
127
|
+
/**
|
|
128
|
+
* A collection of arguments for invoking getSecretWinrm.
|
|
129
|
+
*/
|
|
130
|
+
export interface GetSecretWinrmOutputArgs {
|
|
131
|
+
/**
|
|
132
|
+
* Unique identifier of the resource.
|
|
133
|
+
*/
|
|
134
|
+
identifier: pulumi.Input<string>;
|
|
135
|
+
/**
|
|
136
|
+
* Name of the resource.
|
|
137
|
+
*/
|
|
138
|
+
name?: pulumi.Input<string>;
|
|
139
|
+
/**
|
|
140
|
+
* Unique identifier of the organization.
|
|
141
|
+
*/
|
|
142
|
+
orgId?: pulumi.Input<string>;
|
|
143
|
+
/**
|
|
144
|
+
* Unique identifier of the project.
|
|
145
|
+
*/
|
|
146
|
+
projectId?: pulumi.Input<string>;
|
|
147
|
+
}
|