cdk-gitlab-runner 2.3.203__py3-none-any.whl → 2.3.344__py3-none-any.whl
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.
Potentially problematic release.
This version of cdk-gitlab-runner might be problematic. Click here for more details.
- cdk_gitlab_runner/__init__.py +74 -70
- cdk_gitlab_runner/_jsii/__init__.py +2 -2
- cdk_gitlab_runner/_jsii/cdk-gitlab-runner@2.3.344.jsii.tgz +0 -0
- {cdk_gitlab_runner-2.3.203.dist-info → cdk_gitlab_runner-2.3.344.dist-info}/METADATA +6 -6
- cdk_gitlab_runner-2.3.344.dist-info/RECORD +9 -0
- {cdk_gitlab_runner-2.3.203.dist-info → cdk_gitlab_runner-2.3.344.dist-info}/WHEEL +1 -1
- cdk_gitlab_runner/_jsii/cdk-gitlab-runner@2.3.203.jsii.tgz +0 -0
- cdk_gitlab_runner-2.3.203.dist-info/RECORD +0 -9
- {cdk_gitlab_runner-2.3.203.dist-info → cdk_gitlab_runner-2.3.344.dist-info}/LICENSE +0 -0
- {cdk_gitlab_runner-2.3.203.dist-info → cdk_gitlab_runner-2.3.344.dist-info}/top_level.txt +0 -0
cdk_gitlab_runner/__init__.py
CHANGED
|
@@ -493,29 +493,29 @@ class GitlabContainerRunner(
|
|
|
493
493
|
|
|
494
494
|
def __init__(
|
|
495
495
|
self,
|
|
496
|
-
scope: _constructs_77d1e7e8.Construct,
|
|
496
|
+
scope: "_constructs_77d1e7e8.Construct",
|
|
497
497
|
id: builtins.str,
|
|
498
498
|
*,
|
|
499
499
|
gitlab_runner_version: builtins.str,
|
|
500
500
|
gitlabtoken: builtins.str,
|
|
501
501
|
concurrent_jobs: typing.Optional[jsii.Number] = None,
|
|
502
|
-
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,
|
|
503
503
|
ebs_size: typing.Optional[jsii.Number] = None,
|
|
504
|
-
ec2iamrole: typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole] = None,
|
|
504
|
+
ec2iamrole: typing.Optional["_aws_cdk_aws_iam_ceddda9d.IRole"] = None,
|
|
505
505
|
ec2type: typing.Optional[builtins.str] = None,
|
|
506
506
|
enabled_imd_sv2: typing.Optional[builtins.bool] = None,
|
|
507
507
|
gitlab_runner_image: typing.Optional[builtins.str] = None,
|
|
508
508
|
gitlaburl: typing.Optional[builtins.str] = None,
|
|
509
509
|
instance_interruption_behavior: typing.Optional["InstanceInterruptionBehavior"] = None,
|
|
510
510
|
key_name: typing.Optional[builtins.str] = None,
|
|
511
|
-
on_demand_ebs_config: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.BlockDeviceVolume] = None,
|
|
511
|
+
on_demand_ebs_config: typing.Optional["_aws_cdk_aws_ec2_ceddda9d.BlockDeviceVolume"] = None,
|
|
512
512
|
runner_description: typing.Optional[builtins.str] = 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,
|
|
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,
|
|
515
515
|
spot_fleet: typing.Optional[builtins.bool] = None,
|
|
516
516
|
tags: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
517
517
|
valid_until: typing.Optional[builtins.str] = None,
|
|
518
|
-
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,
|
|
519
519
|
) -> None:
|
|
520
520
|
'''
|
|
521
521
|
:param scope: -
|
|
@@ -593,7 +593,7 @@ class GitlabContainerRunner(
|
|
|
593
593
|
return typing.cast(typing.List[builtins.str], jsii.invoke(self, "createUserData", [props, token_parameter_store_name]))
|
|
594
594
|
|
|
595
595
|
@jsii.member(jsii_name="expireAfter")
|
|
596
|
-
def expire_after(self, duration: _aws_cdk_ceddda9d.Duration) -> None:
|
|
596
|
+
def expire_after(self, duration: "_aws_cdk_ceddda9d.Duration") -> None:
|
|
597
597
|
'''(experimental) Add expire time function for spotfleet runner !!! .
|
|
598
598
|
|
|
599
599
|
:param duration: - Block duration.
|
|
@@ -607,30 +607,30 @@ class GitlabContainerRunner(
|
|
|
607
607
|
|
|
608
608
|
@builtins.property
|
|
609
609
|
@jsii.member(jsii_name="defaultRunnerSG")
|
|
610
|
-
def default_runner_sg(self) -> _aws_cdk_aws_ec2_ceddda9d.ISecurityGroup:
|
|
610
|
+
def default_runner_sg(self) -> "_aws_cdk_aws_ec2_ceddda9d.ISecurityGroup":
|
|
611
611
|
'''(experimental) The EC2 runner's default SecurityGroup.
|
|
612
612
|
|
|
613
613
|
:stability: experimental
|
|
614
614
|
'''
|
|
615
|
-
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"))
|
|
616
616
|
|
|
617
617
|
@builtins.property
|
|
618
618
|
@jsii.member(jsii_name="runnerEc2")
|
|
619
|
-
def runner_ec2(self) -> _aws_cdk_aws_ec2_ceddda9d.IInstance:
|
|
619
|
+
def runner_ec2(self) -> "_aws_cdk_aws_ec2_ceddda9d.IInstance":
|
|
620
620
|
'''(experimental) This represents a Runner EC2 instance , !!! only support On-demand runner instance !!!
|
|
621
621
|
|
|
622
622
|
:stability: experimental
|
|
623
623
|
'''
|
|
624
|
-
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"))
|
|
625
625
|
|
|
626
626
|
@builtins.property
|
|
627
627
|
@jsii.member(jsii_name="runnerRole")
|
|
628
|
-
def runner_role(self) -> _aws_cdk_aws_iam_ceddda9d.IRole:
|
|
628
|
+
def runner_role(self) -> "_aws_cdk_aws_iam_ceddda9d.IRole":
|
|
629
629
|
'''(experimental) The IAM role assumed by the Runner instance .
|
|
630
630
|
|
|
631
631
|
:stability: experimental
|
|
632
632
|
'''
|
|
633
|
-
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"))
|
|
634
634
|
|
|
635
635
|
@builtins.property
|
|
636
636
|
@jsii.member(jsii_name="spotFleetInstanceId")
|
|
@@ -652,12 +652,12 @@ class GitlabContainerRunner(
|
|
|
652
652
|
|
|
653
653
|
@builtins.property
|
|
654
654
|
@jsii.member(jsii_name="vpc")
|
|
655
|
-
def vpc(self) -> _aws_cdk_aws_ec2_ceddda9d.IVpc:
|
|
655
|
+
def vpc(self) -> "_aws_cdk_aws_ec2_ceddda9d.IVpc":
|
|
656
656
|
'''(experimental) The EC2 runner's vpc.
|
|
657
657
|
|
|
658
658
|
:stability: experimental
|
|
659
659
|
'''
|
|
660
|
-
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"))
|
|
661
661
|
|
|
662
662
|
|
|
663
663
|
@jsii.data_type(
|
|
@@ -693,23 +693,23 @@ class GitlabContainerRunnerProps:
|
|
|
693
693
|
gitlab_runner_version: builtins.str,
|
|
694
694
|
gitlabtoken: builtins.str,
|
|
695
695
|
concurrent_jobs: typing.Optional[jsii.Number] = None,
|
|
696
|
-
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,
|
|
697
697
|
ebs_size: typing.Optional[jsii.Number] = None,
|
|
698
|
-
ec2iamrole: typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole] = None,
|
|
698
|
+
ec2iamrole: typing.Optional["_aws_cdk_aws_iam_ceddda9d.IRole"] = None,
|
|
699
699
|
ec2type: typing.Optional[builtins.str] = None,
|
|
700
700
|
enabled_imd_sv2: typing.Optional[builtins.bool] = None,
|
|
701
701
|
gitlab_runner_image: typing.Optional[builtins.str] = None,
|
|
702
702
|
gitlaburl: typing.Optional[builtins.str] = None,
|
|
703
703
|
instance_interruption_behavior: typing.Optional["InstanceInterruptionBehavior"] = None,
|
|
704
704
|
key_name: typing.Optional[builtins.str] = None,
|
|
705
|
-
on_demand_ebs_config: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.BlockDeviceVolume] = None,
|
|
705
|
+
on_demand_ebs_config: typing.Optional["_aws_cdk_aws_ec2_ceddda9d.BlockDeviceVolume"] = None,
|
|
706
706
|
runner_description: typing.Optional[builtins.str] = 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,
|
|
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,
|
|
709
709
|
spot_fleet: typing.Optional[builtins.bool] = None,
|
|
710
710
|
tags: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
711
711
|
valid_until: typing.Optional[builtins.str] = None,
|
|
712
|
-
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,
|
|
713
713
|
) -> None:
|
|
714
714
|
'''(experimental) GitlabContainerRunner Props.
|
|
715
715
|
|
|
@@ -845,7 +845,7 @@ class GitlabContainerRunnerProps:
|
|
|
845
845
|
return typing.cast(typing.Optional[jsii.Number], result)
|
|
846
846
|
|
|
847
847
|
@builtins.property
|
|
848
|
-
def docker_volumes(self) -> typing.Optional[typing.List[DockerVolumes]]:
|
|
848
|
+
def docker_volumes(self) -> typing.Optional[typing.List["DockerVolumes"]]:
|
|
849
849
|
'''(experimental) add another Gitlab Container Runner Docker Volumes Path at job runner runtime.
|
|
850
850
|
|
|
851
851
|
more detail see https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-runnersdocker-section
|
|
@@ -864,7 +864,7 @@ class GitlabContainerRunnerProps:
|
|
|
864
864
|
],
|
|
865
865
|
'''
|
|
866
866
|
result = self._values.get("docker_volumes")
|
|
867
|
-
return typing.cast(typing.Optional[typing.List[DockerVolumes]], result)
|
|
867
|
+
return typing.cast(typing.Optional[typing.List["DockerVolumes"]], result)
|
|
868
868
|
|
|
869
869
|
@builtins.property
|
|
870
870
|
def ebs_size(self) -> typing.Optional[jsii.Number]:
|
|
@@ -878,7 +878,7 @@ class GitlabContainerRunnerProps:
|
|
|
878
878
|
return typing.cast(typing.Optional[jsii.Number], result)
|
|
879
879
|
|
|
880
880
|
@builtins.property
|
|
881
|
-
def ec2iamrole(self) -> typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole]:
|
|
881
|
+
def ec2iamrole(self) -> typing.Optional["_aws_cdk_aws_iam_ceddda9d.IRole"]:
|
|
882
882
|
'''(experimental) IAM role for the Gitlab Runner Instance .
|
|
883
883
|
|
|
884
884
|
:default: - new Role for Gitlab Runner Instance , attach AmazonSSMManagedInstanceCore Policy .
|
|
@@ -896,7 +896,7 @@ class GitlabContainerRunnerProps:
|
|
|
896
896
|
new GitlabContainerRunner(stack, 'runner', { gitlabtoken: 'GITLAB_TOKEN', ec2iamrole: role });
|
|
897
897
|
'''
|
|
898
898
|
result = self._values.get("ec2iamrole")
|
|
899
|
-
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)
|
|
900
900
|
|
|
901
901
|
@builtins.property
|
|
902
902
|
def ec2type(self) -> typing.Optional[builtins.str]:
|
|
@@ -983,7 +983,7 @@ class GitlabContainerRunnerProps:
|
|
|
983
983
|
@builtins.property
|
|
984
984
|
def on_demand_ebs_config(
|
|
985
985
|
self,
|
|
986
|
-
) -> typing.Optional[_aws_cdk_aws_ec2_ceddda9d.BlockDeviceVolume]:
|
|
986
|
+
) -> typing.Optional["_aws_cdk_aws_ec2_ceddda9d.BlockDeviceVolume"]:
|
|
987
987
|
'''(experimental) Gitlab Runner instance EBS config.
|
|
988
988
|
|
|
989
989
|
:default: - onDemandEbsConfig=BlockDeviceVolume.ebs(60)
|
|
@@ -995,7 +995,7 @@ class GitlabContainerRunnerProps:
|
|
|
995
995
|
const runner = new GitlabContainerRunner(stack, 'runner', { gitlabToken: 'GITLAB_TOKEN', onDemandEbsConfig: BlockDeviceVolume.ebs(60)});
|
|
996
996
|
'''
|
|
997
997
|
result = self._values.get("on_demand_ebs_config")
|
|
998
|
-
return typing.cast(typing.Optional[_aws_cdk_aws_ec2_ceddda9d.BlockDeviceVolume], result)
|
|
998
|
+
return typing.cast(typing.Optional["_aws_cdk_aws_ec2_ceddda9d.BlockDeviceVolume"], result)
|
|
999
999
|
|
|
1000
1000
|
@builtins.property
|
|
1001
1001
|
def runner_description(self) -> typing.Optional[builtins.str]:
|
|
@@ -1013,7 +1013,7 @@ class GitlabContainerRunnerProps:
|
|
|
1013
1013
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
1014
1014
|
|
|
1015
1015
|
@builtins.property
|
|
1016
|
-
def selfvpc(self) -> typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc]:
|
|
1016
|
+
def selfvpc(self) -> typing.Optional["_aws_cdk_aws_ec2_ceddda9d.IVpc"]:
|
|
1017
1017
|
'''(experimental) VPC for the Gitlab Runner .
|
|
1018
1018
|
|
|
1019
1019
|
:default: - new VPC will be created , 1 Vpc , 2 Public Subnet .
|
|
@@ -1036,12 +1036,12 @@ class GitlabContainerRunnerProps:
|
|
|
1036
1036
|
new GitlabContainerRunner(stack, 'runner', { gitlabtoken: 'GITLAB_TOKEN', selfvpc: newvpc });
|
|
1037
1037
|
'''
|
|
1038
1038
|
result = self._values.get("selfvpc")
|
|
1039
|
-
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
1040
|
|
|
1041
1041
|
@builtins.property
|
|
1042
1042
|
def spot_ebs_config(
|
|
1043
1043
|
self,
|
|
1044
|
-
) -> typing.Optional[_aws_cdk_aws_ec2_ceddda9d.CfnLaunchTemplate.EbsProperty]:
|
|
1044
|
+
) -> typing.Optional["_aws_cdk_aws_ec2_ceddda9d.CfnLaunchTemplate.EbsProperty"]:
|
|
1045
1045
|
'''(experimental) Gitlab Runner instance EBS config.
|
|
1046
1046
|
|
|
1047
1047
|
:default: - spotEbsConfig={ volumeSize: 60}
|
|
@@ -1053,7 +1053,7 @@ class GitlabContainerRunnerProps:
|
|
|
1053
1053
|
const runner = new GitlabContainerRunner(stack, 'runner', { gitlabToken: 'GITLAB_TOKEN', ebsConfig: { volumeSize: 60}});
|
|
1054
1054
|
'''
|
|
1055
1055
|
result = self._values.get("spot_ebs_config")
|
|
1056
|
-
return typing.cast(typing.Optional[_aws_cdk_aws_ec2_ceddda9d.CfnLaunchTemplate.EbsProperty], result)
|
|
1056
|
+
return typing.cast(typing.Optional["_aws_cdk_aws_ec2_ceddda9d.CfnLaunchTemplate.EbsProperty"], result)
|
|
1057
1057
|
|
|
1058
1058
|
@builtins.property
|
|
1059
1059
|
def spot_fleet(self) -> typing.Optional[builtins.bool]:
|
|
@@ -1094,7 +1094,9 @@ class GitlabContainerRunnerProps:
|
|
|
1094
1094
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
1095
1095
|
|
|
1096
1096
|
@builtins.property
|
|
1097
|
-
def vpc_subnet(
|
|
1097
|
+
def vpc_subnet(
|
|
1098
|
+
self,
|
|
1099
|
+
) -> typing.Optional["_aws_cdk_aws_ec2_ceddda9d.SubnetSelection"]:
|
|
1098
1100
|
'''(experimental) VPC subnet for the spot fleet.
|
|
1099
1101
|
|
|
1100
1102
|
:default: - public subnet
|
|
@@ -1118,7 +1120,7 @@ class GitlabContainerRunnerProps:
|
|
|
1118
1120
|
});
|
|
1119
1121
|
'''
|
|
1120
1122
|
result = self._values.get("vpc_subnet")
|
|
1121
|
-
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)
|
|
1122
1124
|
|
|
1123
1125
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1124
1126
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -1144,26 +1146,26 @@ class GitlabRunnerAutoscaling(
|
|
|
1144
1146
|
|
|
1145
1147
|
def __init__(
|
|
1146
1148
|
self,
|
|
1147
|
-
scope: _constructs_77d1e7e8.Construct,
|
|
1149
|
+
scope: "_constructs_77d1e7e8.Construct",
|
|
1148
1150
|
id: builtins.str,
|
|
1149
1151
|
*,
|
|
1150
1152
|
gitlab_runner_version: builtins.str,
|
|
1151
1153
|
gitlab_token: builtins.str,
|
|
1152
1154
|
alarms: typing.Optional[typing.Sequence[typing.Mapping[typing.Any, typing.Any]]] = None,
|
|
1153
1155
|
desired_capacity: typing.Optional[jsii.Number] = None,
|
|
1154
|
-
docker_volumes: typing.Optional[typing.Sequence[typing.Union[DockerVolumes, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1155
|
-
ebs_config: typing.Optional[typing.Union[_aws_cdk_aws_ec2_ceddda9d.CfnLaunchTemplate.EbsProperty, 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,
|
|
1156
1158
|
ebs_size: typing.Optional[jsii.Number] = None,
|
|
1157
1159
|
gitlab_runner_image: typing.Optional[builtins.str] = None,
|
|
1158
1160
|
gitlab_url: typing.Optional[builtins.str] = None,
|
|
1159
|
-
instance_role: typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole] = None,
|
|
1161
|
+
instance_role: typing.Optional["_aws_cdk_aws_iam_ceddda9d.IRole"] = None,
|
|
1160
1162
|
instance_type: typing.Optional[builtins.str] = None,
|
|
1161
1163
|
max_capacity: typing.Optional[jsii.Number] = None,
|
|
1162
1164
|
min_capacity: typing.Optional[jsii.Number] = None,
|
|
1163
1165
|
spot_instance: typing.Optional[builtins.bool] = None,
|
|
1164
1166
|
tags: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
1165
|
-
vpc: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc] = None,
|
|
1166
|
-
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,
|
|
1167
1169
|
) -> None:
|
|
1168
1170
|
'''
|
|
1169
1171
|
:param scope: -
|
|
@@ -1222,19 +1224,19 @@ class GitlabRunnerAutoscaling(
|
|
|
1222
1224
|
gitlab_token: builtins.str,
|
|
1223
1225
|
alarms: typing.Optional[typing.Sequence[typing.Mapping[typing.Any, typing.Any]]] = None,
|
|
1224
1226
|
desired_capacity: typing.Optional[jsii.Number] = None,
|
|
1225
|
-
docker_volumes: typing.Optional[typing.Sequence[typing.Union[DockerVolumes, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1226
|
-
ebs_config: typing.Optional[typing.Union[_aws_cdk_aws_ec2_ceddda9d.CfnLaunchTemplate.EbsProperty, 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,
|
|
1227
1229
|
ebs_size: typing.Optional[jsii.Number] = None,
|
|
1228
1230
|
gitlab_runner_image: typing.Optional[builtins.str] = None,
|
|
1229
1231
|
gitlab_url: typing.Optional[builtins.str] = None,
|
|
1230
|
-
instance_role: typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole] = None,
|
|
1232
|
+
instance_role: typing.Optional["_aws_cdk_aws_iam_ceddda9d.IRole"] = None,
|
|
1231
1233
|
instance_type: typing.Optional[builtins.str] = None,
|
|
1232
1234
|
max_capacity: typing.Optional[jsii.Number] = None,
|
|
1233
1235
|
min_capacity: typing.Optional[jsii.Number] = None,
|
|
1234
1236
|
spot_instance: typing.Optional[builtins.bool] = None,
|
|
1235
1237
|
tags: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
1236
|
-
vpc: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc] = None,
|
|
1237
|
-
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,
|
|
1238
1240
|
) -> typing.List[builtins.str]:
|
|
1239
1241
|
'''
|
|
1240
1242
|
:param gitlab_runner_version: (experimental) Gitlab Runner version Please give me gitlab runner version.
|
|
@@ -1283,48 +1285,48 @@ class GitlabRunnerAutoscaling(
|
|
|
1283
1285
|
|
|
1284
1286
|
@builtins.property
|
|
1285
1287
|
@jsii.member(jsii_name="autoscalingGroup")
|
|
1286
|
-
def autoscaling_group(self) -> _aws_cdk_aws_autoscaling_ceddda9d.AutoScalingGroup:
|
|
1288
|
+
def autoscaling_group(self) -> "_aws_cdk_aws_autoscaling_ceddda9d.AutoScalingGroup":
|
|
1287
1289
|
'''(experimental) This represents a Runner Auto Scaling Group.
|
|
1288
1290
|
|
|
1289
1291
|
:stability: experimental
|
|
1290
1292
|
'''
|
|
1291
|
-
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"))
|
|
1292
1294
|
|
|
1293
1295
|
@builtins.property
|
|
1294
1296
|
@jsii.member(jsii_name="instanceRole")
|
|
1295
|
-
def instance_role(self) -> _aws_cdk_aws_iam_ceddda9d.IRole:
|
|
1297
|
+
def instance_role(self) -> "_aws_cdk_aws_iam_ceddda9d.IRole":
|
|
1296
1298
|
'''(experimental) The IAM role assumed by the Runner instance.
|
|
1297
1299
|
|
|
1298
1300
|
:stability: experimental
|
|
1299
1301
|
'''
|
|
1300
|
-
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"))
|
|
1301
1303
|
|
|
1302
1304
|
@builtins.property
|
|
1303
1305
|
@jsii.member(jsii_name="securityGroup")
|
|
1304
|
-
def security_group(self) -> _aws_cdk_aws_ec2_ceddda9d.ISecurityGroup:
|
|
1306
|
+
def security_group(self) -> "_aws_cdk_aws_ec2_ceddda9d.ISecurityGroup":
|
|
1305
1307
|
'''(experimental) The EC2 runner's default SecurityGroup.
|
|
1306
1308
|
|
|
1307
1309
|
:stability: experimental
|
|
1308
1310
|
'''
|
|
1309
|
-
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"))
|
|
1310
1312
|
|
|
1311
1313
|
@builtins.property
|
|
1312
1314
|
@jsii.member(jsii_name="topicAlarm")
|
|
1313
|
-
def topic_alarm(self) -> _aws_cdk_aws_sns_ceddda9d.ITopic:
|
|
1315
|
+
def topic_alarm(self) -> "_aws_cdk_aws_sns_ceddda9d.ITopic":
|
|
1314
1316
|
'''(experimental) The SNS topic to suscribe alarms for EC2 runner's metrics.
|
|
1315
1317
|
|
|
1316
1318
|
:stability: experimental
|
|
1317
1319
|
'''
|
|
1318
|
-
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"))
|
|
1319
1321
|
|
|
1320
1322
|
@builtins.property
|
|
1321
1323
|
@jsii.member(jsii_name="vpc")
|
|
1322
|
-
def vpc(self) -> _aws_cdk_aws_ec2_ceddda9d.IVpc:
|
|
1324
|
+
def vpc(self) -> "_aws_cdk_aws_ec2_ceddda9d.IVpc":
|
|
1323
1325
|
'''(experimental) The EC2 runner's VPC.
|
|
1324
1326
|
|
|
1325
1327
|
:stability: experimental
|
|
1326
1328
|
'''
|
|
1327
|
-
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"))
|
|
1328
1330
|
|
|
1329
1331
|
|
|
1330
1332
|
@jsii.data_type(
|
|
@@ -1358,19 +1360,19 @@ class GitlabRunnerAutoscalingProps:
|
|
|
1358
1360
|
gitlab_token: builtins.str,
|
|
1359
1361
|
alarms: typing.Optional[typing.Sequence[typing.Mapping[typing.Any, typing.Any]]] = None,
|
|
1360
1362
|
desired_capacity: typing.Optional[jsii.Number] = None,
|
|
1361
|
-
docker_volumes: typing.Optional[typing.Sequence[typing.Union[DockerVolumes, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1362
|
-
ebs_config: typing.Optional[typing.Union[_aws_cdk_aws_ec2_ceddda9d.CfnLaunchTemplate.EbsProperty, 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,
|
|
1363
1365
|
ebs_size: typing.Optional[jsii.Number] = None,
|
|
1364
1366
|
gitlab_runner_image: typing.Optional[builtins.str] = None,
|
|
1365
1367
|
gitlab_url: typing.Optional[builtins.str] = None,
|
|
1366
|
-
instance_role: typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole] = None,
|
|
1368
|
+
instance_role: typing.Optional["_aws_cdk_aws_iam_ceddda9d.IRole"] = None,
|
|
1367
1369
|
instance_type: typing.Optional[builtins.str] = None,
|
|
1368
1370
|
max_capacity: typing.Optional[jsii.Number] = None,
|
|
1369
1371
|
min_capacity: typing.Optional[jsii.Number] = None,
|
|
1370
1372
|
spot_instance: typing.Optional[builtins.bool] = None,
|
|
1371
1373
|
tags: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
1372
|
-
vpc: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc] = None,
|
|
1373
|
-
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,
|
|
1374
1376
|
) -> None:
|
|
1375
1377
|
'''(experimental) GitlabRunnerAutoscaling Props.
|
|
1376
1378
|
|
|
@@ -1512,7 +1514,7 @@ class GitlabRunnerAutoscalingProps:
|
|
|
1512
1514
|
return typing.cast(typing.Optional[jsii.Number], result)
|
|
1513
1515
|
|
|
1514
1516
|
@builtins.property
|
|
1515
|
-
def docker_volumes(self) -> typing.Optional[typing.List[DockerVolumes]]:
|
|
1517
|
+
def docker_volumes(self) -> typing.Optional[typing.List["DockerVolumes"]]:
|
|
1516
1518
|
'''(experimental) add another Gitlab Container Runner Docker Volumes Path at job runner runtime.
|
|
1517
1519
|
|
|
1518
1520
|
more detail see https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-runnersdocker-section
|
|
@@ -1531,12 +1533,12 @@ class GitlabRunnerAutoscalingProps:
|
|
|
1531
1533
|
],
|
|
1532
1534
|
'''
|
|
1533
1535
|
result = self._values.get("docker_volumes")
|
|
1534
|
-
return typing.cast(typing.Optional[typing.List[DockerVolumes]], result)
|
|
1536
|
+
return typing.cast(typing.Optional[typing.List["DockerVolumes"]], result)
|
|
1535
1537
|
|
|
1536
1538
|
@builtins.property
|
|
1537
1539
|
def ebs_config(
|
|
1538
1540
|
self,
|
|
1539
|
-
) -> typing.Optional[_aws_cdk_aws_ec2_ceddda9d.CfnLaunchTemplate.EbsProperty]:
|
|
1541
|
+
) -> typing.Optional["_aws_cdk_aws_ec2_ceddda9d.CfnLaunchTemplate.EbsProperty"]:
|
|
1540
1542
|
'''(experimental) Gitlab Runner instance EBS config.
|
|
1541
1543
|
|
|
1542
1544
|
:default: - ebsConfig={ volumeSize: 60}
|
|
@@ -1548,7 +1550,7 @@ class GitlabRunnerAutoscalingProps:
|
|
|
1548
1550
|
const runner = new GitlabRunnerAutoscaling(stack, 'runner', { gitlabToken: 'GITLAB_TOKEN', ebsConfig: { volumeSize: 60}});
|
|
1549
1551
|
'''
|
|
1550
1552
|
result = self._values.get("ebs_config")
|
|
1551
|
-
return typing.cast(typing.Optional[_aws_cdk_aws_ec2_ceddda9d.CfnLaunchTemplate.EbsProperty], result)
|
|
1553
|
+
return typing.cast(typing.Optional["_aws_cdk_aws_ec2_ceddda9d.CfnLaunchTemplate.EbsProperty"], result)
|
|
1552
1554
|
|
|
1553
1555
|
@builtins.property
|
|
1554
1556
|
def ebs_size(self) -> typing.Optional[jsii.Number]:
|
|
@@ -1592,7 +1594,7 @@ class GitlabRunnerAutoscalingProps:
|
|
|
1592
1594
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
1593
1595
|
|
|
1594
1596
|
@builtins.property
|
|
1595
|
-
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"]:
|
|
1596
1598
|
'''(experimental) IAM role for the Gitlab Runner Instance .
|
|
1597
1599
|
|
|
1598
1600
|
:default: - new Role for Gitlab Runner Instance , attach AmazonSSMManagedInstanceCore Policy .
|
|
@@ -1610,7 +1612,7 @@ class GitlabRunnerAutoscalingProps:
|
|
|
1610
1612
|
new GitlabRunnerAutoscaling(stack, 'runner', { gitlabToken: 'GITLAB_TOKEN', instanceRole: role });
|
|
1611
1613
|
'''
|
|
1612
1614
|
result = self._values.get("instance_role")
|
|
1613
|
-
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)
|
|
1614
1616
|
|
|
1615
1617
|
@builtins.property
|
|
1616
1618
|
def instance_type(self) -> typing.Optional[builtins.str]:
|
|
@@ -1680,7 +1682,7 @@ class GitlabRunnerAutoscalingProps:
|
|
|
1680
1682
|
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
1681
1683
|
|
|
1682
1684
|
@builtins.property
|
|
1683
|
-
def vpc(self) -> typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc]:
|
|
1685
|
+
def vpc(self) -> typing.Optional["_aws_cdk_aws_ec2_ceddda9d.IVpc"]:
|
|
1684
1686
|
'''(experimental) VPC for the Gitlab Runner .
|
|
1685
1687
|
|
|
1686
1688
|
:default: - A new VPC will be created.
|
|
@@ -1703,10 +1705,12 @@ class GitlabRunnerAutoscalingProps:
|
|
|
1703
1705
|
new GitlabRunnerAutoscaling(stack, 'runner', { gitlabToken: 'GITLAB_TOKEN', vpc: newVpc });
|
|
1704
1706
|
'''
|
|
1705
1707
|
result = self._values.get("vpc")
|
|
1706
|
-
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)
|
|
1707
1709
|
|
|
1708
1710
|
@builtins.property
|
|
1709
|
-
def vpc_subnet(
|
|
1711
|
+
def vpc_subnet(
|
|
1712
|
+
self,
|
|
1713
|
+
) -> typing.Optional["_aws_cdk_aws_ec2_ceddda9d.SubnetSelection"]:
|
|
1710
1714
|
'''(experimental) VPC subnet.
|
|
1711
1715
|
|
|
1712
1716
|
:default: - SubnetType.PRIVATE subnet
|
|
@@ -1730,7 +1734,7 @@ class GitlabRunnerAutoscalingProps:
|
|
|
1730
1734
|
});
|
|
1731
1735
|
'''
|
|
1732
1736
|
result = self._values.get("vpc_subnet")
|
|
1733
|
-
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)
|
|
1734
1738
|
|
|
1735
1739
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1736
1740
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cdk-gitlab-runner
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.344
|
|
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>
|
|
@@ -19,11 +19,11 @@ Classifier: License :: OSI Approved
|
|
|
19
19
|
Requires-Python: ~=3.9
|
|
20
20
|
Description-Content-Type: text/markdown
|
|
21
21
|
License-File: LICENSE
|
|
22
|
-
Requires-Dist: aws-cdk-lib<3.0.0,>=2.189.1
|
|
23
|
-
Requires-Dist: constructs<11.0.0,>=10.0.5
|
|
24
|
-
Requires-Dist: jsii<2.0.0,>=1.
|
|
25
|
-
Requires-Dist: publication>=0.0.3
|
|
26
|
-
Requires-Dist: typeguard
|
|
22
|
+
Requires-Dist: aws-cdk-lib <3.0.0,>=2.189.1
|
|
23
|
+
Requires-Dist: constructs <11.0.0,>=10.0.5
|
|
24
|
+
Requires-Dist: jsii <2.0.0,>=1.125.0
|
|
25
|
+
Requires-Dist: publication >=0.0.3
|
|
26
|
+
Requires-Dist: typeguard ==2.13.3
|
|
27
27
|
|
|
28
28
|
[](https://badge.fury.io/js/cdk-gitlab-runner)
|
|
29
29
|
[](https://badge.fury.io/py/cdk-gitlab-runner)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
cdk_gitlab_runner/__init__.py,sha256=krtPO2zEyzkwYaV_B0gbE9CmbYcU1r2vQIu3OufsXzA,85746
|
|
2
|
+
cdk_gitlab_runner/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
3
|
+
cdk_gitlab_runner/_jsii/__init__.py,sha256=zA8czQxpzWlZisUua7TRANlzWCZgVzaxV5AdG_Q51pc,1462
|
|
4
|
+
cdk_gitlab_runner/_jsii/cdk-gitlab-runner@2.3.344.jsii.tgz,sha256=N6l7t94CICz9Z0fljPeYMuv98D-wLhsaAvfGApPSCOA,87452
|
|
5
|
+
cdk_gitlab_runner-2.3.344.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
6
|
+
cdk_gitlab_runner-2.3.344.dist-info/METADATA,sha256=BoY9aG5uJNnaRXe55-0aJmoxKF9PlPlbv_GkDAWvxFI,13244
|
|
7
|
+
cdk_gitlab_runner-2.3.344.dist-info/WHEEL,sha256=WnJ8fYhv8N4SYVK2lLYNI6N0kVATA7b0piVUNvqIIJE,91
|
|
8
|
+
cdk_gitlab_runner-2.3.344.dist-info/top_level.txt,sha256=hFmVS7RB4_q_A9K26xlyXAQufFEMaEhdAuArTcB_Bto,18
|
|
9
|
+
cdk_gitlab_runner-2.3.344.dist-info/RECORD,,
|
|
Binary file
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
cdk_gitlab_runner/__init__.py,sha256=cKDSRZwoos8Ud6qtFTVompGffl114SMYn2M61BFPvYE,85576
|
|
2
|
-
cdk_gitlab_runner/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
3
|
-
cdk_gitlab_runner/_jsii/__init__.py,sha256=uEcSeBpbNvZYg64YXgiW9tfy7TsDq-gBqPOBmm4yYUU,1462
|
|
4
|
-
cdk_gitlab_runner/_jsii/cdk-gitlab-runner@2.3.203.jsii.tgz,sha256=ajDp2Iw9isZuAVv8rupjJevwC_tkOBQqX877ldRNGUw,87088
|
|
5
|
-
cdk_gitlab_runner-2.3.203.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
6
|
-
cdk_gitlab_runner-2.3.203.dist-info/METADATA,sha256=CyZfABM2bXUJKUhFxkoXmByTaYAJjWqQWIlJfEKBXcU,13246
|
|
7
|
-
cdk_gitlab_runner-2.3.203.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
|
8
|
-
cdk_gitlab_runner-2.3.203.dist-info/top_level.txt,sha256=hFmVS7RB4_q_A9K26xlyXAQufFEMaEhdAuArTcB_Bto,18
|
|
9
|
-
cdk_gitlab_runner-2.3.203.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|