cdk-gitlab-runner 2.2.366__tar.gz → 2.3.337__tar.gz
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.
- {cdk_gitlab_runner-2.2.366/src/cdk_gitlab_runner.egg-info → cdk_gitlab_runner-2.3.337}/PKG-INFO +17 -8
- {cdk_gitlab_runner-2.2.366 → cdk_gitlab_runner-2.3.337}/README.md +12 -2
- {cdk_gitlab_runner-2.2.366 → cdk_gitlab_runner-2.3.337}/pyproject.toml +2 -2
- {cdk_gitlab_runner-2.2.366 → cdk_gitlab_runner-2.3.337}/setup.py +6 -7
- {cdk_gitlab_runner-2.2.366 → cdk_gitlab_runner-2.3.337}/src/cdk_gitlab_runner/__init__.py +172 -77
- {cdk_gitlab_runner-2.2.366 → cdk_gitlab_runner-2.3.337}/src/cdk_gitlab_runner/_jsii/__init__.py +2 -2
- cdk_gitlab_runner-2.3.337/src/cdk_gitlab_runner/_jsii/cdk-gitlab-runner@2.3.337.jsii.tgz +0 -0
- {cdk_gitlab_runner-2.2.366 → cdk_gitlab_runner-2.3.337/src/cdk_gitlab_runner.egg-info}/PKG-INFO +17 -8
- {cdk_gitlab_runner-2.2.366 → cdk_gitlab_runner-2.3.337}/src/cdk_gitlab_runner.egg-info/SOURCES.txt +1 -1
- cdk_gitlab_runner-2.3.337/src/cdk_gitlab_runner.egg-info/requires.txt +5 -0
- cdk_gitlab_runner-2.2.366/src/cdk_gitlab_runner/_jsii/cdk-gitlab-runner@2.2.366.jsii.tgz +0 -0
- cdk_gitlab_runner-2.2.366/src/cdk_gitlab_runner.egg-info/requires.txt +0 -5
- {cdk_gitlab_runner-2.2.366 → cdk_gitlab_runner-2.3.337}/LICENSE +0 -0
- {cdk_gitlab_runner-2.2.366 → cdk_gitlab_runner-2.3.337}/MANIFEST.in +0 -0
- {cdk_gitlab_runner-2.2.366 → cdk_gitlab_runner-2.3.337}/setup.cfg +0 -0
- {cdk_gitlab_runner-2.2.366 → cdk_gitlab_runner-2.3.337}/src/cdk_gitlab_runner/py.typed +0 -0
- {cdk_gitlab_runner-2.2.366 → cdk_gitlab_runner-2.3.337}/src/cdk_gitlab_runner.egg-info/dependency_links.txt +0 -0
- {cdk_gitlab_runner-2.2.366 → cdk_gitlab_runner-2.3.337}/src/cdk_gitlab_runner.egg-info/top_level.txt +0 -0
{cdk_gitlab_runner-2.2.366/src/cdk_gitlab_runner.egg-info → cdk_gitlab_runner-2.3.337}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cdk-gitlab-runner
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.337
|
|
4
4
|
Summary: Use AWS CDK to create a gitlab runner, and use gitlab runner to help you execute your Gitlab pipeline job.
|
|
5
5
|
Home-page: https://github.com/neilkuan/cdk-gitlab-runner.git
|
|
6
6
|
Author: Neil Kuan<guan840912@gmail.com>
|
|
@@ -10,21 +10,20 @@ Classifier: Intended Audience :: Developers
|
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
|
11
11
|
Classifier: Programming Language :: JavaScript
|
|
12
12
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
14
13
|
Classifier: Programming Language :: Python :: 3.9
|
|
15
14
|
Classifier: Programming Language :: Python :: 3.10
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.11
|
|
17
16
|
Classifier: Typing :: Typed
|
|
18
17
|
Classifier: Development Status :: 4 - Beta
|
|
19
18
|
Classifier: License :: OSI Approved
|
|
20
|
-
Requires-Python: ~=3.
|
|
19
|
+
Requires-Python: ~=3.9
|
|
21
20
|
Description-Content-Type: text/markdown
|
|
22
21
|
License-File: LICENSE
|
|
23
|
-
Requires-Dist: aws-cdk-lib<3.0.0,>=2.
|
|
22
|
+
Requires-Dist: aws-cdk-lib<3.0.0,>=2.189.1
|
|
24
23
|
Requires-Dist: constructs<11.0.0,>=10.0.5
|
|
25
|
-
Requires-Dist: jsii<2.0.0,>=1.
|
|
24
|
+
Requires-Dist: jsii<2.0.0,>=1.125.0
|
|
26
25
|
Requires-Dist: publication>=0.0.3
|
|
27
|
-
Requires-Dist: typeguard
|
|
26
|
+
Requires-Dist: typeguard==2.13.3
|
|
28
27
|
|
|
29
28
|
[](https://badge.fury.io/js/cdk-gitlab-runner)
|
|
30
29
|
[](https://badge.fury.io/py/cdk-gitlab-runner)
|
|
@@ -265,15 +264,25 @@ runner.runnerRole.addManagedPolicy(
|
|
|
265
264
|
|
|
266
265
|
### Custom Gitlab Runner EBS szie
|
|
267
266
|
|
|
268
|
-
>
|
|
267
|
+
> 2025/01/03 , you can change you want ebs size.
|
|
269
268
|
|
|
270
269
|
```python
|
|
271
270
|
import { GitlabContainerRunner } from 'cdk-gitlab-runner';
|
|
271
|
+
// on-demand instance
|
|
272
|
+
new GitlabContainerRunner(stack, 'testing', {
|
|
273
|
+
gitlabtoken: 'glrt-GITLABTOKEN',
|
|
274
|
+
gitlabRunnerVersion: '15.10',
|
|
275
|
+
onDemandEbsConfig: BlockDeviceVolume.ebs(60),
|
|
276
|
+
});
|
|
272
277
|
|
|
278
|
+
// spotfleet instance
|
|
273
279
|
new GitlabContainerRunner(stack, 'testing', {
|
|
274
280
|
gitlabtoken: 'glrt-GITLABTOKEN',
|
|
275
281
|
gitlabRunnerVersion: '15.10',
|
|
276
|
-
|
|
282
|
+
spotFleet: true,
|
|
283
|
+
spotEbsConfig: {
|
|
284
|
+
volumeSize: 50,
|
|
285
|
+
},
|
|
277
286
|
});
|
|
278
287
|
```
|
|
279
288
|
|
|
@@ -237,15 +237,25 @@ runner.runnerRole.addManagedPolicy(
|
|
|
237
237
|
|
|
238
238
|
### Custom Gitlab Runner EBS szie
|
|
239
239
|
|
|
240
|
-
>
|
|
240
|
+
> 2025/01/03 , you can change you want ebs size.
|
|
241
241
|
|
|
242
242
|
```python
|
|
243
243
|
import { GitlabContainerRunner } from 'cdk-gitlab-runner';
|
|
244
|
+
// on-demand instance
|
|
245
|
+
new GitlabContainerRunner(stack, 'testing', {
|
|
246
|
+
gitlabtoken: 'glrt-GITLABTOKEN',
|
|
247
|
+
gitlabRunnerVersion: '15.10',
|
|
248
|
+
onDemandEbsConfig: BlockDeviceVolume.ebs(60),
|
|
249
|
+
});
|
|
244
250
|
|
|
251
|
+
// spotfleet instance
|
|
245
252
|
new GitlabContainerRunner(stack, 'testing', {
|
|
246
253
|
gitlabtoken: 'glrt-GITLABTOKEN',
|
|
247
254
|
gitlabRunnerVersion: '15.10',
|
|
248
|
-
|
|
255
|
+
spotFleet: true,
|
|
256
|
+
spotEbsConfig: {
|
|
257
|
+
volumeSize: 50,
|
|
258
|
+
},
|
|
249
259
|
});
|
|
250
260
|
```
|
|
251
261
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
requires = ["setuptools~=
|
|
2
|
+
requires = ["setuptools~=75.3.2", "build~=1.3.0"]
|
|
3
3
|
build-backend = "setuptools.build_meta"
|
|
4
4
|
|
|
5
5
|
[tool.pyright]
|
|
6
6
|
defineConstant = { DEBUG = true }
|
|
7
|
-
pythonVersion = "3.
|
|
7
|
+
pythonVersion = "3.9"
|
|
8
8
|
pythonPlatform = "All"
|
|
9
9
|
reportSelfClsParameterName = false
|
|
@@ -5,7 +5,7 @@ kwargs = json.loads(
|
|
|
5
5
|
"""
|
|
6
6
|
{
|
|
7
7
|
"name": "cdk-gitlab-runner",
|
|
8
|
-
"version": "2.
|
|
8
|
+
"version": "2.3.337",
|
|
9
9
|
"description": "Use AWS CDK to create a gitlab runner, and use gitlab runner to help you execute your Gitlab pipeline job.",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"url": "https://github.com/neilkuan/cdk-gitlab-runner.git",
|
|
@@ -26,26 +26,25 @@ kwargs = json.loads(
|
|
|
26
26
|
],
|
|
27
27
|
"package_data": {
|
|
28
28
|
"cdk_gitlab_runner._jsii": [
|
|
29
|
-
"cdk-gitlab-runner@2.
|
|
29
|
+
"cdk-gitlab-runner@2.3.337.jsii.tgz"
|
|
30
30
|
],
|
|
31
31
|
"cdk_gitlab_runner": [
|
|
32
32
|
"py.typed"
|
|
33
33
|
]
|
|
34
34
|
},
|
|
35
|
-
"python_requires": "~=3.
|
|
35
|
+
"python_requires": "~=3.9",
|
|
36
36
|
"install_requires": [
|
|
37
|
-
"aws-cdk-lib>=2.
|
|
37
|
+
"aws-cdk-lib>=2.189.1, <3.0.0",
|
|
38
38
|
"constructs>=10.0.5, <11.0.0",
|
|
39
|
-
"jsii>=1.
|
|
39
|
+
"jsii>=1.125.0, <2.0.0",
|
|
40
40
|
"publication>=0.0.3",
|
|
41
|
-
"typeguard
|
|
41
|
+
"typeguard==2.13.3"
|
|
42
42
|
],
|
|
43
43
|
"classifiers": [
|
|
44
44
|
"Intended Audience :: Developers",
|
|
45
45
|
"Operating System :: OS Independent",
|
|
46
46
|
"Programming Language :: JavaScript",
|
|
47
47
|
"Programming Language :: Python :: 3 :: Only",
|
|
48
|
-
"Programming Language :: Python :: 3.8",
|
|
49
48
|
"Programming Language :: Python :: 3.9",
|
|
50
49
|
"Programming Language :: Python :: 3.10",
|
|
51
50
|
"Programming Language :: Python :: 3.11",
|
|
@@ -238,15 +238,25 @@ runner.runnerRole.addManagedPolicy(
|
|
|
238
238
|
|
|
239
239
|
### Custom Gitlab Runner EBS szie
|
|
240
240
|
|
|
241
|
-
>
|
|
241
|
+
> 2025/01/03 , you can change you want ebs size.
|
|
242
242
|
|
|
243
243
|
```python
|
|
244
244
|
import { GitlabContainerRunner } from 'cdk-gitlab-runner';
|
|
245
|
+
// on-demand instance
|
|
246
|
+
new GitlabContainerRunner(stack, 'testing', {
|
|
247
|
+
gitlabtoken: 'glrt-GITLABTOKEN',
|
|
248
|
+
gitlabRunnerVersion: '15.10',
|
|
249
|
+
onDemandEbsConfig: BlockDeviceVolume.ebs(60),
|
|
250
|
+
});
|
|
245
251
|
|
|
252
|
+
// spotfleet instance
|
|
246
253
|
new GitlabContainerRunner(stack, 'testing', {
|
|
247
254
|
gitlabtoken: 'glrt-GITLABTOKEN',
|
|
248
255
|
gitlabRunnerVersion: '15.10',
|
|
249
|
-
|
|
256
|
+
spotFleet: true,
|
|
257
|
+
spotEbsConfig: {
|
|
258
|
+
volumeSize: 50,
|
|
259
|
+
},
|
|
250
260
|
});
|
|
251
261
|
```
|
|
252
262
|
|
|
@@ -483,27 +493,29 @@ class GitlabContainerRunner(
|
|
|
483
493
|
|
|
484
494
|
def __init__(
|
|
485
495
|
self,
|
|
486
|
-
scope: _constructs_77d1e7e8.Construct,
|
|
496
|
+
scope: "_constructs_77d1e7e8.Construct",
|
|
487
497
|
id: builtins.str,
|
|
488
498
|
*,
|
|
489
499
|
gitlab_runner_version: builtins.str,
|
|
490
500
|
gitlabtoken: builtins.str,
|
|
491
501
|
concurrent_jobs: typing.Optional[jsii.Number] = None,
|
|
492
|
-
docker_volumes: typing.Optional[typing.Sequence[typing.Union[DockerVolumes, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
502
|
+
docker_volumes: typing.Optional[typing.Sequence[typing.Union["DockerVolumes", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
493
503
|
ebs_size: typing.Optional[jsii.Number] = None,
|
|
494
|
-
ec2iamrole: typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole] = None,
|
|
504
|
+
ec2iamrole: typing.Optional["_aws_cdk_aws_iam_ceddda9d.IRole"] = None,
|
|
495
505
|
ec2type: typing.Optional[builtins.str] = None,
|
|
496
506
|
enabled_imd_sv2: typing.Optional[builtins.bool] = None,
|
|
497
507
|
gitlab_runner_image: typing.Optional[builtins.str] = None,
|
|
498
508
|
gitlaburl: typing.Optional[builtins.str] = None,
|
|
499
509
|
instance_interruption_behavior: typing.Optional["InstanceInterruptionBehavior"] = None,
|
|
500
510
|
key_name: typing.Optional[builtins.str] = None,
|
|
511
|
+
on_demand_ebs_config: typing.Optional["_aws_cdk_aws_ec2_ceddda9d.BlockDeviceVolume"] = None,
|
|
501
512
|
runner_description: typing.Optional[builtins.str] = None,
|
|
502
|
-
selfvpc: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc] = None,
|
|
513
|
+
selfvpc: typing.Optional["_aws_cdk_aws_ec2_ceddda9d.IVpc"] = None,
|
|
514
|
+
spot_ebs_config: typing.Optional[typing.Union["_aws_cdk_aws_ec2_ceddda9d.CfnLaunchTemplate.EbsProperty", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
503
515
|
spot_fleet: typing.Optional[builtins.bool] = None,
|
|
504
516
|
tags: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
505
517
|
valid_until: typing.Optional[builtins.str] = None,
|
|
506
|
-
vpc_subnet: typing.Optional[typing.Union[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
518
|
+
vpc_subnet: typing.Optional[typing.Union["_aws_cdk_aws_ec2_ceddda9d.SubnetSelection", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
507
519
|
) -> None:
|
|
508
520
|
'''
|
|
509
521
|
:param scope: -
|
|
@@ -512,7 +524,7 @@ class GitlabContainerRunner(
|
|
|
512
524
|
:param gitlabtoken: (experimental) Gitlab token for the Register Runner . Default: - You must to give the token !!!
|
|
513
525
|
:param concurrent_jobs: (experimental) Gitlab Runner concurrent job configuration. Default: - concurrentJobs=1
|
|
514
526
|
:param docker_volumes: (experimental) add another Gitlab Container Runner Docker Volumes Path at job runner runtime. more detail see https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-runnersdocker-section Default: - already mount "/var/run/docker.sock:/var/run/docker.sock"
|
|
515
|
-
:param ebs_size: (
|
|
527
|
+
:param ebs_size: (deprecated) Gitlab Runner instance EBS size .
|
|
516
528
|
:param ec2iamrole: (experimental) IAM role for the Gitlab Runner Instance . Default: - new Role for Gitlab Runner Instance , attach AmazonSSMManagedInstanceCore Policy .
|
|
517
529
|
:param ec2type: (experimental) Runner default EC2 instance type. Default: - t3.micro
|
|
518
530
|
:param enabled_imd_sv2: (experimental) Enabled IMDSv2. more detail see https://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html Default: - false
|
|
@@ -520,8 +532,10 @@ class GitlabContainerRunner(
|
|
|
520
532
|
:param gitlaburl: (experimental) Gitlab Runner register url . Default: - gitlaburl='https://gitlab.com/' , please use https://yourgitlab.com/ do not use https://yourgitlab.com
|
|
521
533
|
:param instance_interruption_behavior: (experimental) The behavior when a Spot Runner Instance is interrupted. Default: - InstanceInterruptionBehavior.TERMINATE , !!! only support spotfleet runner !!! .
|
|
522
534
|
:param key_name: (experimental) SSH key name. Default: - no ssh key will be assigned , !!! only support spotfleet runner !!! .
|
|
535
|
+
:param on_demand_ebs_config: (experimental) Gitlab Runner instance EBS config. Default: - onDemandEbsConfig=BlockDeviceVolume.ebs(60)
|
|
523
536
|
:param runner_description: (experimental) Gitlab Runner description. Default: - runnerDescription='Docker Runner'
|
|
524
537
|
:param selfvpc: (experimental) VPC for the Gitlab Runner . Default: - new VPC will be created , 1 Vpc , 2 Public Subnet .
|
|
538
|
+
:param spot_ebs_config: (experimental) Gitlab Runner instance EBS config. Default: - spotEbsConfig={ volumeSize: 60}
|
|
525
539
|
:param spot_fleet: (experimental) Gitlab Runner instance Use Spot Fleet or not ?!. Default: - spotFleet=false
|
|
526
540
|
:param tags: (experimental) tags for the runner Unsupported Gitlab Runner 15.10 and later. Default: - ['runner', 'gitlab', 'awscdk']
|
|
527
541
|
:param valid_until: (experimental) the time when the spot fleet allocation expires. Default: - no expiration , !!! only support spotfleet runner !!! .
|
|
@@ -546,8 +560,10 @@ class GitlabContainerRunner(
|
|
|
546
560
|
gitlaburl=gitlaburl,
|
|
547
561
|
instance_interruption_behavior=instance_interruption_behavior,
|
|
548
562
|
key_name=key_name,
|
|
563
|
+
on_demand_ebs_config=on_demand_ebs_config,
|
|
549
564
|
runner_description=runner_description,
|
|
550
565
|
selfvpc=selfvpc,
|
|
566
|
+
spot_ebs_config=spot_ebs_config,
|
|
551
567
|
spot_fleet=spot_fleet,
|
|
552
568
|
tags=tags,
|
|
553
569
|
valid_until=valid_until,
|
|
@@ -577,7 +593,7 @@ class GitlabContainerRunner(
|
|
|
577
593
|
return typing.cast(typing.List[builtins.str], jsii.invoke(self, "createUserData", [props, token_parameter_store_name]))
|
|
578
594
|
|
|
579
595
|
@jsii.member(jsii_name="expireAfter")
|
|
580
|
-
def expire_after(self, duration: _aws_cdk_ceddda9d.Duration) -> None:
|
|
596
|
+
def expire_after(self, duration: "_aws_cdk_ceddda9d.Duration") -> None:
|
|
581
597
|
'''(experimental) Add expire time function for spotfleet runner !!! .
|
|
582
598
|
|
|
583
599
|
:param duration: - Block duration.
|
|
@@ -591,30 +607,30 @@ class GitlabContainerRunner(
|
|
|
591
607
|
|
|
592
608
|
@builtins.property
|
|
593
609
|
@jsii.member(jsii_name="defaultRunnerSG")
|
|
594
|
-
def default_runner_sg(self) -> _aws_cdk_aws_ec2_ceddda9d.ISecurityGroup:
|
|
610
|
+
def default_runner_sg(self) -> "_aws_cdk_aws_ec2_ceddda9d.ISecurityGroup":
|
|
595
611
|
'''(experimental) The EC2 runner's default SecurityGroup.
|
|
596
612
|
|
|
597
613
|
:stability: experimental
|
|
598
614
|
'''
|
|
599
|
-
return typing.cast(_aws_cdk_aws_ec2_ceddda9d.ISecurityGroup, jsii.get(self, "defaultRunnerSG"))
|
|
615
|
+
return typing.cast("_aws_cdk_aws_ec2_ceddda9d.ISecurityGroup", jsii.get(self, "defaultRunnerSG"))
|
|
600
616
|
|
|
601
617
|
@builtins.property
|
|
602
618
|
@jsii.member(jsii_name="runnerEc2")
|
|
603
|
-
def runner_ec2(self) -> _aws_cdk_aws_ec2_ceddda9d.IInstance:
|
|
619
|
+
def runner_ec2(self) -> "_aws_cdk_aws_ec2_ceddda9d.IInstance":
|
|
604
620
|
'''(experimental) This represents a Runner EC2 instance , !!! only support On-demand runner instance !!!
|
|
605
621
|
|
|
606
622
|
:stability: experimental
|
|
607
623
|
'''
|
|
608
|
-
return typing.cast(_aws_cdk_aws_ec2_ceddda9d.IInstance, jsii.get(self, "runnerEc2"))
|
|
624
|
+
return typing.cast("_aws_cdk_aws_ec2_ceddda9d.IInstance", jsii.get(self, "runnerEc2"))
|
|
609
625
|
|
|
610
626
|
@builtins.property
|
|
611
627
|
@jsii.member(jsii_name="runnerRole")
|
|
612
|
-
def runner_role(self) -> _aws_cdk_aws_iam_ceddda9d.IRole:
|
|
628
|
+
def runner_role(self) -> "_aws_cdk_aws_iam_ceddda9d.IRole":
|
|
613
629
|
'''(experimental) The IAM role assumed by the Runner instance .
|
|
614
630
|
|
|
615
631
|
:stability: experimental
|
|
616
632
|
'''
|
|
617
|
-
return typing.cast(_aws_cdk_aws_iam_ceddda9d.IRole, jsii.get(self, "runnerRole"))
|
|
633
|
+
return typing.cast("_aws_cdk_aws_iam_ceddda9d.IRole", jsii.get(self, "runnerRole"))
|
|
618
634
|
|
|
619
635
|
@builtins.property
|
|
620
636
|
@jsii.member(jsii_name="spotFleetInstanceId")
|
|
@@ -636,12 +652,12 @@ class GitlabContainerRunner(
|
|
|
636
652
|
|
|
637
653
|
@builtins.property
|
|
638
654
|
@jsii.member(jsii_name="vpc")
|
|
639
|
-
def vpc(self) -> _aws_cdk_aws_ec2_ceddda9d.IVpc:
|
|
655
|
+
def vpc(self) -> "_aws_cdk_aws_ec2_ceddda9d.IVpc":
|
|
640
656
|
'''(experimental) The EC2 runner's vpc.
|
|
641
657
|
|
|
642
658
|
:stability: experimental
|
|
643
659
|
'''
|
|
644
|
-
return typing.cast(_aws_cdk_aws_ec2_ceddda9d.IVpc, jsii.get(self, "vpc"))
|
|
660
|
+
return typing.cast("_aws_cdk_aws_ec2_ceddda9d.IVpc", jsii.get(self, "vpc"))
|
|
645
661
|
|
|
646
662
|
|
|
647
663
|
@jsii.data_type(
|
|
@@ -660,8 +676,10 @@ class GitlabContainerRunner(
|
|
|
660
676
|
"gitlaburl": "gitlaburl",
|
|
661
677
|
"instance_interruption_behavior": "instanceInterruptionBehavior",
|
|
662
678
|
"key_name": "keyName",
|
|
679
|
+
"on_demand_ebs_config": "onDemandEbsConfig",
|
|
663
680
|
"runner_description": "runnerDescription",
|
|
664
681
|
"selfvpc": "selfvpc",
|
|
682
|
+
"spot_ebs_config": "spotEbsConfig",
|
|
665
683
|
"spot_fleet": "spotFleet",
|
|
666
684
|
"tags": "tags",
|
|
667
685
|
"valid_until": "validUntil",
|
|
@@ -675,21 +693,23 @@ class GitlabContainerRunnerProps:
|
|
|
675
693
|
gitlab_runner_version: builtins.str,
|
|
676
694
|
gitlabtoken: builtins.str,
|
|
677
695
|
concurrent_jobs: typing.Optional[jsii.Number] = None,
|
|
678
|
-
docker_volumes: typing.Optional[typing.Sequence[typing.Union[DockerVolumes, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
696
|
+
docker_volumes: typing.Optional[typing.Sequence[typing.Union["DockerVolumes", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
679
697
|
ebs_size: typing.Optional[jsii.Number] = None,
|
|
680
|
-
ec2iamrole: typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole] = None,
|
|
698
|
+
ec2iamrole: typing.Optional["_aws_cdk_aws_iam_ceddda9d.IRole"] = None,
|
|
681
699
|
ec2type: typing.Optional[builtins.str] = None,
|
|
682
700
|
enabled_imd_sv2: typing.Optional[builtins.bool] = None,
|
|
683
701
|
gitlab_runner_image: typing.Optional[builtins.str] = None,
|
|
684
702
|
gitlaburl: typing.Optional[builtins.str] = None,
|
|
685
703
|
instance_interruption_behavior: typing.Optional["InstanceInterruptionBehavior"] = None,
|
|
686
704
|
key_name: typing.Optional[builtins.str] = None,
|
|
705
|
+
on_demand_ebs_config: typing.Optional["_aws_cdk_aws_ec2_ceddda9d.BlockDeviceVolume"] = None,
|
|
687
706
|
runner_description: typing.Optional[builtins.str] = None,
|
|
688
|
-
selfvpc: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc] = None,
|
|
707
|
+
selfvpc: typing.Optional["_aws_cdk_aws_ec2_ceddda9d.IVpc"] = None,
|
|
708
|
+
spot_ebs_config: typing.Optional[typing.Union["_aws_cdk_aws_ec2_ceddda9d.CfnLaunchTemplate.EbsProperty", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
689
709
|
spot_fleet: typing.Optional[builtins.bool] = None,
|
|
690
710
|
tags: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
691
711
|
valid_until: typing.Optional[builtins.str] = None,
|
|
692
|
-
vpc_subnet: typing.Optional[typing.Union[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
712
|
+
vpc_subnet: typing.Optional[typing.Union["_aws_cdk_aws_ec2_ceddda9d.SubnetSelection", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
693
713
|
) -> None:
|
|
694
714
|
'''(experimental) GitlabContainerRunner Props.
|
|
695
715
|
|
|
@@ -697,7 +717,7 @@ class GitlabContainerRunnerProps:
|
|
|
697
717
|
:param gitlabtoken: (experimental) Gitlab token for the Register Runner . Default: - You must to give the token !!!
|
|
698
718
|
:param concurrent_jobs: (experimental) Gitlab Runner concurrent job configuration. Default: - concurrentJobs=1
|
|
699
719
|
:param docker_volumes: (experimental) add another Gitlab Container Runner Docker Volumes Path at job runner runtime. more detail see https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-runnersdocker-section Default: - already mount "/var/run/docker.sock:/var/run/docker.sock"
|
|
700
|
-
:param ebs_size: (
|
|
720
|
+
:param ebs_size: (deprecated) Gitlab Runner instance EBS size .
|
|
701
721
|
:param ec2iamrole: (experimental) IAM role for the Gitlab Runner Instance . Default: - new Role for Gitlab Runner Instance , attach AmazonSSMManagedInstanceCore Policy .
|
|
702
722
|
:param ec2type: (experimental) Runner default EC2 instance type. Default: - t3.micro
|
|
703
723
|
:param enabled_imd_sv2: (experimental) Enabled IMDSv2. more detail see https://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html Default: - false
|
|
@@ -705,8 +725,10 @@ class GitlabContainerRunnerProps:
|
|
|
705
725
|
:param gitlaburl: (experimental) Gitlab Runner register url . Default: - gitlaburl='https://gitlab.com/' , please use https://yourgitlab.com/ do not use https://yourgitlab.com
|
|
706
726
|
:param instance_interruption_behavior: (experimental) The behavior when a Spot Runner Instance is interrupted. Default: - InstanceInterruptionBehavior.TERMINATE , !!! only support spotfleet runner !!! .
|
|
707
727
|
:param key_name: (experimental) SSH key name. Default: - no ssh key will be assigned , !!! only support spotfleet runner !!! .
|
|
728
|
+
:param on_demand_ebs_config: (experimental) Gitlab Runner instance EBS config. Default: - onDemandEbsConfig=BlockDeviceVolume.ebs(60)
|
|
708
729
|
:param runner_description: (experimental) Gitlab Runner description. Default: - runnerDescription='Docker Runner'
|
|
709
730
|
:param selfvpc: (experimental) VPC for the Gitlab Runner . Default: - new VPC will be created , 1 Vpc , 2 Public Subnet .
|
|
731
|
+
:param spot_ebs_config: (experimental) Gitlab Runner instance EBS config. Default: - spotEbsConfig={ volumeSize: 60}
|
|
710
732
|
:param spot_fleet: (experimental) Gitlab Runner instance Use Spot Fleet or not ?!. Default: - spotFleet=false
|
|
711
733
|
:param tags: (experimental) tags for the runner Unsupported Gitlab Runner 15.10 and later. Default: - ['runner', 'gitlab', 'awscdk']
|
|
712
734
|
:param valid_until: (experimental) the time when the spot fleet allocation expires. Default: - no expiration , !!! only support spotfleet runner !!! .
|
|
@@ -714,6 +736,8 @@ class GitlabContainerRunnerProps:
|
|
|
714
736
|
|
|
715
737
|
:stability: experimental
|
|
716
738
|
'''
|
|
739
|
+
if isinstance(spot_ebs_config, dict):
|
|
740
|
+
spot_ebs_config = _aws_cdk_aws_ec2_ceddda9d.CfnLaunchTemplate.EbsProperty(**spot_ebs_config)
|
|
717
741
|
if isinstance(vpc_subnet, dict):
|
|
718
742
|
vpc_subnet = _aws_cdk_aws_ec2_ceddda9d.SubnetSelection(**vpc_subnet)
|
|
719
743
|
if __debug__:
|
|
@@ -730,8 +754,10 @@ class GitlabContainerRunnerProps:
|
|
|
730
754
|
check_type(argname="argument gitlaburl", value=gitlaburl, expected_type=type_hints["gitlaburl"])
|
|
731
755
|
check_type(argname="argument instance_interruption_behavior", value=instance_interruption_behavior, expected_type=type_hints["instance_interruption_behavior"])
|
|
732
756
|
check_type(argname="argument key_name", value=key_name, expected_type=type_hints["key_name"])
|
|
757
|
+
check_type(argname="argument on_demand_ebs_config", value=on_demand_ebs_config, expected_type=type_hints["on_demand_ebs_config"])
|
|
733
758
|
check_type(argname="argument runner_description", value=runner_description, expected_type=type_hints["runner_description"])
|
|
734
759
|
check_type(argname="argument selfvpc", value=selfvpc, expected_type=type_hints["selfvpc"])
|
|
760
|
+
check_type(argname="argument spot_ebs_config", value=spot_ebs_config, expected_type=type_hints["spot_ebs_config"])
|
|
735
761
|
check_type(argname="argument spot_fleet", value=spot_fleet, expected_type=type_hints["spot_fleet"])
|
|
736
762
|
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
737
763
|
check_type(argname="argument valid_until", value=valid_until, expected_type=type_hints["valid_until"])
|
|
@@ -760,10 +786,14 @@ class GitlabContainerRunnerProps:
|
|
|
760
786
|
self._values["instance_interruption_behavior"] = instance_interruption_behavior
|
|
761
787
|
if key_name is not None:
|
|
762
788
|
self._values["key_name"] = key_name
|
|
789
|
+
if on_demand_ebs_config is not None:
|
|
790
|
+
self._values["on_demand_ebs_config"] = on_demand_ebs_config
|
|
763
791
|
if runner_description is not None:
|
|
764
792
|
self._values["runner_description"] = runner_description
|
|
765
793
|
if selfvpc is not None:
|
|
766
794
|
self._values["selfvpc"] = selfvpc
|
|
795
|
+
if spot_ebs_config is not None:
|
|
796
|
+
self._values["spot_ebs_config"] = spot_ebs_config
|
|
767
797
|
if spot_fleet is not None:
|
|
768
798
|
self._values["spot_fleet"] = spot_fleet
|
|
769
799
|
if tags is not None:
|
|
@@ -815,7 +845,7 @@ class GitlabContainerRunnerProps:
|
|
|
815
845
|
return typing.cast(typing.Optional[jsii.Number], result)
|
|
816
846
|
|
|
817
847
|
@builtins.property
|
|
818
|
-
def docker_volumes(self) -> typing.Optional[typing.List[DockerVolumes]]:
|
|
848
|
+
def docker_volumes(self) -> typing.Optional[typing.List["DockerVolumes"]]:
|
|
819
849
|
'''(experimental) add another Gitlab Container Runner Docker Volumes Path at job runner runtime.
|
|
820
850
|
|
|
821
851
|
more detail see https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-runnersdocker-section
|
|
@@ -834,25 +864,21 @@ class GitlabContainerRunnerProps:
|
|
|
834
864
|
],
|
|
835
865
|
'''
|
|
836
866
|
result = self._values.get("docker_volumes")
|
|
837
|
-
return typing.cast(typing.Optional[typing.List[DockerVolumes]], result)
|
|
867
|
+
return typing.cast(typing.Optional[typing.List["DockerVolumes"]], result)
|
|
838
868
|
|
|
839
869
|
@builtins.property
|
|
840
870
|
def ebs_size(self) -> typing.Optional[jsii.Number]:
|
|
841
|
-
'''(
|
|
871
|
+
'''(deprecated) Gitlab Runner instance EBS size .
|
|
842
872
|
|
|
843
|
-
:
|
|
873
|
+
:deprecated: , use ebsConfig
|
|
844
874
|
|
|
845
|
-
:stability:
|
|
846
|
-
|
|
847
|
-
Example::
|
|
848
|
-
|
|
849
|
-
const runner = new GitlabContainerRunner(stack, 'runner', { gitlabtoken: 'GITLAB_TOKEN',ebsSize: 100});
|
|
875
|
+
:stability: deprecated
|
|
850
876
|
'''
|
|
851
877
|
result = self._values.get("ebs_size")
|
|
852
878
|
return typing.cast(typing.Optional[jsii.Number], result)
|
|
853
879
|
|
|
854
880
|
@builtins.property
|
|
855
|
-
def ec2iamrole(self) -> typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole]:
|
|
881
|
+
def ec2iamrole(self) -> typing.Optional["_aws_cdk_aws_iam_ceddda9d.IRole"]:
|
|
856
882
|
'''(experimental) IAM role for the Gitlab Runner Instance .
|
|
857
883
|
|
|
858
884
|
:default: - new Role for Gitlab Runner Instance , attach AmazonSSMManagedInstanceCore Policy .
|
|
@@ -870,7 +896,7 @@ class GitlabContainerRunnerProps:
|
|
|
870
896
|
new GitlabContainerRunner(stack, 'runner', { gitlabtoken: 'GITLAB_TOKEN', ec2iamrole: role });
|
|
871
897
|
'''
|
|
872
898
|
result = self._values.get("ec2iamrole")
|
|
873
|
-
return typing.cast(typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole], result)
|
|
899
|
+
return typing.cast(typing.Optional["_aws_cdk_aws_iam_ceddda9d.IRole"], result)
|
|
874
900
|
|
|
875
901
|
@builtins.property
|
|
876
902
|
def ec2type(self) -> typing.Optional[builtins.str]:
|
|
@@ -954,6 +980,23 @@ class GitlabContainerRunnerProps:
|
|
|
954
980
|
result = self._values.get("key_name")
|
|
955
981
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
956
982
|
|
|
983
|
+
@builtins.property
|
|
984
|
+
def on_demand_ebs_config(
|
|
985
|
+
self,
|
|
986
|
+
) -> typing.Optional["_aws_cdk_aws_ec2_ceddda9d.BlockDeviceVolume"]:
|
|
987
|
+
'''(experimental) Gitlab Runner instance EBS config.
|
|
988
|
+
|
|
989
|
+
:default: - onDemandEbsConfig=BlockDeviceVolume.ebs(60)
|
|
990
|
+
|
|
991
|
+
:stability: experimental
|
|
992
|
+
|
|
993
|
+
Example::
|
|
994
|
+
|
|
995
|
+
const runner = new GitlabContainerRunner(stack, 'runner', { gitlabToken: 'GITLAB_TOKEN', onDemandEbsConfig: BlockDeviceVolume.ebs(60)});
|
|
996
|
+
'''
|
|
997
|
+
result = self._values.get("on_demand_ebs_config")
|
|
998
|
+
return typing.cast(typing.Optional["_aws_cdk_aws_ec2_ceddda9d.BlockDeviceVolume"], result)
|
|
999
|
+
|
|
957
1000
|
@builtins.property
|
|
958
1001
|
def runner_description(self) -> typing.Optional[builtins.str]:
|
|
959
1002
|
'''(experimental) Gitlab Runner description.
|
|
@@ -970,7 +1013,7 @@ class GitlabContainerRunnerProps:
|
|
|
970
1013
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
971
1014
|
|
|
972
1015
|
@builtins.property
|
|
973
|
-
def selfvpc(self) -> typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc]:
|
|
1016
|
+
def selfvpc(self) -> typing.Optional["_aws_cdk_aws_ec2_ceddda9d.IVpc"]:
|
|
974
1017
|
'''(experimental) VPC for the Gitlab Runner .
|
|
975
1018
|
|
|
976
1019
|
:default: - new VPC will be created , 1 Vpc , 2 Public Subnet .
|
|
@@ -993,7 +1036,24 @@ class GitlabContainerRunnerProps:
|
|
|
993
1036
|
new GitlabContainerRunner(stack, 'runner', { gitlabtoken: 'GITLAB_TOKEN', selfvpc: newvpc });
|
|
994
1037
|
'''
|
|
995
1038
|
result = self._values.get("selfvpc")
|
|
996
|
-
return typing.cast(typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc], result)
|
|
1039
|
+
return typing.cast(typing.Optional["_aws_cdk_aws_ec2_ceddda9d.IVpc"], result)
|
|
1040
|
+
|
|
1041
|
+
@builtins.property
|
|
1042
|
+
def spot_ebs_config(
|
|
1043
|
+
self,
|
|
1044
|
+
) -> typing.Optional["_aws_cdk_aws_ec2_ceddda9d.CfnLaunchTemplate.EbsProperty"]:
|
|
1045
|
+
'''(experimental) Gitlab Runner instance EBS config.
|
|
1046
|
+
|
|
1047
|
+
:default: - spotEbsConfig={ volumeSize: 60}
|
|
1048
|
+
|
|
1049
|
+
:stability: experimental
|
|
1050
|
+
|
|
1051
|
+
Example::
|
|
1052
|
+
|
|
1053
|
+
const runner = new GitlabContainerRunner(stack, 'runner', { gitlabToken: 'GITLAB_TOKEN', ebsConfig: { volumeSize: 60}});
|
|
1054
|
+
'''
|
|
1055
|
+
result = self._values.get("spot_ebs_config")
|
|
1056
|
+
return typing.cast(typing.Optional["_aws_cdk_aws_ec2_ceddda9d.CfnLaunchTemplate.EbsProperty"], result)
|
|
997
1057
|
|
|
998
1058
|
@builtins.property
|
|
999
1059
|
def spot_fleet(self) -> typing.Optional[builtins.bool]:
|
|
@@ -1034,7 +1094,9 @@ class GitlabContainerRunnerProps:
|
|
|
1034
1094
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
1035
1095
|
|
|
1036
1096
|
@builtins.property
|
|
1037
|
-
def vpc_subnet(
|
|
1097
|
+
def vpc_subnet(
|
|
1098
|
+
self,
|
|
1099
|
+
) -> typing.Optional["_aws_cdk_aws_ec2_ceddda9d.SubnetSelection"]:
|
|
1038
1100
|
'''(experimental) VPC subnet for the spot fleet.
|
|
1039
1101
|
|
|
1040
1102
|
:default: - public subnet
|
|
@@ -1051,7 +1113,6 @@ class GitlabContainerRunnerProps:
|
|
|
1051
1113
|
gitlabtoken: 'GITLAB_TOKEN',
|
|
1052
1114
|
ec2type: 't3.large',
|
|
1053
1115
|
ec2iamrole: role,
|
|
1054
|
-
ebsSize: 100,
|
|
1055
1116
|
selfvpc: vpc,
|
|
1056
1117
|
vpcSubnet: {
|
|
1057
1118
|
subnetType: SubnetType.PUBLIC,
|
|
@@ -1059,7 +1120,7 @@ class GitlabContainerRunnerProps:
|
|
|
1059
1120
|
});
|
|
1060
1121
|
'''
|
|
1061
1122
|
result = self._values.get("vpc_subnet")
|
|
1062
|
-
return typing.cast(typing.Optional[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection], result)
|
|
1123
|
+
return typing.cast(typing.Optional["_aws_cdk_aws_ec2_ceddda9d.SubnetSelection"], result)
|
|
1063
1124
|
|
|
1064
1125
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1065
1126
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -1085,25 +1146,26 @@ class GitlabRunnerAutoscaling(
|
|
|
1085
1146
|
|
|
1086
1147
|
def __init__(
|
|
1087
1148
|
self,
|
|
1088
|
-
scope: _constructs_77d1e7e8.Construct,
|
|
1149
|
+
scope: "_constructs_77d1e7e8.Construct",
|
|
1089
1150
|
id: builtins.str,
|
|
1090
1151
|
*,
|
|
1091
1152
|
gitlab_runner_version: builtins.str,
|
|
1092
1153
|
gitlab_token: builtins.str,
|
|
1093
1154
|
alarms: typing.Optional[typing.Sequence[typing.Mapping[typing.Any, typing.Any]]] = None,
|
|
1094
1155
|
desired_capacity: typing.Optional[jsii.Number] = None,
|
|
1095
|
-
docker_volumes: typing.Optional[typing.Sequence[typing.Union[DockerVolumes, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1156
|
+
docker_volumes: typing.Optional[typing.Sequence[typing.Union["DockerVolumes", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1157
|
+
ebs_config: typing.Optional[typing.Union["_aws_cdk_aws_ec2_ceddda9d.CfnLaunchTemplate.EbsProperty", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1096
1158
|
ebs_size: typing.Optional[jsii.Number] = None,
|
|
1097
1159
|
gitlab_runner_image: typing.Optional[builtins.str] = None,
|
|
1098
1160
|
gitlab_url: typing.Optional[builtins.str] = None,
|
|
1099
|
-
instance_role: typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole] = None,
|
|
1161
|
+
instance_role: typing.Optional["_aws_cdk_aws_iam_ceddda9d.IRole"] = None,
|
|
1100
1162
|
instance_type: typing.Optional[builtins.str] = None,
|
|
1101
1163
|
max_capacity: typing.Optional[jsii.Number] = None,
|
|
1102
1164
|
min_capacity: typing.Optional[jsii.Number] = None,
|
|
1103
1165
|
spot_instance: typing.Optional[builtins.bool] = None,
|
|
1104
1166
|
tags: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
1105
|
-
vpc: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc] = None,
|
|
1106
|
-
vpc_subnet: typing.Optional[typing.Union[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1167
|
+
vpc: typing.Optional["_aws_cdk_aws_ec2_ceddda9d.IVpc"] = None,
|
|
1168
|
+
vpc_subnet: typing.Optional[typing.Union["_aws_cdk_aws_ec2_ceddda9d.SubnetSelection", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1107
1169
|
) -> None:
|
|
1108
1170
|
'''
|
|
1109
1171
|
:param scope: -
|
|
@@ -1113,7 +1175,8 @@ class GitlabRunnerAutoscaling(
|
|
|
1113
1175
|
:param alarms: (experimental) Parameters of put_metric_alarm function. https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/cloudwatch.html#CloudWatch.Client.put_metric_alarm Default: - [{ AlarmName: 'GitlabRunnerDiskUsage', MetricName: 'disk_used_percent', }]
|
|
1114
1176
|
:param desired_capacity: (experimental) Desired capacity limit for autoscaling group. Default: - minCapacity, and leave unchanged during deployment
|
|
1115
1177
|
:param docker_volumes: (experimental) add another Gitlab Container Runner Docker Volumes Path at job runner runtime. more detail see https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-runnersdocker-section Default: - already mount "/var/run/docker.sock:/var/run/docker.sock"
|
|
1116
|
-
:param
|
|
1178
|
+
:param ebs_config: (experimental) Gitlab Runner instance EBS config. Default: - ebsConfig={ volumeSize: 60}
|
|
1179
|
+
:param ebs_size: (deprecated) Gitlab Runner instance EBS size .
|
|
1117
1180
|
:param gitlab_runner_image: (experimental) Image URL of Gitlab Runner. Default: public.ecr.aws/gitlab/gitlab-runner:latest
|
|
1118
1181
|
:param gitlab_url: (experimental) Gitlab Runner register url . Default: - https://gitlab.com/ , The trailing slash is mandatory.
|
|
1119
1182
|
:param instance_role: (experimental) IAM role for the Gitlab Runner Instance . Default: - new Role for Gitlab Runner Instance , attach AmazonSSMManagedInstanceCore Policy .
|
|
@@ -1137,6 +1200,7 @@ class GitlabRunnerAutoscaling(
|
|
|
1137
1200
|
alarms=alarms,
|
|
1138
1201
|
desired_capacity=desired_capacity,
|
|
1139
1202
|
docker_volumes=docker_volumes,
|
|
1203
|
+
ebs_config=ebs_config,
|
|
1140
1204
|
ebs_size=ebs_size,
|
|
1141
1205
|
gitlab_runner_image=gitlab_runner_image,
|
|
1142
1206
|
gitlab_url=gitlab_url,
|
|
@@ -1160,18 +1224,19 @@ class GitlabRunnerAutoscaling(
|
|
|
1160
1224
|
gitlab_token: builtins.str,
|
|
1161
1225
|
alarms: typing.Optional[typing.Sequence[typing.Mapping[typing.Any, typing.Any]]] = None,
|
|
1162
1226
|
desired_capacity: typing.Optional[jsii.Number] = None,
|
|
1163
|
-
docker_volumes: typing.Optional[typing.Sequence[typing.Union[DockerVolumes, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1227
|
+
docker_volumes: typing.Optional[typing.Sequence[typing.Union["DockerVolumes", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1228
|
+
ebs_config: typing.Optional[typing.Union["_aws_cdk_aws_ec2_ceddda9d.CfnLaunchTemplate.EbsProperty", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1164
1229
|
ebs_size: typing.Optional[jsii.Number] = None,
|
|
1165
1230
|
gitlab_runner_image: typing.Optional[builtins.str] = None,
|
|
1166
1231
|
gitlab_url: typing.Optional[builtins.str] = None,
|
|
1167
|
-
instance_role: typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole] = None,
|
|
1232
|
+
instance_role: typing.Optional["_aws_cdk_aws_iam_ceddda9d.IRole"] = None,
|
|
1168
1233
|
instance_type: typing.Optional[builtins.str] = None,
|
|
1169
1234
|
max_capacity: typing.Optional[jsii.Number] = None,
|
|
1170
1235
|
min_capacity: typing.Optional[jsii.Number] = None,
|
|
1171
1236
|
spot_instance: typing.Optional[builtins.bool] = None,
|
|
1172
1237
|
tags: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
1173
|
-
vpc: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc] = None,
|
|
1174
|
-
vpc_subnet: typing.Optional[typing.Union[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1238
|
+
vpc: typing.Optional["_aws_cdk_aws_ec2_ceddda9d.IVpc"] = None,
|
|
1239
|
+
vpc_subnet: typing.Optional[typing.Union["_aws_cdk_aws_ec2_ceddda9d.SubnetSelection", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1175
1240
|
) -> typing.List[builtins.str]:
|
|
1176
1241
|
'''
|
|
1177
1242
|
:param gitlab_runner_version: (experimental) Gitlab Runner version Please give me gitlab runner version.
|
|
@@ -1179,7 +1244,8 @@ class GitlabRunnerAutoscaling(
|
|
|
1179
1244
|
:param alarms: (experimental) Parameters of put_metric_alarm function. https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/cloudwatch.html#CloudWatch.Client.put_metric_alarm Default: - [{ AlarmName: 'GitlabRunnerDiskUsage', MetricName: 'disk_used_percent', }]
|
|
1180
1245
|
:param desired_capacity: (experimental) Desired capacity limit for autoscaling group. Default: - minCapacity, and leave unchanged during deployment
|
|
1181
1246
|
:param docker_volumes: (experimental) add another Gitlab Container Runner Docker Volumes Path at job runner runtime. more detail see https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-runnersdocker-section Default: - already mount "/var/run/docker.sock:/var/run/docker.sock"
|
|
1182
|
-
:param
|
|
1247
|
+
:param ebs_config: (experimental) Gitlab Runner instance EBS config. Default: - ebsConfig={ volumeSize: 60}
|
|
1248
|
+
:param ebs_size: (deprecated) Gitlab Runner instance EBS size .
|
|
1183
1249
|
:param gitlab_runner_image: (experimental) Image URL of Gitlab Runner. Default: public.ecr.aws/gitlab/gitlab-runner:latest
|
|
1184
1250
|
:param gitlab_url: (experimental) Gitlab Runner register url . Default: - https://gitlab.com/ , The trailing slash is mandatory.
|
|
1185
1251
|
:param instance_role: (experimental) IAM role for the Gitlab Runner Instance . Default: - new Role for Gitlab Runner Instance , attach AmazonSSMManagedInstanceCore Policy .
|
|
@@ -1201,6 +1267,7 @@ class GitlabRunnerAutoscaling(
|
|
|
1201
1267
|
alarms=alarms,
|
|
1202
1268
|
desired_capacity=desired_capacity,
|
|
1203
1269
|
docker_volumes=docker_volumes,
|
|
1270
|
+
ebs_config=ebs_config,
|
|
1204
1271
|
ebs_size=ebs_size,
|
|
1205
1272
|
gitlab_runner_image=gitlab_runner_image,
|
|
1206
1273
|
gitlab_url=gitlab_url,
|
|
@@ -1218,48 +1285,48 @@ class GitlabRunnerAutoscaling(
|
|
|
1218
1285
|
|
|
1219
1286
|
@builtins.property
|
|
1220
1287
|
@jsii.member(jsii_name="autoscalingGroup")
|
|
1221
|
-
def autoscaling_group(self) -> _aws_cdk_aws_autoscaling_ceddda9d.AutoScalingGroup:
|
|
1288
|
+
def autoscaling_group(self) -> "_aws_cdk_aws_autoscaling_ceddda9d.AutoScalingGroup":
|
|
1222
1289
|
'''(experimental) This represents a Runner Auto Scaling Group.
|
|
1223
1290
|
|
|
1224
1291
|
:stability: experimental
|
|
1225
1292
|
'''
|
|
1226
|
-
return typing.cast(_aws_cdk_aws_autoscaling_ceddda9d.AutoScalingGroup, jsii.get(self, "autoscalingGroup"))
|
|
1293
|
+
return typing.cast("_aws_cdk_aws_autoscaling_ceddda9d.AutoScalingGroup", jsii.get(self, "autoscalingGroup"))
|
|
1227
1294
|
|
|
1228
1295
|
@builtins.property
|
|
1229
1296
|
@jsii.member(jsii_name="instanceRole")
|
|
1230
|
-
def instance_role(self) -> _aws_cdk_aws_iam_ceddda9d.IRole:
|
|
1297
|
+
def instance_role(self) -> "_aws_cdk_aws_iam_ceddda9d.IRole":
|
|
1231
1298
|
'''(experimental) The IAM role assumed by the Runner instance.
|
|
1232
1299
|
|
|
1233
1300
|
:stability: experimental
|
|
1234
1301
|
'''
|
|
1235
|
-
return typing.cast(_aws_cdk_aws_iam_ceddda9d.IRole, jsii.get(self, "instanceRole"))
|
|
1302
|
+
return typing.cast("_aws_cdk_aws_iam_ceddda9d.IRole", jsii.get(self, "instanceRole"))
|
|
1236
1303
|
|
|
1237
1304
|
@builtins.property
|
|
1238
1305
|
@jsii.member(jsii_name="securityGroup")
|
|
1239
|
-
def security_group(self) -> _aws_cdk_aws_ec2_ceddda9d.ISecurityGroup:
|
|
1306
|
+
def security_group(self) -> "_aws_cdk_aws_ec2_ceddda9d.ISecurityGroup":
|
|
1240
1307
|
'''(experimental) The EC2 runner's default SecurityGroup.
|
|
1241
1308
|
|
|
1242
1309
|
:stability: experimental
|
|
1243
1310
|
'''
|
|
1244
|
-
return typing.cast(_aws_cdk_aws_ec2_ceddda9d.ISecurityGroup, jsii.get(self, "securityGroup"))
|
|
1311
|
+
return typing.cast("_aws_cdk_aws_ec2_ceddda9d.ISecurityGroup", jsii.get(self, "securityGroup"))
|
|
1245
1312
|
|
|
1246
1313
|
@builtins.property
|
|
1247
1314
|
@jsii.member(jsii_name="topicAlarm")
|
|
1248
|
-
def topic_alarm(self) -> _aws_cdk_aws_sns_ceddda9d.ITopic:
|
|
1315
|
+
def topic_alarm(self) -> "_aws_cdk_aws_sns_ceddda9d.ITopic":
|
|
1249
1316
|
'''(experimental) The SNS topic to suscribe alarms for EC2 runner's metrics.
|
|
1250
1317
|
|
|
1251
1318
|
:stability: experimental
|
|
1252
1319
|
'''
|
|
1253
|
-
return typing.cast(_aws_cdk_aws_sns_ceddda9d.ITopic, jsii.get(self, "topicAlarm"))
|
|
1320
|
+
return typing.cast("_aws_cdk_aws_sns_ceddda9d.ITopic", jsii.get(self, "topicAlarm"))
|
|
1254
1321
|
|
|
1255
1322
|
@builtins.property
|
|
1256
1323
|
@jsii.member(jsii_name="vpc")
|
|
1257
|
-
def vpc(self) -> _aws_cdk_aws_ec2_ceddda9d.IVpc:
|
|
1324
|
+
def vpc(self) -> "_aws_cdk_aws_ec2_ceddda9d.IVpc":
|
|
1258
1325
|
'''(experimental) The EC2 runner's VPC.
|
|
1259
1326
|
|
|
1260
1327
|
:stability: experimental
|
|
1261
1328
|
'''
|
|
1262
|
-
return typing.cast(_aws_cdk_aws_ec2_ceddda9d.IVpc, jsii.get(self, "vpc"))
|
|
1329
|
+
return typing.cast("_aws_cdk_aws_ec2_ceddda9d.IVpc", jsii.get(self, "vpc"))
|
|
1263
1330
|
|
|
1264
1331
|
|
|
1265
1332
|
@jsii.data_type(
|
|
@@ -1271,6 +1338,7 @@ class GitlabRunnerAutoscaling(
|
|
|
1271
1338
|
"alarms": "alarms",
|
|
1272
1339
|
"desired_capacity": "desiredCapacity",
|
|
1273
1340
|
"docker_volumes": "dockerVolumes",
|
|
1341
|
+
"ebs_config": "ebsConfig",
|
|
1274
1342
|
"ebs_size": "ebsSize",
|
|
1275
1343
|
"gitlab_runner_image": "gitlabRunnerImage",
|
|
1276
1344
|
"gitlab_url": "gitlabUrl",
|
|
@@ -1292,18 +1360,19 @@ class GitlabRunnerAutoscalingProps:
|
|
|
1292
1360
|
gitlab_token: builtins.str,
|
|
1293
1361
|
alarms: typing.Optional[typing.Sequence[typing.Mapping[typing.Any, typing.Any]]] = None,
|
|
1294
1362
|
desired_capacity: typing.Optional[jsii.Number] = None,
|
|
1295
|
-
docker_volumes: typing.Optional[typing.Sequence[typing.Union[DockerVolumes, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1363
|
+
docker_volumes: typing.Optional[typing.Sequence[typing.Union["DockerVolumes", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1364
|
+
ebs_config: typing.Optional[typing.Union["_aws_cdk_aws_ec2_ceddda9d.CfnLaunchTemplate.EbsProperty", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1296
1365
|
ebs_size: typing.Optional[jsii.Number] = None,
|
|
1297
1366
|
gitlab_runner_image: typing.Optional[builtins.str] = None,
|
|
1298
1367
|
gitlab_url: typing.Optional[builtins.str] = None,
|
|
1299
|
-
instance_role: typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole] = None,
|
|
1368
|
+
instance_role: typing.Optional["_aws_cdk_aws_iam_ceddda9d.IRole"] = None,
|
|
1300
1369
|
instance_type: typing.Optional[builtins.str] = None,
|
|
1301
1370
|
max_capacity: typing.Optional[jsii.Number] = None,
|
|
1302
1371
|
min_capacity: typing.Optional[jsii.Number] = None,
|
|
1303
1372
|
spot_instance: typing.Optional[builtins.bool] = None,
|
|
1304
1373
|
tags: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
1305
|
-
vpc: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc] = None,
|
|
1306
|
-
vpc_subnet: typing.Optional[typing.Union[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1374
|
+
vpc: typing.Optional["_aws_cdk_aws_ec2_ceddda9d.IVpc"] = None,
|
|
1375
|
+
vpc_subnet: typing.Optional[typing.Union["_aws_cdk_aws_ec2_ceddda9d.SubnetSelection", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1307
1376
|
) -> None:
|
|
1308
1377
|
'''(experimental) GitlabRunnerAutoscaling Props.
|
|
1309
1378
|
|
|
@@ -1312,7 +1381,8 @@ class GitlabRunnerAutoscalingProps:
|
|
|
1312
1381
|
:param alarms: (experimental) Parameters of put_metric_alarm function. https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/cloudwatch.html#CloudWatch.Client.put_metric_alarm Default: - [{ AlarmName: 'GitlabRunnerDiskUsage', MetricName: 'disk_used_percent', }]
|
|
1313
1382
|
:param desired_capacity: (experimental) Desired capacity limit for autoscaling group. Default: - minCapacity, and leave unchanged during deployment
|
|
1314
1383
|
:param docker_volumes: (experimental) add another Gitlab Container Runner Docker Volumes Path at job runner runtime. more detail see https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-runnersdocker-section Default: - already mount "/var/run/docker.sock:/var/run/docker.sock"
|
|
1315
|
-
:param
|
|
1384
|
+
:param ebs_config: (experimental) Gitlab Runner instance EBS config. Default: - ebsConfig={ volumeSize: 60}
|
|
1385
|
+
:param ebs_size: (deprecated) Gitlab Runner instance EBS size .
|
|
1316
1386
|
:param gitlab_runner_image: (experimental) Image URL of Gitlab Runner. Default: public.ecr.aws/gitlab/gitlab-runner:latest
|
|
1317
1387
|
:param gitlab_url: (experimental) Gitlab Runner register url . Default: - https://gitlab.com/ , The trailing slash is mandatory.
|
|
1318
1388
|
:param instance_role: (experimental) IAM role for the Gitlab Runner Instance . Default: - new Role for Gitlab Runner Instance , attach AmazonSSMManagedInstanceCore Policy .
|
|
@@ -1326,6 +1396,8 @@ class GitlabRunnerAutoscalingProps:
|
|
|
1326
1396
|
|
|
1327
1397
|
:stability: experimental
|
|
1328
1398
|
'''
|
|
1399
|
+
if isinstance(ebs_config, dict):
|
|
1400
|
+
ebs_config = _aws_cdk_aws_ec2_ceddda9d.CfnLaunchTemplate.EbsProperty(**ebs_config)
|
|
1329
1401
|
if isinstance(vpc_subnet, dict):
|
|
1330
1402
|
vpc_subnet = _aws_cdk_aws_ec2_ceddda9d.SubnetSelection(**vpc_subnet)
|
|
1331
1403
|
if __debug__:
|
|
@@ -1335,6 +1407,7 @@ class GitlabRunnerAutoscalingProps:
|
|
|
1335
1407
|
check_type(argname="argument alarms", value=alarms, expected_type=type_hints["alarms"])
|
|
1336
1408
|
check_type(argname="argument desired_capacity", value=desired_capacity, expected_type=type_hints["desired_capacity"])
|
|
1337
1409
|
check_type(argname="argument docker_volumes", value=docker_volumes, expected_type=type_hints["docker_volumes"])
|
|
1410
|
+
check_type(argname="argument ebs_config", value=ebs_config, expected_type=type_hints["ebs_config"])
|
|
1338
1411
|
check_type(argname="argument ebs_size", value=ebs_size, expected_type=type_hints["ebs_size"])
|
|
1339
1412
|
check_type(argname="argument gitlab_runner_image", value=gitlab_runner_image, expected_type=type_hints["gitlab_runner_image"])
|
|
1340
1413
|
check_type(argname="argument gitlab_url", value=gitlab_url, expected_type=type_hints["gitlab_url"])
|
|
@@ -1356,6 +1429,8 @@ class GitlabRunnerAutoscalingProps:
|
|
|
1356
1429
|
self._values["desired_capacity"] = desired_capacity
|
|
1357
1430
|
if docker_volumes is not None:
|
|
1358
1431
|
self._values["docker_volumes"] = docker_volumes
|
|
1432
|
+
if ebs_config is not None:
|
|
1433
|
+
self._values["ebs_config"] = ebs_config
|
|
1359
1434
|
if ebs_size is not None:
|
|
1360
1435
|
self._values["ebs_size"] = ebs_size
|
|
1361
1436
|
if gitlab_runner_image is not None:
|
|
@@ -1439,7 +1514,7 @@ class GitlabRunnerAutoscalingProps:
|
|
|
1439
1514
|
return typing.cast(typing.Optional[jsii.Number], result)
|
|
1440
1515
|
|
|
1441
1516
|
@builtins.property
|
|
1442
|
-
def docker_volumes(self) -> typing.Optional[typing.List[DockerVolumes]]:
|
|
1517
|
+
def docker_volumes(self) -> typing.Optional[typing.List["DockerVolumes"]]:
|
|
1443
1518
|
'''(experimental) add another Gitlab Container Runner Docker Volumes Path at job runner runtime.
|
|
1444
1519
|
|
|
1445
1520
|
more detail see https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-runnersdocker-section
|
|
@@ -1458,19 +1533,32 @@ class GitlabRunnerAutoscalingProps:
|
|
|
1458
1533
|
],
|
|
1459
1534
|
'''
|
|
1460
1535
|
result = self._values.get("docker_volumes")
|
|
1461
|
-
return typing.cast(typing.Optional[typing.List[DockerVolumes]], result)
|
|
1536
|
+
return typing.cast(typing.Optional[typing.List["DockerVolumes"]], result)
|
|
1462
1537
|
|
|
1463
1538
|
@builtins.property
|
|
1464
|
-
def
|
|
1465
|
-
|
|
1539
|
+
def ebs_config(
|
|
1540
|
+
self,
|
|
1541
|
+
) -> typing.Optional["_aws_cdk_aws_ec2_ceddda9d.CfnLaunchTemplate.EbsProperty"]:
|
|
1542
|
+
'''(experimental) Gitlab Runner instance EBS config.
|
|
1466
1543
|
|
|
1467
|
-
:default: -
|
|
1544
|
+
:default: - ebsConfig={ volumeSize: 60}
|
|
1468
1545
|
|
|
1469
1546
|
:stability: experimental
|
|
1470
1547
|
|
|
1471
1548
|
Example::
|
|
1472
1549
|
|
|
1473
|
-
const runner = new GitlabRunnerAutoscaling(stack, 'runner', { gitlabToken: 'GITLAB_TOKEN',
|
|
1550
|
+
const runner = new GitlabRunnerAutoscaling(stack, 'runner', { gitlabToken: 'GITLAB_TOKEN', ebsConfig: { volumeSize: 60}});
|
|
1551
|
+
'''
|
|
1552
|
+
result = self._values.get("ebs_config")
|
|
1553
|
+
return typing.cast(typing.Optional["_aws_cdk_aws_ec2_ceddda9d.CfnLaunchTemplate.EbsProperty"], result)
|
|
1554
|
+
|
|
1555
|
+
@builtins.property
|
|
1556
|
+
def ebs_size(self) -> typing.Optional[jsii.Number]:
|
|
1557
|
+
'''(deprecated) Gitlab Runner instance EBS size .
|
|
1558
|
+
|
|
1559
|
+
:deprecated: , use ebsConfig
|
|
1560
|
+
|
|
1561
|
+
:stability: deprecated
|
|
1474
1562
|
'''
|
|
1475
1563
|
result = self._values.get("ebs_size")
|
|
1476
1564
|
return typing.cast(typing.Optional[jsii.Number], result)
|
|
@@ -1506,7 +1594,7 @@ class GitlabRunnerAutoscalingProps:
|
|
|
1506
1594
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
1507
1595
|
|
|
1508
1596
|
@builtins.property
|
|
1509
|
-
def instance_role(self) -> typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole]:
|
|
1597
|
+
def instance_role(self) -> typing.Optional["_aws_cdk_aws_iam_ceddda9d.IRole"]:
|
|
1510
1598
|
'''(experimental) IAM role for the Gitlab Runner Instance .
|
|
1511
1599
|
|
|
1512
1600
|
:default: - new Role for Gitlab Runner Instance , attach AmazonSSMManagedInstanceCore Policy .
|
|
@@ -1524,7 +1612,7 @@ class GitlabRunnerAutoscalingProps:
|
|
|
1524
1612
|
new GitlabRunnerAutoscaling(stack, 'runner', { gitlabToken: 'GITLAB_TOKEN', instanceRole: role });
|
|
1525
1613
|
'''
|
|
1526
1614
|
result = self._values.get("instance_role")
|
|
1527
|
-
return typing.cast(typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole], result)
|
|
1615
|
+
return typing.cast(typing.Optional["_aws_cdk_aws_iam_ceddda9d.IRole"], result)
|
|
1528
1616
|
|
|
1529
1617
|
@builtins.property
|
|
1530
1618
|
def instance_type(self) -> typing.Optional[builtins.str]:
|
|
@@ -1594,7 +1682,7 @@ class GitlabRunnerAutoscalingProps:
|
|
|
1594
1682
|
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
1595
1683
|
|
|
1596
1684
|
@builtins.property
|
|
1597
|
-
def vpc(self) -> typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc]:
|
|
1685
|
+
def vpc(self) -> typing.Optional["_aws_cdk_aws_ec2_ceddda9d.IVpc"]:
|
|
1598
1686
|
'''(experimental) VPC for the Gitlab Runner .
|
|
1599
1687
|
|
|
1600
1688
|
:default: - A new VPC will be created.
|
|
@@ -1617,10 +1705,12 @@ class GitlabRunnerAutoscalingProps:
|
|
|
1617
1705
|
new GitlabRunnerAutoscaling(stack, 'runner', { gitlabToken: 'GITLAB_TOKEN', vpc: newVpc });
|
|
1618
1706
|
'''
|
|
1619
1707
|
result = self._values.get("vpc")
|
|
1620
|
-
return typing.cast(typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc], result)
|
|
1708
|
+
return typing.cast(typing.Optional["_aws_cdk_aws_ec2_ceddda9d.IVpc"], result)
|
|
1621
1709
|
|
|
1622
1710
|
@builtins.property
|
|
1623
|
-
def vpc_subnet(
|
|
1711
|
+
def vpc_subnet(
|
|
1712
|
+
self,
|
|
1713
|
+
) -> typing.Optional["_aws_cdk_aws_ec2_ceddda9d.SubnetSelection"]:
|
|
1624
1714
|
'''(experimental) VPC subnet.
|
|
1625
1715
|
|
|
1626
1716
|
:default: - SubnetType.PRIVATE subnet
|
|
@@ -1637,7 +1727,6 @@ class GitlabRunnerAutoscalingProps:
|
|
|
1637
1727
|
gitlabToken: 'GITLAB_TOKEN',
|
|
1638
1728
|
instanceType: 't3.large',
|
|
1639
1729
|
instanceRole: role,
|
|
1640
|
-
ebsSize: 100,
|
|
1641
1730
|
vpc: vpc,
|
|
1642
1731
|
vpcSubnet: {
|
|
1643
1732
|
subnetType: SubnetType.PUBLIC,
|
|
@@ -1645,7 +1734,7 @@ class GitlabRunnerAutoscalingProps:
|
|
|
1645
1734
|
});
|
|
1646
1735
|
'''
|
|
1647
1736
|
result = self._values.get("vpc_subnet")
|
|
1648
|
-
return typing.cast(typing.Optional[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection], result)
|
|
1737
|
+
return typing.cast(typing.Optional["_aws_cdk_aws_ec2_ceddda9d.SubnetSelection"], result)
|
|
1649
1738
|
|
|
1650
1739
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1651
1740
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -1718,8 +1807,10 @@ def _typecheckingstub__3569128cd1ccb4f615528e61f1622fdbd79cb2ae3e5d8a3297d682bf4
|
|
|
1718
1807
|
gitlaburl: typing.Optional[builtins.str] = None,
|
|
1719
1808
|
instance_interruption_behavior: typing.Optional[InstanceInterruptionBehavior] = None,
|
|
1720
1809
|
key_name: typing.Optional[builtins.str] = None,
|
|
1810
|
+
on_demand_ebs_config: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.BlockDeviceVolume] = None,
|
|
1721
1811
|
runner_description: typing.Optional[builtins.str] = None,
|
|
1722
1812
|
selfvpc: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc] = None,
|
|
1813
|
+
spot_ebs_config: typing.Optional[typing.Union[_aws_cdk_aws_ec2_ceddda9d.CfnLaunchTemplate.EbsProperty, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1723
1814
|
spot_fleet: typing.Optional[builtins.bool] = None,
|
|
1724
1815
|
tags: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
1725
1816
|
valid_until: typing.Optional[builtins.str] = None,
|
|
@@ -1755,8 +1846,10 @@ def _typecheckingstub__0026c0e7fdafbb0c3cfac95f254acf8fbd8eb0fb39b8b1e9cd3089655
|
|
|
1755
1846
|
gitlaburl: typing.Optional[builtins.str] = None,
|
|
1756
1847
|
instance_interruption_behavior: typing.Optional[InstanceInterruptionBehavior] = None,
|
|
1757
1848
|
key_name: typing.Optional[builtins.str] = None,
|
|
1849
|
+
on_demand_ebs_config: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.BlockDeviceVolume] = None,
|
|
1758
1850
|
runner_description: typing.Optional[builtins.str] = None,
|
|
1759
1851
|
selfvpc: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc] = None,
|
|
1852
|
+
spot_ebs_config: typing.Optional[typing.Union[_aws_cdk_aws_ec2_ceddda9d.CfnLaunchTemplate.EbsProperty, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1760
1853
|
spot_fleet: typing.Optional[builtins.bool] = None,
|
|
1761
1854
|
tags: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
1762
1855
|
valid_until: typing.Optional[builtins.str] = None,
|
|
@@ -1774,6 +1867,7 @@ def _typecheckingstub__e1346a7c57bd8e3d5b6fd96e74f7310063137cbf2338091d3cb96f36a
|
|
|
1774
1867
|
alarms: typing.Optional[typing.Sequence[typing.Mapping[typing.Any, typing.Any]]] = None,
|
|
1775
1868
|
desired_capacity: typing.Optional[jsii.Number] = None,
|
|
1776
1869
|
docker_volumes: typing.Optional[typing.Sequence[typing.Union[DockerVolumes, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1870
|
+
ebs_config: typing.Optional[typing.Union[_aws_cdk_aws_ec2_ceddda9d.CfnLaunchTemplate.EbsProperty, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1777
1871
|
ebs_size: typing.Optional[jsii.Number] = None,
|
|
1778
1872
|
gitlab_runner_image: typing.Optional[builtins.str] = None,
|
|
1779
1873
|
gitlab_url: typing.Optional[builtins.str] = None,
|
|
@@ -1796,6 +1890,7 @@ def _typecheckingstub__456bc54665e983cecf5d286556d3b391003886fdd1d6f537def246750
|
|
|
1796
1890
|
alarms: typing.Optional[typing.Sequence[typing.Mapping[typing.Any, typing.Any]]] = None,
|
|
1797
1891
|
desired_capacity: typing.Optional[jsii.Number] = None,
|
|
1798
1892
|
docker_volumes: typing.Optional[typing.Sequence[typing.Union[DockerVolumes, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1893
|
+
ebs_config: typing.Optional[typing.Union[_aws_cdk_aws_ec2_ceddda9d.CfnLaunchTemplate.EbsProperty, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1799
1894
|
ebs_size: typing.Optional[jsii.Number] = None,
|
|
1800
1895
|
gitlab_runner_image: typing.Optional[builtins.str] = None,
|
|
1801
1896
|
gitlab_url: typing.Optional[builtins.str] = None,
|
|
Binary file
|
{cdk_gitlab_runner-2.2.366 → cdk_gitlab_runner-2.3.337/src/cdk_gitlab_runner.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cdk-gitlab-runner
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.337
|
|
4
4
|
Summary: Use AWS CDK to create a gitlab runner, and use gitlab runner to help you execute your Gitlab pipeline job.
|
|
5
5
|
Home-page: https://github.com/neilkuan/cdk-gitlab-runner.git
|
|
6
6
|
Author: Neil Kuan<guan840912@gmail.com>
|
|
@@ -10,21 +10,20 @@ Classifier: Intended Audience :: Developers
|
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
|
11
11
|
Classifier: Programming Language :: JavaScript
|
|
12
12
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
14
13
|
Classifier: Programming Language :: Python :: 3.9
|
|
15
14
|
Classifier: Programming Language :: Python :: 3.10
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.11
|
|
17
16
|
Classifier: Typing :: Typed
|
|
18
17
|
Classifier: Development Status :: 4 - Beta
|
|
19
18
|
Classifier: License :: OSI Approved
|
|
20
|
-
Requires-Python: ~=3.
|
|
19
|
+
Requires-Python: ~=3.9
|
|
21
20
|
Description-Content-Type: text/markdown
|
|
22
21
|
License-File: LICENSE
|
|
23
|
-
Requires-Dist: aws-cdk-lib<3.0.0,>=2.
|
|
22
|
+
Requires-Dist: aws-cdk-lib<3.0.0,>=2.189.1
|
|
24
23
|
Requires-Dist: constructs<11.0.0,>=10.0.5
|
|
25
|
-
Requires-Dist: jsii<2.0.0,>=1.
|
|
24
|
+
Requires-Dist: jsii<2.0.0,>=1.125.0
|
|
26
25
|
Requires-Dist: publication>=0.0.3
|
|
27
|
-
Requires-Dist: typeguard
|
|
26
|
+
Requires-Dist: typeguard==2.13.3
|
|
28
27
|
|
|
29
28
|
[](https://badge.fury.io/js/cdk-gitlab-runner)
|
|
30
29
|
[](https://badge.fury.io/py/cdk-gitlab-runner)
|
|
@@ -265,15 +264,25 @@ runner.runnerRole.addManagedPolicy(
|
|
|
265
264
|
|
|
266
265
|
### Custom Gitlab Runner EBS szie
|
|
267
266
|
|
|
268
|
-
>
|
|
267
|
+
> 2025/01/03 , you can change you want ebs size.
|
|
269
268
|
|
|
270
269
|
```python
|
|
271
270
|
import { GitlabContainerRunner } from 'cdk-gitlab-runner';
|
|
271
|
+
// on-demand instance
|
|
272
|
+
new GitlabContainerRunner(stack, 'testing', {
|
|
273
|
+
gitlabtoken: 'glrt-GITLABTOKEN',
|
|
274
|
+
gitlabRunnerVersion: '15.10',
|
|
275
|
+
onDemandEbsConfig: BlockDeviceVolume.ebs(60),
|
|
276
|
+
});
|
|
272
277
|
|
|
278
|
+
// spotfleet instance
|
|
273
279
|
new GitlabContainerRunner(stack, 'testing', {
|
|
274
280
|
gitlabtoken: 'glrt-GITLABTOKEN',
|
|
275
281
|
gitlabRunnerVersion: '15.10',
|
|
276
|
-
|
|
282
|
+
spotFleet: true,
|
|
283
|
+
spotEbsConfig: {
|
|
284
|
+
volumeSize: 50,
|
|
285
|
+
},
|
|
277
286
|
});
|
|
278
287
|
```
|
|
279
288
|
|
{cdk_gitlab_runner-2.2.366 → cdk_gitlab_runner-2.3.337}/src/cdk_gitlab_runner.egg-info/SOURCES.txt
RENAMED
|
@@ -11,4 +11,4 @@ src/cdk_gitlab_runner.egg-info/dependency_links.txt
|
|
|
11
11
|
src/cdk_gitlab_runner.egg-info/requires.txt
|
|
12
12
|
src/cdk_gitlab_runner.egg-info/top_level.txt
|
|
13
13
|
src/cdk_gitlab_runner/_jsii/__init__.py
|
|
14
|
-
src/cdk_gitlab_runner/_jsii/cdk-gitlab-runner@2.
|
|
14
|
+
src/cdk_gitlab_runner/_jsii/cdk-gitlab-runner@2.3.337.jsii.tgz
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cdk_gitlab_runner-2.2.366 → cdk_gitlab_runner-2.3.337}/src/cdk_gitlab_runner.egg-info/top_level.txt
RENAMED
|
File without changes
|