@pulumi/gitlab 6.1.0-alpha.1687929913 → 6.1.0
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/branchProtection.d.ts +3 -3
- package/clusterAgentToken.d.ts +36 -0
- package/clusterAgentToken.js +36 -0
- package/clusterAgentToken.js.map +1 -1
- package/deployKeyEnable.d.ts +1 -1
- package/deployKeyEnable.js +1 -1
- package/package.json +2 -2
- package/pipelineScheduleVariable.d.ts +0 -20
- package/pipelineScheduleVariable.js +0 -20
- package/pipelineScheduleVariable.js.map +1 -1
- package/provider.js +1 -1
- package/provider.js.map +1 -1
- package/runner.d.ts +48 -0
- package/runner.js +48 -0
- package/runner.js.map +1 -1
- package/tagProtection.d.ts +22 -4
- package/tagProtection.js +10 -4
- package/tagProtection.js.map +1 -1
- package/types/input.d.ts +20 -2
- package/types/output.d.ts +24 -6
package/branchProtection.d.ts
CHANGED
|
@@ -67,7 +67,7 @@ export declare class BranchProtection extends pulumi.CustomResource {
|
|
|
67
67
|
*/
|
|
68
68
|
readonly pushAccessLevel: pulumi.Output<string | undefined>;
|
|
69
69
|
/**
|
|
70
|
-
* Access levels allowed to unprotect. Valid values are: `
|
|
70
|
+
* Access levels allowed to unprotect. Valid values are: `developer`, `maintainer`.
|
|
71
71
|
*/
|
|
72
72
|
readonly unprotectAccessLevel: pulumi.Output<string | undefined>;
|
|
73
73
|
/**
|
|
@@ -124,7 +124,7 @@ export interface BranchProtectionState {
|
|
|
124
124
|
*/
|
|
125
125
|
pushAccessLevel?: pulumi.Input<string>;
|
|
126
126
|
/**
|
|
127
|
-
* Access levels allowed to unprotect. Valid values are: `
|
|
127
|
+
* Access levels allowed to unprotect. Valid values are: `developer`, `maintainer`.
|
|
128
128
|
*/
|
|
129
129
|
unprotectAccessLevel?: pulumi.Input<string>;
|
|
130
130
|
}
|
|
@@ -169,7 +169,7 @@ export interface BranchProtectionArgs {
|
|
|
169
169
|
*/
|
|
170
170
|
pushAccessLevel?: pulumi.Input<string>;
|
|
171
171
|
/**
|
|
172
|
-
* Access levels allowed to unprotect. Valid values are: `
|
|
172
|
+
* Access levels allowed to unprotect. Valid values are: `developer`, `maintainer`.
|
|
173
173
|
*/
|
|
174
174
|
unprotectAccessLevel?: pulumi.Input<string>;
|
|
175
175
|
}
|
package/clusterAgentToken.d.ts
CHANGED
|
@@ -8,6 +8,42 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
8
8
|
*
|
|
9
9
|
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html#create-an-agent-token)
|
|
10
10
|
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as gitlab from "@pulumi/gitlab";
|
|
16
|
+
* import * as helm from "@pulumi/helm";
|
|
17
|
+
*
|
|
18
|
+
* // Create token for an agent
|
|
19
|
+
* const example = new gitlab.ClusterAgentToken("example", {
|
|
20
|
+
* project: "12345",
|
|
21
|
+
* agentId: 42,
|
|
22
|
+
* description: "some token",
|
|
23
|
+
* });
|
|
24
|
+
* const thisProject = gitlab.getProject({
|
|
25
|
+
* pathWithNamespace: "my-org/example",
|
|
26
|
+
* });
|
|
27
|
+
* const thisClusterAgent = new gitlab.ClusterAgent("thisClusterAgent", {project: thisProject.then(thisProject => thisProject.id)});
|
|
28
|
+
* const thisClusterAgentToken = new gitlab.ClusterAgentToken("thisClusterAgentToken", {
|
|
29
|
+
* project: thisProject.then(thisProject => thisProject.id),
|
|
30
|
+
* agentId: thisClusterAgent.agentId,
|
|
31
|
+
* description: "Token for the my-agent used with `gitlab-agent` Helm Chart",
|
|
32
|
+
* });
|
|
33
|
+
* const gitlabAgent = new helm.index.Helm_release("gitlabAgent", {
|
|
34
|
+
* name: "gitlab-agent",
|
|
35
|
+
* namespace: "gitlab-agent",
|
|
36
|
+
* createNamespace: true,
|
|
37
|
+
* repository: "https://charts.gitlab.io",
|
|
38
|
+
* chart: "gitlab-agent",
|
|
39
|
+
* version: "1.2.0",
|
|
40
|
+
* set: [{
|
|
41
|
+
* name: "config.token",
|
|
42
|
+
* value: thisClusterAgentToken.token,
|
|
43
|
+
* }],
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
11
47
|
* ## Import
|
|
12
48
|
*
|
|
13
49
|
* A token for a GitLab Agent for Kubernetes can be imported with the following command and the id pattern `<project>:<agent-id>:<token-id>`
|
package/clusterAgentToken.js
CHANGED
|
@@ -14,6 +14,42 @@ const utilities = require("./utilities");
|
|
|
14
14
|
*
|
|
15
15
|
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html#create-an-agent-token)
|
|
16
16
|
*
|
|
17
|
+
* ## Example Usage
|
|
18
|
+
*
|
|
19
|
+
* ```typescript
|
|
20
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
21
|
+
* import * as gitlab from "@pulumi/gitlab";
|
|
22
|
+
* import * as helm from "@pulumi/helm";
|
|
23
|
+
*
|
|
24
|
+
* // Create token for an agent
|
|
25
|
+
* const example = new gitlab.ClusterAgentToken("example", {
|
|
26
|
+
* project: "12345",
|
|
27
|
+
* agentId: 42,
|
|
28
|
+
* description: "some token",
|
|
29
|
+
* });
|
|
30
|
+
* const thisProject = gitlab.getProject({
|
|
31
|
+
* pathWithNamespace: "my-org/example",
|
|
32
|
+
* });
|
|
33
|
+
* const thisClusterAgent = new gitlab.ClusterAgent("thisClusterAgent", {project: thisProject.then(thisProject => thisProject.id)});
|
|
34
|
+
* const thisClusterAgentToken = new gitlab.ClusterAgentToken("thisClusterAgentToken", {
|
|
35
|
+
* project: thisProject.then(thisProject => thisProject.id),
|
|
36
|
+
* agentId: thisClusterAgent.agentId,
|
|
37
|
+
* description: "Token for the my-agent used with `gitlab-agent` Helm Chart",
|
|
38
|
+
* });
|
|
39
|
+
* const gitlabAgent = new helm.index.Helm_release("gitlabAgent", {
|
|
40
|
+
* name: "gitlab-agent",
|
|
41
|
+
* namespace: "gitlab-agent",
|
|
42
|
+
* createNamespace: true,
|
|
43
|
+
* repository: "https://charts.gitlab.io",
|
|
44
|
+
* chart: "gitlab-agent",
|
|
45
|
+
* version: "1.2.0",
|
|
46
|
+
* set: [{
|
|
47
|
+
* name: "config.token",
|
|
48
|
+
* value: thisClusterAgentToken.token,
|
|
49
|
+
* }],
|
|
50
|
+
* });
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
17
53
|
* ## Import
|
|
18
54
|
*
|
|
19
55
|
* A token for a GitLab Agent for Kubernetes can be imported with the following command and the id pattern `<project>:<agent-id>:<token-id>`
|
package/clusterAgentToken.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clusterAgentToken.js","sourceRoot":"","sources":["../clusterAgentToken.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"clusterAgentToken.js","sourceRoot":"","sources":["../clusterAgentToken.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;S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C,GAAG,SAAS,CAAC,OAAO,CAAC;YAC5C,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACjD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;;AAjHL,8CAkHC;AApGG,gBAAgB;AACO,8BAAY,GAAG,kDAAkD,CAAC"}
|
package/deployKeyEnable.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
23
23
|
* // Enable the deployment key on the second repo
|
|
24
24
|
* const fooDeployKeyEnable = new gitlab.DeployKeyEnable("fooDeployKeyEnable", {
|
|
25
25
|
* project: fooProject.id,
|
|
26
|
-
* keyId: parentDeployKey.
|
|
26
|
+
* keyId: parentDeployKey.deployKeyId,
|
|
27
27
|
* });
|
|
28
28
|
* ```
|
|
29
29
|
*
|
package/deployKeyEnable.js
CHANGED
|
@@ -29,7 +29,7 @@ const utilities = require("./utilities");
|
|
|
29
29
|
* // Enable the deployment key on the second repo
|
|
30
30
|
* const fooDeployKeyEnable = new gitlab.DeployKeyEnable("fooDeployKeyEnable", {
|
|
31
31
|
* project: fooProject.id,
|
|
32
|
-
* keyId: parentDeployKey.
|
|
32
|
+
* keyId: parentDeployKey.deployKeyId,
|
|
33
33
|
* });
|
|
34
34
|
* ```
|
|
35
35
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/gitlab",
|
|
3
|
-
"version": "v6.1.0
|
|
3
|
+
"version": "v6.1.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing GitLab resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource gitlab v6.1.0
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource gitlab v6.1.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0",
|
|
@@ -4,26 +4,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
4
4
|
*
|
|
5
5
|
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/pipeline_schedules.html#pipeline-schedule-variables)
|
|
6
6
|
*
|
|
7
|
-
* ## Example Usage
|
|
8
|
-
*
|
|
9
|
-
* ```typescript
|
|
10
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
-
* import * as gitlab from "@pulumi/gitlab";
|
|
12
|
-
*
|
|
13
|
-
* const examplePipelineSchedule = new gitlab.PipelineSchedule("examplePipelineSchedule", {
|
|
14
|
-
* project: "12345",
|
|
15
|
-
* description: "Used to schedule builds",
|
|
16
|
-
* ref: "master",
|
|
17
|
-
* cron: "0 1 * * *",
|
|
18
|
-
* });
|
|
19
|
-
* const examplePipelineScheduleVariable = new gitlab.PipelineScheduleVariable("examplePipelineScheduleVariable", {
|
|
20
|
-
* project: examplePipelineSchedule.project,
|
|
21
|
-
* pipelineScheduleId: examplePipelineSchedule.id,
|
|
22
|
-
* key: "EXAMPLE_KEY",
|
|
23
|
-
* value: "example",
|
|
24
|
-
* });
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
7
|
* ## Import
|
|
28
8
|
*
|
|
29
9
|
* Pipeline schedule variables can be imported using an id made up of `project_id:pipeline_schedule_id:key`, e.g.
|
|
@@ -10,26 +10,6 @@ const utilities = require("./utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/pipeline_schedules.html#pipeline-schedule-variables)
|
|
12
12
|
*
|
|
13
|
-
* ## Example Usage
|
|
14
|
-
*
|
|
15
|
-
* ```typescript
|
|
16
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
-
* import * as gitlab from "@pulumi/gitlab";
|
|
18
|
-
*
|
|
19
|
-
* const examplePipelineSchedule = new gitlab.PipelineSchedule("examplePipelineSchedule", {
|
|
20
|
-
* project: "12345",
|
|
21
|
-
* description: "Used to schedule builds",
|
|
22
|
-
* ref: "master",
|
|
23
|
-
* cron: "0 1 * * *",
|
|
24
|
-
* });
|
|
25
|
-
* const examplePipelineScheduleVariable = new gitlab.PipelineScheduleVariable("examplePipelineScheduleVariable", {
|
|
26
|
-
* project: examplePipelineSchedule.project,
|
|
27
|
-
* pipelineScheduleId: examplePipelineSchedule.id,
|
|
28
|
-
* key: "EXAMPLE_KEY",
|
|
29
|
-
* value: "example",
|
|
30
|
-
* });
|
|
31
|
-
* ```
|
|
32
|
-
*
|
|
33
13
|
* ## Import
|
|
34
14
|
*
|
|
35
15
|
* Pipeline schedule variables can be imported using an id made up of `project_id:pipeline_schedule_id:key`, e.g.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipelineScheduleVariable.js","sourceRoot":"","sources":["../pipelineScheduleVariable.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"pipelineScheduleVariable.js","sourceRoot":"","sources":["../pipelineScheduleVariable.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;GAYG;AACH,MAAa,wBAAyB,SAAQ,MAAM,CAAC,cAAc;IAC/D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqC,EAAE,IAAmC;QACnI,OAAO,IAAI,wBAAwB,CAAC,IAAI,EAAO,KAAK,kCAAO,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23
|
-
return obj['__pulumiType'] === Provider.__pulumiType;
|
|
23
|
+
return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* Create a Provider resource with the given unique name, arguments, and options.
|
package/provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;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,QAAQ,CAAC,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;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,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;IA8BD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAmB,EAAE,IAA6B;QACxE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;YACI,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,C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AAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AAlEL,4BAmEC;AAlEG,gBAAgB;AACO,qBAAY,GAAG,QAAQ,CAAC"}
|
package/runner.d.ts
CHANGED
|
@@ -7,6 +7,54 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
7
7
|
*
|
|
8
8
|
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/runners.html#register-a-new-runner)
|
|
9
9
|
*
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
+
* import * as gitlab from "@pulumi/gitlab";
|
|
15
|
+
* import * as local from "@pulumi/local";
|
|
16
|
+
*
|
|
17
|
+
* // Basic GitLab Group Runner
|
|
18
|
+
* const myGroup = new gitlab.Group("myGroup", {description: "group that holds the runners"});
|
|
19
|
+
* const basicRunner = new gitlab.Runner("basicRunner", {registrationToken: myGroup.runnersToken});
|
|
20
|
+
* // GitLab Runner that runs only tagged jobs
|
|
21
|
+
* const taggedOnly = new gitlab.Runner("taggedOnly", {
|
|
22
|
+
* registrationToken: myGroup.runnersToken,
|
|
23
|
+
* description: "I only run tagged jobs",
|
|
24
|
+
* runUntagged: false,
|
|
25
|
+
* tagLists: [
|
|
26
|
+
* "tag_one",
|
|
27
|
+
* "tag_two",
|
|
28
|
+
* ],
|
|
29
|
+
* });
|
|
30
|
+
* // GitLab Runner that only runs on protected branches
|
|
31
|
+
* const _protected = new gitlab.Runner("protected", {
|
|
32
|
+
* registrationToken: myGroup.runnersToken,
|
|
33
|
+
* description: "I only run protected jobs",
|
|
34
|
+
* accessLevel: "ref_protected",
|
|
35
|
+
* });
|
|
36
|
+
* // Generate a `config.toml` file that you can use to create a runner
|
|
37
|
+
* // This is the typical workflow for this resource, using it to create an authentication_token which can then be used
|
|
38
|
+
* // to generate the `config.toml` file to prevent re-registering the runner every time new hardware is created.
|
|
39
|
+
* const myCustomGroup = new gitlab.Group("myCustomGroup", {description: "group that holds the custom runners"});
|
|
40
|
+
* const myRunner = new gitlab.Runner("myRunner", {registrationToken: myCustomGroup.runnersToken});
|
|
41
|
+
* // This creates a configuration for a local "shell" runner, but can be changed to generate whatever is needed.
|
|
42
|
+
* // Place this configuration file on a server at `/etc/gitlab-runner/config.toml`, then run `gitlab-runner start`.
|
|
43
|
+
* // See https://docs.gitlab.com/runner/configuration/advanced-configuration.html for more information.
|
|
44
|
+
* const config = new local.File("config", {
|
|
45
|
+
* filename: `${path.module}/config.toml`,
|
|
46
|
+
* content: pulumi.interpolate` concurrent = 1
|
|
47
|
+
*
|
|
48
|
+
* [[runners]]
|
|
49
|
+
* name = "Hello Terraform"
|
|
50
|
+
* url = "https://example.gitlab.com/"
|
|
51
|
+
* token = "${myRunner.authenticationToken}"
|
|
52
|
+
* executor = "shell"
|
|
53
|
+
*
|
|
54
|
+
* `,
|
|
55
|
+
* });
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
10
58
|
* ## Import
|
|
11
59
|
*
|
|
12
60
|
* A GitLab Runner can be imported using the runner's ID, eg
|
package/runner.js
CHANGED
|
@@ -13,6 +13,54 @@ const utilities = require("./utilities");
|
|
|
13
13
|
*
|
|
14
14
|
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/runners.html#register-a-new-runner)
|
|
15
15
|
*
|
|
16
|
+
* ## Example Usage
|
|
17
|
+
*
|
|
18
|
+
* ```typescript
|
|
19
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
20
|
+
* import * as gitlab from "@pulumi/gitlab";
|
|
21
|
+
* import * as local from "@pulumi/local";
|
|
22
|
+
*
|
|
23
|
+
* // Basic GitLab Group Runner
|
|
24
|
+
* const myGroup = new gitlab.Group("myGroup", {description: "group that holds the runners"});
|
|
25
|
+
* const basicRunner = new gitlab.Runner("basicRunner", {registrationToken: myGroup.runnersToken});
|
|
26
|
+
* // GitLab Runner that runs only tagged jobs
|
|
27
|
+
* const taggedOnly = new gitlab.Runner("taggedOnly", {
|
|
28
|
+
* registrationToken: myGroup.runnersToken,
|
|
29
|
+
* description: "I only run tagged jobs",
|
|
30
|
+
* runUntagged: false,
|
|
31
|
+
* tagLists: [
|
|
32
|
+
* "tag_one",
|
|
33
|
+
* "tag_two",
|
|
34
|
+
* ],
|
|
35
|
+
* });
|
|
36
|
+
* // GitLab Runner that only runs on protected branches
|
|
37
|
+
* const _protected = new gitlab.Runner("protected", {
|
|
38
|
+
* registrationToken: myGroup.runnersToken,
|
|
39
|
+
* description: "I only run protected jobs",
|
|
40
|
+
* accessLevel: "ref_protected",
|
|
41
|
+
* });
|
|
42
|
+
* // Generate a `config.toml` file that you can use to create a runner
|
|
43
|
+
* // This is the typical workflow for this resource, using it to create an authentication_token which can then be used
|
|
44
|
+
* // to generate the `config.toml` file to prevent re-registering the runner every time new hardware is created.
|
|
45
|
+
* const myCustomGroup = new gitlab.Group("myCustomGroup", {description: "group that holds the custom runners"});
|
|
46
|
+
* const myRunner = new gitlab.Runner("myRunner", {registrationToken: myCustomGroup.runnersToken});
|
|
47
|
+
* // This creates a configuration for a local "shell" runner, but can be changed to generate whatever is needed.
|
|
48
|
+
* // Place this configuration file on a server at `/etc/gitlab-runner/config.toml`, then run `gitlab-runner start`.
|
|
49
|
+
* // See https://docs.gitlab.com/runner/configuration/advanced-configuration.html for more information.
|
|
50
|
+
* const config = new local.File("config", {
|
|
51
|
+
* filename: `${path.module}/config.toml`,
|
|
52
|
+
* content: pulumi.interpolate` concurrent = 1
|
|
53
|
+
*
|
|
54
|
+
* [[runners]]
|
|
55
|
+
* name = "Hello Terraform"
|
|
56
|
+
* url = "https://example.gitlab.com/"
|
|
57
|
+
* token = "${myRunner.authenticationToken}"
|
|
58
|
+
* executor = "shell"
|
|
59
|
+
*
|
|
60
|
+
* `,
|
|
61
|
+
* });
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
16
64
|
* ## Import
|
|
17
65
|
*
|
|
18
66
|
* A GitLab Runner can be imported using the runner's ID, eg
|
package/runner.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner.js","sourceRoot":"","sources":["../runner.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"runner.js","sourceRoot":"","sources":["../runner.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAC7C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7D,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,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC;IAoDD,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAsC,CAAC;YACrD,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,qBAAqB,CAAC,GAAG,KAAK,C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M,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AAjHL,wBAkHC;AApGG,gBAAgB;AACO,mBAAY,GAAG,4BAA4B,CAAC"}
|
package/tagProtection.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
2
4
|
/**
|
|
3
|
-
* The `gitlab.TagProtection` resource allows to manage the lifecycle of a tag protection.
|
|
4
|
-
*
|
|
5
|
-
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/protected_tags.html)
|
|
6
|
-
*
|
|
7
5
|
* ## Example Usage
|
|
8
6
|
*
|
|
9
7
|
* ```typescript
|
|
@@ -11,6 +9,14 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
11
9
|
* import * as gitlab from "@pulumi/gitlab";
|
|
12
10
|
*
|
|
13
11
|
* const tagProtect = new gitlab.TagProtection("tagProtect", {
|
|
12
|
+
* allowedToCreates: [
|
|
13
|
+
* {
|
|
14
|
+
* userId: 42,
|
|
15
|
+
* },
|
|
16
|
+
* {
|
|
17
|
+
* groupId: 43,
|
|
18
|
+
* },
|
|
19
|
+
* ],
|
|
14
20
|
* createAccessLevel: "developer",
|
|
15
21
|
* project: "12345",
|
|
16
22
|
* tag: "TagProtected",
|
|
@@ -41,6 +47,10 @@ export declare class TagProtection extends pulumi.CustomResource {
|
|
|
41
47
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
42
48
|
*/
|
|
43
49
|
static isInstance(obj: any): obj is TagProtection;
|
|
50
|
+
/**
|
|
51
|
+
* User or group which are allowed to create.
|
|
52
|
+
*/
|
|
53
|
+
readonly allowedToCreates: pulumi.Output<outputs.TagProtectionAllowedToCreate[] | undefined>;
|
|
44
54
|
/**
|
|
45
55
|
* Access levels which are allowed to create. Valid values are: `no one`, `developer`, `maintainer`.
|
|
46
56
|
*/
|
|
@@ -66,6 +76,10 @@ export declare class TagProtection extends pulumi.CustomResource {
|
|
|
66
76
|
* Input properties used for looking up and filtering TagProtection resources.
|
|
67
77
|
*/
|
|
68
78
|
export interface TagProtectionState {
|
|
79
|
+
/**
|
|
80
|
+
* User or group which are allowed to create.
|
|
81
|
+
*/
|
|
82
|
+
allowedToCreates?: pulumi.Input<pulumi.Input<inputs.TagProtectionAllowedToCreate>[]>;
|
|
69
83
|
/**
|
|
70
84
|
* Access levels which are allowed to create. Valid values are: `no one`, `developer`, `maintainer`.
|
|
71
85
|
*/
|
|
@@ -83,6 +97,10 @@ export interface TagProtectionState {
|
|
|
83
97
|
* The set of arguments for constructing a TagProtection resource.
|
|
84
98
|
*/
|
|
85
99
|
export interface TagProtectionArgs {
|
|
100
|
+
/**
|
|
101
|
+
* User or group which are allowed to create.
|
|
102
|
+
*/
|
|
103
|
+
allowedToCreates?: pulumi.Input<pulumi.Input<inputs.TagProtectionAllowedToCreate>[]>;
|
|
86
104
|
/**
|
|
87
105
|
* Access levels which are allowed to create. Valid values are: `no one`, `developer`, `maintainer`.
|
|
88
106
|
*/
|
package/tagProtection.js
CHANGED
|
@@ -6,10 +6,6 @@ exports.TagProtection = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* The `gitlab.TagProtection` resource allows to manage the lifecycle of a tag protection.
|
|
10
|
-
*
|
|
11
|
-
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/protected_tags.html)
|
|
12
|
-
*
|
|
13
9
|
* ## Example Usage
|
|
14
10
|
*
|
|
15
11
|
* ```typescript
|
|
@@ -17,6 +13,14 @@ const utilities = require("./utilities");
|
|
|
17
13
|
* import * as gitlab from "@pulumi/gitlab";
|
|
18
14
|
*
|
|
19
15
|
* const tagProtect = new gitlab.TagProtection("tagProtect", {
|
|
16
|
+
* allowedToCreates: [
|
|
17
|
+
* {
|
|
18
|
+
* userId: 42,
|
|
19
|
+
* },
|
|
20
|
+
* {
|
|
21
|
+
* groupId: 43,
|
|
22
|
+
* },
|
|
23
|
+
* ],
|
|
20
24
|
* createAccessLevel: "developer",
|
|
21
25
|
* project: "12345",
|
|
22
26
|
* tag: "TagProtected",
|
|
@@ -59,6 +63,7 @@ class TagProtection extends pulumi.CustomResource {
|
|
|
59
63
|
opts = opts || {};
|
|
60
64
|
if (opts.id) {
|
|
61
65
|
const state = argsOrState;
|
|
66
|
+
resourceInputs["allowedToCreates"] = state ? state.allowedToCreates : undefined;
|
|
62
67
|
resourceInputs["createAccessLevel"] = state ? state.createAccessLevel : undefined;
|
|
63
68
|
resourceInputs["project"] = state ? state.project : undefined;
|
|
64
69
|
resourceInputs["tag"] = state ? state.tag : undefined;
|
|
@@ -74,6 +79,7 @@ class TagProtection extends pulumi.CustomResource {
|
|
|
74
79
|
if ((!args || args.tag === undefined) && !opts.urn) {
|
|
75
80
|
throw new Error("Missing required property 'tag'");
|
|
76
81
|
}
|
|
82
|
+
resourceInputs["allowedToCreates"] = args ? args.allowedToCreates : undefined;
|
|
77
83
|
resourceInputs["createAccessLevel"] = args ? args.createAccessLevel : undefined;
|
|
78
84
|
resourceInputs["project"] = args ? args.project : undefined;
|
|
79
85
|
resourceInputs["tag"] = args ? args.tag : undefined;
|
package/tagProtection.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tagProtection.js","sourceRoot":"","sources":["../tagProtection.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"tagProtection.js","sourceRoot":"","sources":["../tagProtection.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;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Policy {
|
|
|
84
84
|
keepN?: pulumi.Input<number>;
|
|
85
85
|
/**
|
|
86
86
|
* The regular expression to match image names to delete.
|
|
87
|
+
*
|
|
88
|
+
* @deprecated `name_regex` has been deprecated. Use `name_regex_delete` instead.
|
|
87
89
|
*/
|
|
88
90
|
nameRegex?: pulumi.Input<string>;
|
|
89
91
|
/**
|
|
90
92
|
* The regular expression to match image names to delete.
|
|
91
|
-
*
|
|
92
|
-
* @deprecated `name_regex_delete` has been deprecated. Use `name_regex` instead.
|
|
93
93
|
*/
|
|
94
94
|
nameRegexDelete?: pulumi.Input<string>;
|
|
95
95
|
/**
|
|
@@ -222,3 +222,21 @@ export interface ProjectTagRelease {
|
|
|
222
222
|
description?: pulumi.Input<string>;
|
|
223
223
|
tagName?: pulumi.Input<string>;
|
|
224
224
|
}
|
|
225
|
+
export interface TagProtectionAllowedToCreate {
|
|
226
|
+
/**
|
|
227
|
+
* Level of access.
|
|
228
|
+
*/
|
|
229
|
+
accessLevel?: pulumi.Input<string>;
|
|
230
|
+
/**
|
|
231
|
+
* Readable description of level of access.
|
|
232
|
+
*/
|
|
233
|
+
accessLevelDescription?: pulumi.Input<string>;
|
|
234
|
+
/**
|
|
235
|
+
* The ID of a GitLab group allowed to perform the relevant action. Mutually exclusive with `userId`.
|
|
236
|
+
*/
|
|
237
|
+
groupId?: pulumi.Input<number>;
|
|
238
|
+
/**
|
|
239
|
+
* The ID of a GitLab user allowed to perform the relevant action. Mutually exclusive with `groupId`.
|
|
240
|
+
*/
|
|
241
|
+
userId?: pulumi.Input<number>;
|
|
242
|
+
}
|
package/types/output.d.ts
CHANGED
|
@@ -279,10 +279,10 @@ export interface GetProjectContainerExpirationPolicy {
|
|
|
279
279
|
cadence: string;
|
|
280
280
|
enabled: boolean;
|
|
281
281
|
keepN: number;
|
|
282
|
-
nameRegex: string;
|
|
283
282
|
/**
|
|
284
|
-
* @deprecated `
|
|
283
|
+
* @deprecated `name_regex` has been deprecated. Use `name_regex_delete` instead.
|
|
285
284
|
*/
|
|
285
|
+
nameRegex: string;
|
|
286
286
|
nameRegexDelete: string;
|
|
287
287
|
nameRegexKeep: string;
|
|
288
288
|
nextRunAt: string;
|
|
@@ -656,10 +656,10 @@ export interface GetProjectsProjectContainerExpirationPolicy {
|
|
|
656
656
|
cadence: string;
|
|
657
657
|
enabled: boolean;
|
|
658
658
|
keepN: number;
|
|
659
|
-
nameRegex: string;
|
|
660
659
|
/**
|
|
661
|
-
* @deprecated `
|
|
660
|
+
* @deprecated `name_regex` has been deprecated. Use `name_regex_delete` instead.
|
|
662
661
|
*/
|
|
662
|
+
nameRegex: string;
|
|
663
663
|
nameRegexDelete: string;
|
|
664
664
|
nameRegexKeep: string;
|
|
665
665
|
nextRunAt: string;
|
|
@@ -805,12 +805,12 @@ export interface ProjectContainerExpirationPolicy {
|
|
|
805
805
|
keepN: number;
|
|
806
806
|
/**
|
|
807
807
|
* The regular expression to match image names to delete.
|
|
808
|
+
*
|
|
809
|
+
* @deprecated `name_regex` has been deprecated. Use `name_regex_delete` instead.
|
|
808
810
|
*/
|
|
809
811
|
nameRegex: string;
|
|
810
812
|
/**
|
|
811
813
|
* The regular expression to match image names to delete.
|
|
812
|
-
*
|
|
813
|
-
* @deprecated `name_regex_delete` has been deprecated. Use `name_regex` instead.
|
|
814
814
|
*/
|
|
815
815
|
nameRegexDelete: string;
|
|
816
816
|
/**
|
|
@@ -943,3 +943,21 @@ export interface ProjectTagRelease {
|
|
|
943
943
|
description: string;
|
|
944
944
|
tagName: string;
|
|
945
945
|
}
|
|
946
|
+
export interface TagProtectionAllowedToCreate {
|
|
947
|
+
/**
|
|
948
|
+
* Level of access.
|
|
949
|
+
*/
|
|
950
|
+
accessLevel: string;
|
|
951
|
+
/**
|
|
952
|
+
* Readable description of level of access.
|
|
953
|
+
*/
|
|
954
|
+
accessLevelDescription: string;
|
|
955
|
+
/**
|
|
956
|
+
* The ID of a GitLab group allowed to perform the relevant action. Mutually exclusive with `userId`.
|
|
957
|
+
*/
|
|
958
|
+
groupId?: number;
|
|
959
|
+
/**
|
|
960
|
+
* The ID of a GitLab user allowed to perform the relevant action. Mutually exclusive with `groupId`.
|
|
961
|
+
*/
|
|
962
|
+
userId?: number;
|
|
963
|
+
}
|