@spinnaker/amazon 2026.2.3 → 2026.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aws.module.d.ts +2 -1
- package/dist/aws.services.d.ts +8 -0
- package/dist/certificates/AmazonCertificateReader.d.ts +1 -1
- package/dist/domain/IAmazonServerGroup.d.ts +10 -0
- package/dist/function/CreateLambdaFunction.d.ts +10 -5
- package/dist/function/configure/Network.d.ts +3 -0
- package/dist/function/details/FunctionActions.d.ts +3 -0
- package/dist/function/function.transformer.d.ts +1 -0
- package/dist/image/image.reader.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/instance/amazon.instance.write.service.d.ts +5 -5
- package/dist/instance/awsInstanceType.service.d.ts +13 -2
- package/dist/instance/details/AmazonInstanceDetails.d.ts +67 -0
- package/dist/instance/index.d.ts +1 -0
- package/dist/keyPairs/KeyPairsReader.d.ts +1 -1
- package/dist/loadBalancer/AmazonLoadBalancersTag.d.ts +7 -4
- package/dist/loadBalancer/OidcConfigReader.d.ts +1 -1
- package/dist/loadBalancer/TargetGroupDetails.d.ts +37 -3
- package/dist/loadBalancer/amazonLoadBalancerDataUtils.d.ts +1 -1
- package/dist/loadBalancer/configure/AmazonLoadBalancerChoiceModal.d.ts +6 -2
- package/dist/loadBalancer/configure/LoadBalancerTypes.d.ts +4 -4
- package/dist/loadBalancer/configure/application/CreateApplicationLoadBalancer.d.ts +10 -5
- package/dist/loadBalancer/configure/classic/CreateClassicLoadBalancer.d.ts +12 -7
- package/dist/loadBalancer/configure/common/SecurityGroups.d.ts +4 -0
- package/dist/loadBalancer/configure/network/CreateNetworkLoadBalancer.d.ts +10 -5
- package/dist/loadBalancer/details/LoadBalancerActions.d.ts +9 -2
- package/dist/loadBalancer/details/amazonLoadBalancerDetails.d.ts +22 -0
- package/dist/loadBalancer/index.d.ts +1 -0
- package/dist/loadBalancer/loadBalancer.transformer.d.ts +1 -1
- package/dist/pipeline/stages/AmazonStageConfig.d.ts +11 -0
- package/dist/pipeline/stages/bake/AwsBakeStageConfig.d.ts +66 -0
- package/dist/pipeline/stages/cloneServerGroup/AwsCloneServerGroupStageConfig.d.ts +20 -0
- package/dist/pipeline/stages/deleteLambda/index.d.ts +1 -1
- package/dist/pipeline/stages/deployCloudFormation/CloudFormationChangeSetInfo.d.ts +5 -4
- package/dist/pipeline/stages/deployCloudFormation/DeployCloudFormationStackStageConfig.d.ts +3 -0
- package/dist/pipeline/stages/deployCloudFormation/deployCloudFormationStackStage.d.ts +1 -1
- package/dist/pipeline/stages/deployCloudFormation/evaluateCloudFormationChangeSetExecution.service.d.ts +1 -3
- package/dist/pipeline/stages/deployLambda/index.d.ts +1 -1
- package/dist/pipeline/stages/destroyAsg/awsDestroyAsgStage.d.ts +26 -2
- package/dist/pipeline/stages/disableAsg/AwsDisableAsgStageConfig.d.ts +27 -0
- package/dist/pipeline/stages/disableCluster/AwsDisableClusterStageConfig.d.ts +19 -0
- package/dist/pipeline/stages/enableAsg/AwsEnableAsgStageConfig.d.ts +20 -0
- package/dist/pipeline/stages/findAmi/awsFindAmiStage.d.ts +17 -2
- package/dist/pipeline/stages/findImageFromTags/AwsFindImageFromTagsStageConfig.d.ts +3 -0
- package/dist/pipeline/stages/findImageFromTags/awsFindImageFromTagsStage.d.ts +12 -2
- package/dist/pipeline/stages/invokeLambda/index.d.ts +1 -1
- package/dist/pipeline/stages/modifyScalingProcess/ModifyScalingProcessStageConfig.d.ts +3 -0
- package/dist/pipeline/stages/modifyScalingProcess/modifyScalingProcessStage.d.ts +20 -2
- package/dist/pipeline/stages/modifyWarmPool/ModifyWarmPoolStageConfig.d.ts +3 -0
- package/dist/pipeline/stages/modifyWarmPool/modifyWarmPoolStage.d.ts +20 -0
- package/dist/pipeline/stages/resizeAsg/AwsResizeAsgStageConfig.d.ts +17 -0
- package/dist/pipeline/stages/resizeAsg/awsResizeAsgStage.d.ts +40 -2
- package/dist/pipeline/stages/rollbackCluster/AwsRollbackClusterStageConfig.d.ts +19 -0
- package/dist/pipeline/stages/routeLambda/index.d.ts +1 -1
- package/dist/pipeline/stages/scaleDownCluster/AwsScaleDownClusterStageConfig.d.ts +22 -0
- package/dist/pipeline/stages/shrinkCluster/AwsShrinkClusterStageConfig.d.ts +21 -0
- package/dist/pipeline/stages/tagImage/awsTagImageStage.d.ts +5 -2
- package/dist/pipeline/stages/updateCodeLambda/index.d.ts +1 -1
- package/dist/search/searchResultFormatter.d.ts +4 -2
- package/dist/securityGroup/configure/AmazonSecurityGroupModal.d.ts +43 -0
- package/dist/securityGroup/details/AmazonSecurityGroupDetails.d.ts +62 -0
- package/dist/securityGroup/details/index.d.ts +1 -0
- package/dist/securityGroup/index.d.ts +1 -0
- package/dist/securityGroup/securityGroup.reader.d.ts +0 -1
- package/dist/securityGroup/securityGroup.transformer.d.ts +11 -2
- package/dist/serverGroup/configure/serverGroupCommandBuilder.service.d.ts +23 -7
- package/dist/serverGroup/configure/serverGroupConfiguration.service.d.ts +17 -13
- package/dist/serverGroup/configure/wizard/AmazonCloneServerGroupModal.d.ts +16 -6
- package/dist/serverGroup/configure/wizard/pages/ServerGroupBasicSettings.d.ts +6 -3
- package/dist/serverGroup/configure/wizard/pages/ServerGroupLoadBalancers.d.ts +3 -0
- package/dist/serverGroup/configure/wizard/securityGroups/SecurityGroupSelector.d.ts +4 -0
- package/dist/serverGroup/details/AmazonServerGroupActions.d.ts +10 -2
- package/dist/serverGroup/details/advancedSettings/EditAsgAdvancedSettingsModal.d.ts +17 -0
- package/dist/serverGroup/details/advancedSettings/index.d.ts +1 -0
- package/dist/serverGroup/details/resize/AmazonResizeServerGroupModal.d.ts +5 -3
- package/dist/serverGroup/details/rollback/AmazonRollbackServerGroupModal.d.ts +67 -0
- package/dist/serverGroup/details/rollback/index.d.ts +2 -0
- package/dist/serverGroup/details/rollback/rollbackServerGroupSelection.d.ts +9 -0
- package/dist/serverGroup/details/scalingPolicy/ScalingPolicyWriter.d.ts +2 -2
- package/dist/serverGroup/details/scalingPolicy/upsert/alarm/DimensionsEditor.d.ts +0 -1
- package/dist/serverGroup/details/scalingProcesses/ModifyScalingProcessesModal.d.ts +24 -0
- package/dist/serverGroup/details/scalingProcesses/index.d.ts +2 -0
- package/dist/serverGroup/details/scheduledActions/EditScheduledActionsModal.d.ts +31 -0
- package/dist/serverGroup/details/scheduledActions/index.d.ts +1 -0
- package/dist/serverGroup/details/sections/AdvancedSettingsDetailsSection.d.ts +3 -0
- package/dist/serverGroup/details/sections/AmazonCapacityDetailsSection.d.ts +3 -0
- package/dist/serverGroup/details/sections/ScalingProcessesDetailsSection.d.ts +1 -1
- package/dist/serverGroup/details/sections/ScheduledActionsDetailsSection.d.ts +1 -1
- package/dist/serverGroup/details/sections/SecurityGroupsDetailsSection.d.ts +4 -1
- package/dist/serverGroup/details/sections/WarmPoolDetailsSection.d.ts +6 -0
- package/dist/serverGroup/details/sections/index.d.ts +1 -0
- package/dist/serverGroup/details/securityGroups/EditSecurityGroupsModal.d.ts +32 -0
- package/dist/serverGroup/details/securityGroups/index.d.ts +1 -0
- package/dist/serverGroup/details/warmPool/ModifyWarmPoolModal.d.ts +26 -0
- package/dist/serverGroup/details/warmPool/WarmPoolService.d.ts +6 -0
- package/dist/serverGroup/details/warmPool/index.d.ts +2 -0
- package/dist/serverGroup/serverGroup.transformer.d.ts +1 -2
- package/dist/vpc/VpcReader.d.ts +2 -2
- package/dist/vpc/index.d.ts +1 -0
- package/package.json +3 -12
- package/src/aws.module.spec.ts +296 -0
- package/src/aws.module.ts +107 -112
- package/src/aws.services.ts +21 -0
- package/src/certificates/AmazonCertificateReader.ts +1 -1
- package/src/domain/IAmazonServerGroup.ts +9 -0
- package/src/function/CreateLambdaFunction.tsx +29 -16
- package/src/function/configure/Network.tsx +8 -4
- package/src/function/details/AmazonFunctionDetails.tsx +4 -5
- package/src/function/details/FunctionActions.tsx +5 -1
- package/src/function/function.transformer.ts +4 -0
- package/src/image/image.reader.ts +3 -5
- package/src/index.ts +2 -2
- package/src/instance/amazon.instance.write.service.ts +15 -4
- package/src/instance/awsInstanceType.service.spec.js +172 -136
- package/src/instance/awsInstanceType.service.ts +142 -154
- package/src/instance/details/AmazonInstanceDetails.spec.tsx +79 -0
- package/src/instance/details/AmazonInstanceDetails.tsx +644 -0
- package/src/instance/details/InstanceInformation.tsx +11 -14
- package/src/instance/details/InstanceSecurityGroups.tsx +20 -23
- package/src/instance/details/InstanceTags.tsx +5 -3
- package/src/instance/index.ts +1 -0
- package/src/keyPairs/KeyPairsReader.ts +1 -1
- package/src/loadBalancer/AmazonLoadBalancersTag.spec.tsx +39 -0
- package/src/loadBalancer/AmazonLoadBalancersTag.tsx +21 -14
- package/src/loadBalancer/OidcConfigReader.ts +1 -1
- package/src/loadBalancer/TargetGroupDetails.spec.tsx +113 -0
- package/src/loadBalancer/TargetGroupDetails.tsx +287 -7
- package/src/loadBalancer/amazonLoadBalancerDataUtils.ts +21 -21
- package/src/loadBalancer/configure/AmazonLoadBalancerChoiceModal.tsx +17 -4
- package/src/loadBalancer/configure/LoadBalancerTypes.ts +7 -4
- package/src/loadBalancer/configure/application/ALBListeners.tsx +1 -2
- package/src/loadBalancer/configure/application/CreateApplicationLoadBalancer.tsx +28 -18
- package/src/loadBalancer/configure/classic/CreateClassicLoadBalancer.tsx +29 -19
- package/src/loadBalancer/configure/common/LoadBalancerLocation.tsx +1 -1
- package/src/loadBalancer/configure/common/SecurityGroups.spec.tsx +27 -0
- package/src/loadBalancer/configure/common/SecurityGroups.tsx +11 -5
- package/src/loadBalancer/configure/network/CreateNetworkLoadBalancer.tsx +28 -18
- package/src/loadBalancer/details/LoadBalancerActions.tsx +19 -5
- package/src/loadBalancer/details/amazonLoadBalancerDetails.spec.tsx +141 -0
- package/src/loadBalancer/details/amazonLoadBalancerDetails.tsx +599 -0
- package/src/loadBalancer/index.ts +1 -0
- package/src/loadBalancer/loadBalancer.transformer.ts +3 -4
- package/src/pipeline/stages/AmazonStageConfig.spec.tsx +103 -0
- package/src/pipeline/stages/AmazonStageConfig.tsx +259 -0
- package/src/pipeline/stages/bake/AwsBakeStageConfig.tsx +708 -0
- package/src/pipeline/stages/cloneServerGroup/AwsCloneServerGroupStageConfig.tsx +275 -0
- package/src/pipeline/stages/deleteLambda/index.ts +2 -6
- package/src/pipeline/stages/deployCloudFormation/CloudFormationChangeSetInfo.tsx +14 -33
- package/src/pipeline/stages/deployCloudFormation/DeployCloudFormationStackStageConfig.tsx +264 -0
- package/src/pipeline/stages/deployCloudFormation/deployCloudFormationStackStage.spec.tsx +403 -0
- package/src/pipeline/stages/deployCloudFormation/deployCloudFormationStackStage.ts +21 -29
- package/src/pipeline/stages/deployCloudFormation/evaluateCloudFormationChangeSetExecution.service.ts +1 -11
- package/src/pipeline/stages/deployCloudFormation/evaluateCloudFormationChangeSetExecutionApproval.tsx +4 -3
- package/src/pipeline/stages/deployLambda/components/NetworkForm.tsx +3 -6
- package/src/pipeline/stages/deployLambda/index.ts +2 -6
- package/src/pipeline/stages/destroyAsg/awsDestroyAsgStage.js +28 -65
- package/src/pipeline/stages/disableAsg/AwsDisableAsgStageConfig.tsx +103 -0
- package/src/pipeline/stages/disableCluster/AwsDisableClusterStageConfig.tsx +119 -0
- package/src/pipeline/stages/enableAsg/AwsEnableAsgStageConfig.tsx +98 -0
- package/src/pipeline/stages/findAmi/awsFindAmiStage.js +22 -79
- package/src/pipeline/stages/findImageFromTags/AwsFindImageFromTagsStageConfig.spec.tsx +122 -0
- package/src/pipeline/stages/findImageFromTags/AwsFindImageFromTagsStageConfig.tsx +71 -0
- package/src/pipeline/stages/findImageFromTags/awsFindImageFromTagsStage.js +17 -32
- package/src/pipeline/stages/invokeLambda/index.ts +2 -6
- package/src/pipeline/stages/modifyScalingProcess/ModifyScalingProcessStageConfig.tsx +146 -0
- package/src/pipeline/stages/modifyScalingProcess/modifyScalingProcessStage.js +27 -98
- package/src/pipeline/stages/modifyScalingProcess/modifyScalingProcessStage.spec.tsx +167 -0
- package/src/pipeline/stages/modifyWarmPool/ModifyWarmPoolStageConfig.tsx +157 -0
- package/src/pipeline/stages/modifyWarmPool/modifyWarmPoolStage.js +26 -0
- package/src/pipeline/stages/modifyWarmPool/modifyWarmPoolStage.spec.tsx +89 -0
- package/src/pipeline/stages/resizeAsg/AwsResizeAsgStageConfig.spec.tsx +617 -0
- package/src/pipeline/stages/resizeAsg/AwsResizeAsgStageConfig.tsx +340 -0
- package/src/pipeline/stages/resizeAsg/awsResizeAsgStage.js +34 -125
- package/src/pipeline/stages/rollbackCluster/AwsRollbackClusterStageConfig.tsx +129 -0
- package/src/pipeline/stages/routeLambda/index.ts +2 -6
- package/src/pipeline/stages/scaleDownCluster/AwsScaleDownClusterStageConfig.tsx +121 -0
- package/src/pipeline/stages/shrinkCluster/AwsShrinkClusterStageConfig.tsx +136 -0
- package/src/pipeline/stages/tagImage/awsTagImageStage.spec.tsx +167 -0
- package/src/pipeline/stages/tagImage/awsTagImageStage.tsx +94 -0
- package/src/pipeline/stages/updateCodeLambda/index.ts +2 -6
- package/src/routerConsumers.spec.tsx +207 -0
- package/src/search/searchResultFormatter.ts +9 -16
- package/src/securityGroup/configure/AmazonSecurityGroupModal.spec.tsx +170 -0
- package/src/securityGroup/configure/AmazonSecurityGroupModal.tsx +440 -0
- package/src/securityGroup/details/AmazonSecurityGroupDetails.spec.tsx +62 -0
- package/src/securityGroup/details/AmazonSecurityGroupDetails.tsx +444 -0
- package/src/securityGroup/details/IPRangeRules.tsx +1 -1
- package/src/securityGroup/details/index.ts +1 -0
- package/src/securityGroup/index.ts +1 -0
- package/src/securityGroup/securityGroup.reader.ts +0 -5
- package/src/securityGroup/securityGroup.transformer.ts +35 -0
- package/src/serverGroup/configure/AmazonImageSelectInput.spec.tsx +104 -80
- package/src/serverGroup/configure/AmazonImageSelectInput.tsx +37 -18
- package/src/serverGroup/configure/serverGroupCommandBuilder.aws.service.spec.js +28 -66
- package/src/serverGroup/configure/serverGroupCommandBuilder.service.ts +476 -465
- package/src/serverGroup/configure/serverGroupCommandBuilder.spec.js +76 -124
- package/src/serverGroup/configure/serverGroupConfiguration.service.ts +106 -103
- package/src/serverGroup/configure/wizard/AmazonCloneServerGroupModal.tsx +65 -25
- package/src/serverGroup/configure/wizard/instanceType/CpuCreditsToggle.tsx +3 -3
- package/src/serverGroup/configure/wizard/instanceType/advancedMode/AdvancedModeSelector.tsx +2 -2
- package/src/serverGroup/configure/wizard/instanceType/simpleMode/SimpleModeSelector.spec.tsx +105 -0
- package/src/serverGroup/configure/wizard/instanceType/simpleMode/SimpleModeSelector.tsx +20 -6
- package/src/serverGroup/configure/wizard/pages/ServerGroupBasicSettings.spec.tsx +39 -0
- package/src/serverGroup/configure/wizard/pages/ServerGroupBasicSettings.tsx +10 -9
- package/src/serverGroup/configure/wizard/pages/ServerGroupInstanceType.tsx +2 -2
- package/src/serverGroup/configure/wizard/pages/ServerGroupLoadBalancers.tsx +5 -2
- package/src/serverGroup/configure/wizard/pages/advancedSettings/ServerGroupAdvancedSettingsCommon.spec.tsx +53 -0
- package/src/serverGroup/configure/wizard/pages/advancedSettings/ServerGroupAdvancedSettingsCommon.tsx +35 -33
- package/src/serverGroup/configure/wizard/securityGroups/SecurityGroupSelector.spec.tsx +20 -0
- package/src/serverGroup/configure/wizard/securityGroups/SecurityGroupSelector.tsx +9 -4
- package/src/serverGroup/details/AmazonServerGroupActions.spec.tsx +186 -0
- package/src/serverGroup/details/AmazonServerGroupActions.tsx +37 -87
- package/src/serverGroup/details/advancedSettings/EditAsgAdvancedSettingsModal.spec.tsx +110 -0
- package/src/serverGroup/details/advancedSettings/EditAsgAdvancedSettingsModal.tsx +117 -0
- package/src/serverGroup/details/advancedSettings/index.ts +1 -0
- package/src/serverGroup/details/amazonServerGroupDetailsGetter.ts +4 -4
- package/src/serverGroup/details/resize/AmazonResizeServerGroupModal.tsx +16 -6
- package/src/serverGroup/details/rollback/AmazonRollbackServerGroupModal.spec.tsx +285 -0
- package/src/serverGroup/details/rollback/AmazonRollbackServerGroupModal.tsx +449 -0
- package/src/serverGroup/details/rollback/index.ts +2 -0
- package/src/serverGroup/details/rollback/rollbackServerGroupSelection.spec.ts +101 -0
- package/src/serverGroup/details/rollback/rollbackServerGroupSelection.ts +81 -0
- package/src/serverGroup/details/scalingPolicy/CreateScalingPolicyButton.tsx +4 -4
- package/src/serverGroup/details/scalingPolicy/ScalingPolicyWriter.ts +2 -5
- package/src/serverGroup/details/scalingPolicy/upsert/alarm/DimensionsEditor.tsx +0 -2
- package/src/serverGroup/details/scalingProcesses/ModifyScalingProcessesModal.spec.tsx +74 -0
- package/src/serverGroup/details/scalingProcesses/ModifyScalingProcessesModal.tsx +140 -0
- package/src/serverGroup/details/scalingProcesses/index.ts +2 -0
- package/src/serverGroup/details/scheduledActions/EditScheduledActionsModal.spec.tsx +115 -0
- package/src/serverGroup/details/scheduledActions/EditScheduledActionsModal.tsx +205 -0
- package/src/serverGroup/details/scheduledActions/index.ts +1 -0
- package/src/serverGroup/details/sections/AdvancedSettingsDetailsSection.tsx +7 -14
- package/src/serverGroup/details/sections/AmazonCapacityDetailsSection.tsx +14 -2
- package/src/serverGroup/details/sections/AmazonServerGroupMaintenanceActions.spec.tsx +148 -0
- package/src/serverGroup/details/sections/InstancesDistributionDetailsSection.spec.tsx +1 -5
- package/src/serverGroup/details/sections/LaunchTemplateDetailsSection.spec.tsx +1 -5
- package/src/serverGroup/details/sections/ScalingProcessesDetailsSection.tsx +8 -20
- package/src/serverGroup/details/sections/ScheduledActionsDetailsSection.tsx +7 -12
- package/src/serverGroup/details/sections/SecurityGroupsDetailsSection.tsx +14 -19
- package/src/serverGroup/details/sections/WarmPoolDetailsSection.tsx +44 -0
- package/src/serverGroup/details/sections/index.ts +1 -0
- package/src/serverGroup/details/securityGroups/EditSecurityGroupsModal.spec.tsx +161 -0
- package/src/serverGroup/details/securityGroups/EditSecurityGroupsModal.tsx +177 -0
- package/src/serverGroup/details/securityGroups/index.ts +1 -0
- package/src/serverGroup/details/warmPool/ModifyWarmPoolModal.spec.tsx +69 -0
- package/src/serverGroup/details/warmPool/ModifyWarmPoolModal.tsx +191 -0
- package/src/serverGroup/details/warmPool/WarmPoolService.spec.ts +30 -0
- package/src/serverGroup/details/warmPool/WarmPoolService.ts +15 -0
- package/src/serverGroup/details/warmPool/index.ts +2 -0
- package/src/serverGroup/serverGroup.transformer.ts +1 -6
- package/src/vpc/VpcReader.ts +2 -2
- package/src/vpc/index.ts +1 -0
- package/dist/common/common.module.d.ts +0 -1
- package/dist/common/footer.component.d.ts +0 -1
- package/dist/function/function.module.d.ts +0 -1
- package/dist/instance/details/amazonInstanceInformation.component.d.ts +0 -1
- package/dist/instance/details/instance.details.controller.d.ts +0 -2
- package/dist/instance/details/instanceDns.component.d.ts +0 -1
- package/dist/instance/details/instanceSecurityGroups.component.d.ts +0 -1
- package/dist/instance/details/instanceStatus.component.d.ts +0 -1
- package/dist/instance/details/instanceTags.component.d.ts +0 -1
- package/dist/loadBalancer/details/loadBalancerActions.component.d.ts +0 -1
- package/dist/loadBalancer/details/loadBalancerDetails.controller.d.ts +0 -41
- package/dist/loadBalancer/details/targetGroupDetails.controller.d.ts +0 -30
- package/dist/loadBalancer/loadBalancer.module.d.ts +0 -1
- package/dist/loadBalancer/targetGroup.states.d.ts +0 -1
- package/dist/pipeline/stages/bake/awsBakeStage.d.ts +0 -2
- package/dist/pipeline/stages/bake/bakeExecutionDetails.controller.d.ts +0 -2
- package/dist/pipeline/stages/cloneServerGroup/awsCloneServerGroupStage.d.ts +0 -2
- package/dist/pipeline/stages/deployCloudFormation/cloudFormationTemplateEntry.component.d.ts +0 -1
- package/dist/pipeline/stages/deployCloudFormation/deployCloudFormationStackConfig.controller.d.ts +0 -25
- package/dist/pipeline/stages/disableAsg/awsDisableAsgStage.d.ts +0 -2
- package/dist/pipeline/stages/disableCluster/awsDisableClusterStage.d.ts +0 -2
- package/dist/pipeline/stages/enableAsg/awsEnableAsgStage.d.ts +0 -2
- package/dist/pipeline/stages/rollbackCluster/awsRollbackClusterStage.d.ts +0 -2
- package/dist/pipeline/stages/scaleDownCluster/awsScaleDownClusterStage.d.ts +0 -2
- package/dist/pipeline/stages/shrinkCluster/awsShrinkClusterStage.d.ts +0 -2
- package/dist/reactShims/aws.react.injector.d.ts +0 -18
- package/dist/reactShims/aws.react.module.d.ts +0 -1
- package/dist/reactShims/index.d.ts +0 -1
- package/dist/securityGroup/clone/cloneSecurityGroup.controller.d.ts +0 -2
- package/dist/securityGroup/configure/CreateSecurityGroupCtrl.d.ts +0 -2
- package/dist/securityGroup/configure/EditSecurityGroupCtrl.d.ts +0 -2
- package/dist/securityGroup/configure/configSecurityGroup.mixin.controller.d.ts +0 -2
- package/dist/securityGroup/configure/ingressRuleGroupSelector.component.d.ts +0 -1
- package/dist/securityGroup/configure/securityGroupDetailsCustom.component.d.ts +0 -1
- package/dist/securityGroup/configure/securityGroupDetailsCustom.d.ts +0 -10
- package/dist/securityGroup/details/securityGroupDetail.controller.d.ts +0 -2
- package/dist/securityGroup/details/securityGroupIpRangeRules.component.d.ts +0 -1
- package/dist/securityGroup/securityGroup.module.d.ts +0 -1
- package/dist/serverGroup/details/advancedSettings/editAsgAdvancedSettings.modal.controller.d.ts +0 -2
- package/dist/serverGroup/details/rollback/rollbackServerGroup.controller.d.ts +0 -2
- package/dist/serverGroup/details/scalingPolicy/createScalingPolicyButton.component.d.ts +0 -1
- package/dist/serverGroup/details/scalingPolicy/scalingPolicy.module.d.ts +0 -1
- package/dist/serverGroup/details/scalingPolicy/scalingPolicySummary.component.d.ts +0 -1
- package/dist/serverGroup/details/scalingProcesses/modifyScalingProcesses.controller.d.ts +0 -2
- package/dist/serverGroup/details/scheduledAction/editScheduledActions.modal.controller.d.ts +0 -2
- package/dist/serverGroup/details/securityGroup/editSecurityGroups.modal.controller.d.ts +0 -2
- package/dist/serverGroup/details/serverGroupDetails.module.d.ts +0 -1
- package/dist/subnet/subnet.renderer.d.ts +0 -5
- package/dist/vpc/vpc.module.d.ts +0 -1
- package/src/applicationProviderFields/awsFields.html +0 -13
- package/src/common/common.module.ts +0 -6
- package/src/common/footer.component.ts +0 -29
- package/src/function/function.module.ts +0 -5
- package/src/image/image.reader.spec.ts +0 -75
- package/src/instance/details/amazonInstanceInformation.component.ts +0 -13
- package/src/instance/details/instance.details.controller.js +0 -586
- package/src/instance/details/instance.details.controller.spec.js +0 -133
- package/src/instance/details/instanceDetails.html +0 -65
- package/src/instance/details/instanceDns.component.ts +0 -21
- package/src/instance/details/instanceSecurityGroups.component.ts +0 -13
- package/src/instance/details/instanceStatus.component.ts +0 -19
- package/src/instance/details/instanceTags.component.ts +0 -13
- package/src/loadBalancer/details/loadBalancerActions.component.ts +0 -16
- package/src/loadBalancer/details/loadBalancerDetails.controller.spec.ts +0 -76
- package/src/loadBalancer/details/loadBalancerDetails.controller.ts +0 -240
- package/src/loadBalancer/details/loadBalancerDetails.html +0 -266
- package/src/loadBalancer/details/targetGroupDetails.controller.ts +0 -95
- package/src/loadBalancer/details/targetGroupDetails.html +0 -138
- package/src/loadBalancer/loadBalancer.module.ts +0 -15
- package/src/loadBalancer/targetGroup.states.ts +0 -55
- package/src/pipeline/stages/bake/awsBakeStage.js +0 -219
- package/src/pipeline/stages/bake/bakeExecutionDetails.controller.js +0 -43
- package/src/pipeline/stages/bake/bakeExecutionDetails.html +0 -65
- package/src/pipeline/stages/bake/bakeStage.html +0 -205
- package/src/pipeline/stages/cloneServerGroup/awsCloneServerGroupStage.js +0 -143
- package/src/pipeline/stages/cloneServerGroup/cloneServerGroupStage.html +0 -143
- package/src/pipeline/stages/cloneServerGroup/cloneServerGroupStepLabel.html +0 -1
- package/src/pipeline/stages/deployCloudFormation/cloudFormationTemplateEntry.component.ts +0 -46
- package/src/pipeline/stages/deployCloudFormation/deployCloudFormationStackConfig.controller.ts +0 -84
- package/src/pipeline/stages/deployCloudFormation/deployCloudFormationStackConfig.html +0 -84
- package/src/pipeline/stages/destroyAsg/destroyAsgStage.html +0 -9
- package/src/pipeline/stages/destroyAsg/destroyAsgStepLabel.html +0 -1
- package/src/pipeline/stages/disableAsg/awsDisableAsgStage.js +0 -69
- package/src/pipeline/stages/disableAsg/disableAsgStage.html +0 -11
- package/src/pipeline/stages/disableAsg/disableAsgStepLabel.html +0 -1
- package/src/pipeline/stages/disableCluster/awsDisableClusterStage.js +0 -84
- package/src/pipeline/stages/disableCluster/disableClusterStage.html +0 -26
- package/src/pipeline/stages/enableAsg/awsEnableAsgStage.js +0 -73
- package/src/pipeline/stages/enableAsg/enableAsgStage.html +0 -11
- package/src/pipeline/stages/enableAsg/enableAsgStepLabel.html +0 -1
- package/src/pipeline/stages/findAmi/findAmiStage.html +0 -24
- package/src/pipeline/stages/findImageFromTags/findImageFromTagsExecutionDetails.html +0 -44
- package/src/pipeline/stages/findImageFromTags/findImageFromTagsStage.html +0 -11
- package/src/pipeline/stages/modifyScalingProcess/modifyScalingProcessExecutionDetails.html +0 -36
- package/src/pipeline/stages/modifyScalingProcess/modifyScalingProcessStage.html +0 -24
- package/src/pipeline/stages/resizeAsg/resizeAsgStage.html +0 -90
- package/src/pipeline/stages/resizeAsg/resizeAsgStepLabel.html +0 -4
- package/src/pipeline/stages/rollbackCluster/awsRollbackClusterStage.js +0 -66
- package/src/pipeline/stages/rollbackCluster/rollbackClusterStage.html +0 -43
- package/src/pipeline/stages/scaleDownCluster/awsScaleDownClusterStage.js +0 -78
- package/src/pipeline/stages/scaleDownCluster/scaleDownClusterStage.html +0 -35
- package/src/pipeline/stages/shrinkCluster/awsShrinkClusterStage.js +0 -73
- package/src/pipeline/stages/shrinkCluster/shrinkClusterStage.html +0 -34
- package/src/pipeline/stages/tagImage/awsTagImageStage.js +0 -34
- package/src/pipeline/stages/tagImage/tagImageExecutionDetails.html +0 -38
- package/src/pipeline/stages/tagImage/tagImageStage.html +0 -10
- package/src/reactShims/aws.react.injector.ts +0 -25
- package/src/reactShims/aws.react.module.ts +0 -12
- package/src/reactShims/index.ts +0 -1
- package/src/securityGroup/clone/cloneSecurityGroup.controller.js +0 -106
- package/src/securityGroup/clone/cloneSecurityGroup.html +0 -19
- package/src/securityGroup/configure/CreateSecurityGroup.controller.spec.js +0 -307
- package/src/securityGroup/configure/CreateSecurityGroupCtrl.js +0 -47
- package/src/securityGroup/configure/EditSecurityGroupCtrl.js +0 -115
- package/src/securityGroup/configure/configSecurityGroup.mixin.controller.js +0 -366
- package/src/securityGroup/configure/createSecurityGroup.html +0 -19
- package/src/securityGroup/configure/createSecurityGroupIngress.html +0 -100
- package/src/securityGroup/configure/createSecurityGroupProperties.html +0 -123
- package/src/securityGroup/configure/editSecurityGroup.html +0 -20
- package/src/securityGroup/configure/ingressRuleGroupSelector.component.html +0 -77
- package/src/securityGroup/configure/ingressRuleGroupSelector.component.less +0 -6
- package/src/securityGroup/configure/ingressRuleGroupSelector.component.ts +0 -190
- package/src/securityGroup/configure/securityGroupDetailsCustom.component.ts +0 -16
- package/src/securityGroup/configure/securityGroupDetailsCustom.tsx +0 -16
- package/src/securityGroup/details/securityGroupDetail.controller.js +0 -249
- package/src/securityGroup/details/securityGroupDetail.html +0 -114
- package/src/securityGroup/details/securityGroupIpRangeRules.component.ts +0 -12
- package/src/securityGroup/securityGroup.module.ts +0 -26
- package/src/securityGroup/securityGroup.transformer.js +0 -48
- package/src/serverGroup/configure/serverGroupConfiguration.service.spec.ts +0 -478
- package/src/serverGroup/details/advancedSettings/editAsgAdvancedSettings.modal.controller.js +0 -47
- package/src/serverGroup/details/advancedSettings/editAsgAdvancedSettings.modal.html +0 -79
- package/src/serverGroup/details/rollback/rollbackServerGroup.controller.js +0 -146
- package/src/serverGroup/details/rollback/rollbackServerGroup.html +0 -139
- package/src/serverGroup/details/scalingPolicy/createScalingPolicyButton.component.ts +0 -15
- package/src/serverGroup/details/scalingPolicy/scalingPolicy.module.ts +0 -6
- package/src/serverGroup/details/scalingPolicy/scalingPolicySummary.component.ts +0 -14
- package/src/serverGroup/details/scalingPolicy/upsert/alarm/dimensionsEditor.less +0 -18
- package/src/serverGroup/details/scalingProcesses/modifyScalingProcesses.controller.js +0 -95
- package/src/serverGroup/details/scalingProcesses/modifyScalingProcesses.controller.spec.js +0 -106
- package/src/serverGroup/details/scalingProcesses/modifyScalingProcesses.html +0 -30
- package/src/serverGroup/details/scheduledAction/editScheduledActions.modal.controller.js +0 -70
- package/src/serverGroup/details/scheduledAction/editScheduledActions.modal.html +0 -89
- package/src/serverGroup/details/securityGroup/editSecurityGroups.modal.controller.js +0 -95
- package/src/serverGroup/details/securityGroup/editSecurityGroups.modal.html +0 -40
- package/src/serverGroup/details/serverGroupDetails.module.ts +0 -18
- package/src/serverGroup/serverGroup.transformer.spec.ts +0 -185
- package/src/subnet/SubnetSelectInput.spec.tsx +0 -91
- package/src/subnet/subnet.renderer.ts +0 -12
- package/src/vpc/vpc.module.ts +0 -9
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { cloneDeep } from 'lodash';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
|
-
import type { IFunctionModalProps } from '@spinnaker/core';
|
|
5
|
-
import { FunctionWriter, noop,
|
|
4
|
+
import type { DeckRuntimeServices, IFunctionModalProps, IRouterInjectedProps } from '@spinnaker/core';
|
|
5
|
+
import { FunctionWriter, noop, ReactModal, TaskMonitor, withRouter, WizardModal, WizardPage } from '@spinnaker/core';
|
|
6
6
|
|
|
7
7
|
import { ExecutionRole } from './configure/ExecutionRole';
|
|
8
8
|
import { FunctionBasicInformation } from './configure/FunctionBasicInformation';
|
|
@@ -23,13 +23,16 @@ export interface IAmazonCreateFunctionState {
|
|
|
23
23
|
taskMonitor: TaskMonitor;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export class
|
|
26
|
+
export class CreateLambdaFunctionComponent extends React.Component<
|
|
27
|
+
IAmazonCreateFunctionProps & IRouterInjectedProps,
|
|
28
|
+
IAmazonCreateFunctionState
|
|
29
|
+
> {
|
|
27
30
|
public static defaultProps: Partial<IAmazonCreateFunctionProps> = {
|
|
28
31
|
closeModal: noop,
|
|
29
32
|
dismissModal: noop,
|
|
30
33
|
};
|
|
31
34
|
|
|
32
|
-
constructor(props: IAmazonCreateFunctionProps) {
|
|
35
|
+
constructor(props: IAmazonCreateFunctionProps & IRouterInjectedProps) {
|
|
33
36
|
super(props);
|
|
34
37
|
const functionTransformer = new AwsFunctionTransformer();
|
|
35
38
|
const funcCommand = props.functionDef
|
|
@@ -43,26 +46,29 @@ export class CreateLambdaFunction extends React.Component<IAmazonCreateFunctionP
|
|
|
43
46
|
}
|
|
44
47
|
|
|
45
48
|
private _isUnmounted = false;
|
|
46
|
-
private refreshUnsubscribe
|
|
49
|
+
private refreshUnsubscribe?: () => void;
|
|
47
50
|
|
|
48
|
-
public static show(
|
|
51
|
+
public static show(
|
|
52
|
+
props: IAmazonCreateFunctionProps,
|
|
53
|
+
runtimeServices: DeckRuntimeServices,
|
|
54
|
+
): Promise<IAmazonFunctionUpsertCommand> {
|
|
49
55
|
const modalProps = { dialogClassName: 'wizard-modal modal-lg' };
|
|
50
|
-
return ReactModal.show(CreateLambdaFunction, props, modalProps);
|
|
56
|
+
return ReactModal.show(CreateLambdaFunction, props, modalProps, runtimeServices);
|
|
51
57
|
}
|
|
52
58
|
|
|
53
59
|
public componentWillUnmount(): void {
|
|
54
60
|
this._isUnmounted = true;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
61
|
+
this.refreshUnsubscribe?.();
|
|
62
|
+
this.refreshUnsubscribe = undefined;
|
|
58
63
|
}
|
|
59
64
|
|
|
60
65
|
protected onApplicationRefresh(values: IAmazonFunctionUpsertCommand): void {
|
|
66
|
+
this.refreshUnsubscribe?.();
|
|
67
|
+
this.refreshUnsubscribe = undefined;
|
|
61
68
|
if (this._isUnmounted) {
|
|
62
69
|
return;
|
|
63
70
|
}
|
|
64
71
|
|
|
65
|
-
this.refreshUnsubscribe = undefined;
|
|
66
72
|
this.props.dismissModal();
|
|
67
73
|
this.setState({ taskMonitor: undefined });
|
|
68
74
|
const newStateParams = {
|
|
@@ -73,16 +79,18 @@ export class CreateLambdaFunction extends React.Component<IAmazonCreateFunctionP
|
|
|
73
79
|
provider: 'aws',
|
|
74
80
|
};
|
|
75
81
|
|
|
76
|
-
if (!
|
|
77
|
-
|
|
82
|
+
if (!this.props.stateService.includes('**.functionDetails')) {
|
|
83
|
+
this.props.stateService.go('.functionDetails', newStateParams);
|
|
78
84
|
} else {
|
|
79
|
-
|
|
85
|
+
this.props.stateService.go('^.functionDetails', newStateParams);
|
|
80
86
|
}
|
|
81
87
|
}
|
|
82
88
|
|
|
83
89
|
private onTaskComplete(values: IAmazonFunctionUpsertCommand): void {
|
|
90
|
+
this.refreshUnsubscribe?.();
|
|
91
|
+
this.refreshUnsubscribe = undefined;
|
|
92
|
+
this.refreshUnsubscribe = this.props.app.functions.onNextRefresh(() => this.onApplicationRefresh(values));
|
|
84
93
|
this.props.app.functions.refresh();
|
|
85
|
-
this.refreshUnsubscribe = this.props.app.functions.onNextRefresh(null, () => this.onApplicationRefresh(values));
|
|
86
94
|
}
|
|
87
95
|
|
|
88
96
|
private checkForS3Update(functionCommandFormatted: IAmazonFunctionUpsertCommand, descriptor: string): void {
|
|
@@ -105,7 +113,7 @@ export class CreateLambdaFunction extends React.Component<IAmazonCreateFunctionP
|
|
|
105
113
|
const taskMonitor = new TaskMonitor({
|
|
106
114
|
application: app,
|
|
107
115
|
title: `${isNew ? 'Creating' : 'Updating'} your function`,
|
|
108
|
-
|
|
116
|
+
onDismiss: () => this.props.dismissModal(),
|
|
109
117
|
onTaskComplete: () => {
|
|
110
118
|
this.checkForS3Update(functionCommandFormatted, descriptor);
|
|
111
119
|
},
|
|
@@ -226,3 +234,8 @@ export class CreateLambdaFunction extends React.Component<IAmazonCreateFunctionP
|
|
|
226
234
|
);
|
|
227
235
|
}
|
|
228
236
|
}
|
|
237
|
+
|
|
238
|
+
export const CreateLambdaFunction = Object.assign(
|
|
239
|
+
withRouter<IAmazonCreateFunctionProps & IRouterInjectedProps>(CreateLambdaFunctionComponent),
|
|
240
|
+
{ show: CreateLambdaFunctionComponent.show },
|
|
241
|
+
);
|
|
@@ -15,13 +15,14 @@ import type {
|
|
|
15
15
|
IWizardPageComponent,
|
|
16
16
|
} from '@spinnaker/core';
|
|
17
17
|
import {
|
|
18
|
+
DeckRuntimeContext,
|
|
18
19
|
FormikFormField,
|
|
19
20
|
HelpField,
|
|
20
|
-
ReactInjector,
|
|
21
21
|
ReactSelectInput,
|
|
22
22
|
SubnetReader,
|
|
23
23
|
TetheredSelect,
|
|
24
24
|
} from '@spinnaker/core';
|
|
25
|
+
|
|
25
26
|
import type { IAmazonFunctionUpsertCommand } from '../../index';
|
|
26
27
|
import { VpcReader } from '../../vpc';
|
|
27
28
|
|
|
@@ -48,6 +49,9 @@ export interface INetworkState {
|
|
|
48
49
|
export class Network
|
|
49
50
|
extends React.Component<INetworkProps, INetworkState>
|
|
50
51
|
implements IWizardPageComponent<IAmazonFunctionUpsertCommand> {
|
|
52
|
+
public static contextType = DeckRuntimeContext;
|
|
53
|
+
public declare context: React.ContextType<typeof DeckRuntimeContext>;
|
|
54
|
+
|
|
51
55
|
constructor(props: INetworkProps) {
|
|
52
56
|
super(props);
|
|
53
57
|
this.getAllVpcs();
|
|
@@ -76,12 +80,12 @@ export class Network
|
|
|
76
80
|
return {};
|
|
77
81
|
}
|
|
78
82
|
|
|
79
|
-
private getAvailableSubnets():
|
|
83
|
+
private getAvailableSubnets(): Promise<ISubnet[]> {
|
|
80
84
|
return SubnetReader.listSubnetsByProvider('aws');
|
|
81
85
|
}
|
|
82
86
|
|
|
83
|
-
private getAvailableSecurityGroups():
|
|
84
|
-
return
|
|
87
|
+
private getAvailableSecurityGroups(): Promise<ISecurityGroupsByAccountSourceData> {
|
|
88
|
+
return this.context.services.securityGroupReader.getAllSecurityGroups();
|
|
85
89
|
}
|
|
86
90
|
private makeSubnetOptions(availableSubnets: ISubnet[]): ISubnetOption[] {
|
|
87
91
|
const subOptions: ISubnetOption[] = availableSubnets.map((s) => ({ subnetId: s.id, vpcId: s.vpcId }));
|
|
@@ -4,11 +4,11 @@ import { from as observableFrom, Subject } from 'rxjs';
|
|
|
4
4
|
import { takeUntil } from 'rxjs/operators';
|
|
5
5
|
|
|
6
6
|
import type { Application, IFunction, IOverridableProps } from '@spinnaker/core';
|
|
7
|
-
import { AccountTag, CollapsibleSection, Details
|
|
7
|
+
import { AccountTag, CollapsibleSection, Details } from '@spinnaker/core';
|
|
8
8
|
|
|
9
9
|
import { FunctionActions } from './FunctionActions';
|
|
10
|
+
import { AwsServices } from '../../aws.services';
|
|
10
11
|
import type { IAmazonFunction, IAmazonFunctionSourceData } from '../../domain';
|
|
11
|
-
import { AwsReactInjector } from '../../reactShims';
|
|
12
12
|
|
|
13
13
|
export interface IFunctionFromStateParams {
|
|
14
14
|
account: string;
|
|
@@ -21,7 +21,6 @@ export interface IAmazonFunctionDetailsProps extends IOverridableProps {
|
|
|
21
21
|
functionObj: IFunction;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
@Overrides('function.details', 'aws')
|
|
25
24
|
export class AmazonFunctionDetails extends React.Component<IAmazonFunctionDetailsProps, any> {
|
|
26
25
|
private destroy$ = new Subject();
|
|
27
26
|
constructor(props: IAmazonFunctionDetailsProps) {
|
|
@@ -43,7 +42,7 @@ export class AmazonFunctionDetails extends React.Component<IAmazonFunctionDetail
|
|
|
43
42
|
|
|
44
43
|
if (functionDef) {
|
|
45
44
|
observableFrom(
|
|
46
|
-
|
|
45
|
+
AwsServices.functionReader.getFunctionDetails(
|
|
47
46
|
'aws',
|
|
48
47
|
functionFromProps.account,
|
|
49
48
|
functionFromProps.region,
|
|
@@ -73,7 +72,7 @@ export class AmazonFunctionDetails extends React.Component<IAmazonFunctionDetail
|
|
|
73
72
|
observableFrom(dataSource.ready())
|
|
74
73
|
.pipe(takeUntil(this.destroy$))
|
|
75
74
|
.subscribe(() => {
|
|
76
|
-
const dataSourceUnsubscribe = dataSource.onRefresh(
|
|
75
|
+
const dataSourceUnsubscribe = dataSource.onRefresh(() => this.extractFunction());
|
|
77
76
|
this.setState({ dataSourceUnsubscribe });
|
|
78
77
|
this.extractFunction();
|
|
79
78
|
});
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
AddEntityTagLinks,
|
|
7
7
|
ApplicationReader,
|
|
8
8
|
ConfirmationModalService,
|
|
9
|
+
DeckRuntimeContext,
|
|
9
10
|
FunctionWriter,
|
|
10
11
|
SETTINGS,
|
|
11
12
|
} from '@spinnaker/core';
|
|
@@ -26,6 +27,9 @@ export interface IFunctionActionsState {
|
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
export class FunctionActions extends React.Component<IFunctionActionsProps, IFunctionActionsState> {
|
|
30
|
+
public static contextType = DeckRuntimeContext;
|
|
31
|
+
public declare context: React.ContextType<typeof DeckRuntimeContext>;
|
|
32
|
+
|
|
29
33
|
constructor(props: IFunctionActionsProps) {
|
|
30
34
|
super(props);
|
|
31
35
|
this.state = { application: props.app };
|
|
@@ -60,7 +64,7 @@ export class FunctionActions extends React.Component<IFunctionActionsProps, IFun
|
|
|
60
64
|
const { functionDef } = this.props;
|
|
61
65
|
const { application } = this.state;
|
|
62
66
|
const FunctionModal = CreateLambdaFunction;
|
|
63
|
-
FunctionModal.show({ app: application, functionDef });
|
|
67
|
+
FunctionModal.show({ app: application, functionDef }, this.context.services);
|
|
64
68
|
};
|
|
65
69
|
|
|
66
70
|
public deleteFunction = (): void => {
|
|
@@ -11,6 +11,10 @@ export class AwsFunctionTransformer {
|
|
|
11
11
|
return normalizedFunctionDef;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
public normalizeFunctionSet(functions: IAmazonFunction[]): IAmazonFunction[] {
|
|
15
|
+
return functions.map((functionDef) => this.normalizeFunction(functionDef));
|
|
16
|
+
}
|
|
17
|
+
|
|
14
18
|
public convertFunctionForEditing = (functionDef: IAmazonFunction): IAmazonFunctionUpsertCommand => ({
|
|
15
19
|
...functionDef,
|
|
16
20
|
envVariables: functionDef.environment ? functionDef.environment.variables : {},
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { $q } from 'ngimport';
|
|
2
|
-
|
|
3
1
|
import { REST } from '@spinnaker/core';
|
|
4
2
|
|
|
5
3
|
export interface IAmazonImage {
|
|
@@ -22,9 +20,9 @@ export interface IAmazonImage {
|
|
|
22
20
|
}
|
|
23
21
|
|
|
24
22
|
export class AwsImageReader {
|
|
25
|
-
public findImages(params: { q: string; region?: string }):
|
|
23
|
+
public findImages(params: { q: string; region?: string }): Promise<IAmazonImage[]> {
|
|
26
24
|
if (!params.q || params.q.length < 3) {
|
|
27
|
-
return
|
|
25
|
+
return Promise.resolve([{ message: 'Please enter at least 3 characters...', disabled: true }]) as any;
|
|
28
26
|
}
|
|
29
27
|
|
|
30
28
|
return REST('/images/find')
|
|
@@ -33,7 +31,7 @@ export class AwsImageReader {
|
|
|
33
31
|
.catch(() => [] as IAmazonImage[]);
|
|
34
32
|
}
|
|
35
33
|
|
|
36
|
-
public getImage(amiName: string, region: string, credentials: string):
|
|
34
|
+
public getImage(amiName: string, region: string, credentials: string): Promise<IAmazonImage> {
|
|
37
35
|
return REST('/images')
|
|
38
36
|
.path(credentials, region, amiName)
|
|
39
37
|
.query({ provider: 'aws' })
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import './aws.module';
|
|
2
2
|
|
|
3
3
|
export * from './aws.settings';
|
|
4
4
|
export * from './certificates';
|
|
@@ -7,7 +7,7 @@ export * from './domain';
|
|
|
7
7
|
export * from './keyPairs';
|
|
8
8
|
export * from './loadBalancer';
|
|
9
9
|
export * from './function';
|
|
10
|
-
export * from './
|
|
10
|
+
export * from './aws.services';
|
|
11
11
|
export * from './serverGroup';
|
|
12
12
|
export * from './subnet';
|
|
13
13
|
export * from './vpc';
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
Application,
|
|
3
|
+
IMultiInstanceGroup,
|
|
4
|
+
IMultiInstanceJob,
|
|
5
|
+
ITask,
|
|
6
|
+
ProviderServiceDelegate,
|
|
7
|
+
} from '@spinnaker/core';
|
|
2
8
|
import { InstanceWriter, TaskExecutor } from '@spinnaker/core';
|
|
9
|
+
|
|
3
10
|
import type { IAmazonInstance } from '../domain';
|
|
4
11
|
|
|
5
12
|
export interface IAmazonMultiInstanceGroup extends IMultiInstanceGroup {
|
|
@@ -15,9 +22,11 @@ export class AmazonInstanceWriter extends InstanceWriter {
|
|
|
15
22
|
instanceGroups: IMultiInstanceGroup[],
|
|
16
23
|
application: Application,
|
|
17
24
|
targetGroupNames: string[],
|
|
18
|
-
|
|
25
|
+
providerServiceDelegate: ProviderServiceDelegate,
|
|
26
|
+
): Promise<ITask> {
|
|
19
27
|
const jobs = super.buildMultiInstanceJob(
|
|
20
28
|
instanceGroups,
|
|
29
|
+
providerServiceDelegate,
|
|
21
30
|
'deregisterInstancesFromLoadBalancer',
|
|
22
31
|
) as IAmazonMultiInstanceJob[];
|
|
23
32
|
jobs.forEach((job) => (job.targetGroupNames = targetGroupNames));
|
|
@@ -33,7 +42,7 @@ export class AmazonInstanceWriter extends InstanceWriter {
|
|
|
33
42
|
instance: IAmazonInstance,
|
|
34
43
|
application: Application,
|
|
35
44
|
params: any = {},
|
|
36
|
-
):
|
|
45
|
+
): Promise<ITask> {
|
|
37
46
|
params.type = 'deregisterInstancesFromLoadBalancer';
|
|
38
47
|
params.instanceIds = [instance.id];
|
|
39
48
|
params.targetGroupNames = instance.targetGroups;
|
|
@@ -51,9 +60,11 @@ export class AmazonInstanceWriter extends InstanceWriter {
|
|
|
51
60
|
instanceGroups: IMultiInstanceGroup[],
|
|
52
61
|
application: Application,
|
|
53
62
|
targetGroupNames: string[],
|
|
63
|
+
providerServiceDelegate: ProviderServiceDelegate,
|
|
54
64
|
) {
|
|
55
65
|
const jobs = super.buildMultiInstanceJob(
|
|
56
66
|
instanceGroups,
|
|
67
|
+
providerServiceDelegate,
|
|
57
68
|
'registerInstancesWithLoadBalancer',
|
|
58
69
|
) as IAmazonMultiInstanceJob[];
|
|
59
70
|
jobs.forEach((job) => (job.targetGroupNames = targetGroupNames));
|
|
@@ -69,7 +80,7 @@ export class AmazonInstanceWriter extends InstanceWriter {
|
|
|
69
80
|
instance: IAmazonInstance,
|
|
70
81
|
application: Application,
|
|
71
82
|
params: any = {},
|
|
72
|
-
):
|
|
83
|
+
): Promise<ITask> {
|
|
73
84
|
params.type = 'registerInstancesWithLoadBalancer';
|
|
74
85
|
params.instanceIds = [instance.id];
|
|
75
86
|
params.targetGroupNames = instance.targetGroups;
|
|
@@ -2,145 +2,141 @@
|
|
|
2
2
|
import { map } from 'lodash';
|
|
3
3
|
import { mockHttpClient } from 'core/api/mock/jasmine';
|
|
4
4
|
|
|
5
|
+
import { AwsInstanceTypeService } from './awsInstanceType.service';
|
|
6
|
+
|
|
5
7
|
describe('Service: InstanceType', function () {
|
|
6
8
|
beforeEach(function () {
|
|
7
|
-
|
|
8
|
-
});
|
|
9
|
+
this.awsInstanceTypeService = new AwsInstanceTypeService();
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
supportedVirtualizationTypes: ['hvm'],
|
|
140
|
-
},
|
|
141
|
-
];
|
|
142
|
-
}),
|
|
143
|
-
);
|
|
11
|
+
this.allTypes = [
|
|
12
|
+
{
|
|
13
|
+
account: 'test',
|
|
14
|
+
region: 'us-west-2',
|
|
15
|
+
name: 'm1.small',
|
|
16
|
+
defaultVCpus: 1,
|
|
17
|
+
memoryInGiB: 1,
|
|
18
|
+
supportedArchitectures: ['i386', 'x86_64'],
|
|
19
|
+
supportedVirtualizationTypes: ['hvm', 'paravirtual'],
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
account: 'test',
|
|
23
|
+
region: 'us-west-2',
|
|
24
|
+
name: 'm2.xlarge',
|
|
25
|
+
defaultVCpus: 2,
|
|
26
|
+
memoryInGiB: 17,
|
|
27
|
+
supportedArchitectures: ['x86_64'],
|
|
28
|
+
supportedVirtualizationTypes: ['hvm', 'paravirtual'],
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
account: 'test',
|
|
32
|
+
region: 'eu-west-1',
|
|
33
|
+
name: 'hs1.8xlarge',
|
|
34
|
+
defaultVCpus: 32,
|
|
35
|
+
memoryInGiB: 256,
|
|
36
|
+
supportedArchitectures: ['i386', 'x86_64'],
|
|
37
|
+
supportedVirtualizationTypes: ['hvm', 'paravirtual'],
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
account: 'test',
|
|
41
|
+
region: 'eu-west-1',
|
|
42
|
+
name: 'm2.xlarge',
|
|
43
|
+
defaultVCpus: 2,
|
|
44
|
+
memoryInGiB: 17,
|
|
45
|
+
supportedArchitectures: ['x86_64'],
|
|
46
|
+
supportedVirtualizationTypes: ['hvm', 'paravirtual'],
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
account: 'test',
|
|
50
|
+
region: 'us-east-1',
|
|
51
|
+
name: 'm4.2xlarge',
|
|
52
|
+
defaultVCpus: 8,
|
|
53
|
+
memoryInGiB: 32,
|
|
54
|
+
supportedArchitectures: ['x86_64'],
|
|
55
|
+
supportedVirtualizationTypes: ['hvm'],
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
account: 'test',
|
|
59
|
+
region: 'us-east-1',
|
|
60
|
+
name: 't2.nano',
|
|
61
|
+
defaultVCpus: 1,
|
|
62
|
+
memoryInGiB: 0,
|
|
63
|
+
supportedArchitectures: ['i386', 'x86_64'],
|
|
64
|
+
supportedVirtualizationTypes: ['hvm'],
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
account: 'test',
|
|
68
|
+
region: 'us-east-1',
|
|
69
|
+
name: 't2.micro',
|
|
70
|
+
defaultVCpus: 1,
|
|
71
|
+
memoryInGiB: 1,
|
|
72
|
+
supportedArchitectures: ['i386', 'x86_64'],
|
|
73
|
+
supportedVirtualizationTypes: ['hvm'],
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
account: 'test',
|
|
77
|
+
region: 'us-east-1',
|
|
78
|
+
name: 'm4.xlarge',
|
|
79
|
+
defaultVCpus: 4,
|
|
80
|
+
memoryInGiB: 16,
|
|
81
|
+
supportedArchitectures: ['x86_64'],
|
|
82
|
+
supportedVirtualizationTypes: ['hvm'],
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
account: 'test',
|
|
86
|
+
region: 'us-east-1',
|
|
87
|
+
name: 'm4.4xlarge',
|
|
88
|
+
defaultVCpus: 16,
|
|
89
|
+
memoryInGiB: 64,
|
|
90
|
+
supportedArchitectures: ['x86_64'],
|
|
91
|
+
supportedVirtualizationTypes: ['hvm'],
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
account: 'test',
|
|
95
|
+
region: 'us-east-1',
|
|
96
|
+
name: 't2.medium',
|
|
97
|
+
defaultVCpus: 2,
|
|
98
|
+
memoryInGiB: 4,
|
|
99
|
+
supportedArchitectures: ['i386', 'x86_64'],
|
|
100
|
+
supportedVirtualizationTypes: ['hvm'],
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
account: 'test',
|
|
104
|
+
region: 'us-east-1',
|
|
105
|
+
name: 'm4.large',
|
|
106
|
+
defaultVCpus: 2,
|
|
107
|
+
memoryInGiB: 8,
|
|
108
|
+
supportedArchitectures: ['x86_64'],
|
|
109
|
+
supportedVirtualizationTypes: ['hvm'],
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
account: 'test',
|
|
113
|
+
region: 'us-east-1',
|
|
114
|
+
name: 'm4.16xlarge',
|
|
115
|
+
defaultVCpus: 64,
|
|
116
|
+
memoryInGiB: 256,
|
|
117
|
+
supportedArchitectures: ['x86_64'],
|
|
118
|
+
supportedVirtualizationTypes: ['hvm'],
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
account: 'test',
|
|
122
|
+
region: 'us-east-1',
|
|
123
|
+
name: 'm4.10xlarge',
|
|
124
|
+
defaultVCpus: 40,
|
|
125
|
+
memoryInGiB: 160,
|
|
126
|
+
supportedArchitectures: ['x86_64'],
|
|
127
|
+
supportedVirtualizationTypes: ['hvm'],
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
account: 'test',
|
|
131
|
+
region: 'us-east-1',
|
|
132
|
+
name: 't2.loltiny',
|
|
133
|
+
defaultVCpus: 1,
|
|
134
|
+
memoryInGiB: 0,
|
|
135
|
+
supportedArchitectures: ['i386', 'x86_64'],
|
|
136
|
+
supportedVirtualizationTypes: ['hvm'],
|
|
137
|
+
},
|
|
138
|
+
];
|
|
139
|
+
});
|
|
144
140
|
|
|
145
141
|
describe('getAllTypesByRegion', function () {
|
|
146
142
|
it('returns types, indexed by region', async function () {
|
|
@@ -333,6 +329,46 @@ describe('Service: InstanceType', function () {
|
|
|
333
329
|
'hs1.8xlarge',
|
|
334
330
|
]);
|
|
335
331
|
});
|
|
332
|
+
|
|
333
|
+
it('matches architecture case-insensitively', function () {
|
|
334
|
+
const service = this.awsInstanceTypeService;
|
|
335
|
+
const armInstanceTypes = [
|
|
336
|
+
{
|
|
337
|
+
account: 'test',
|
|
338
|
+
region: 'eu-central-1',
|
|
339
|
+
name: 'm9gd.metal-48xl',
|
|
340
|
+
defaultVCpus: 192,
|
|
341
|
+
memoryInGiB: 768,
|
|
342
|
+
supportedArchitectures: ['ARM64'],
|
|
343
|
+
supportedVirtualizationTypes: ['hvm'],
|
|
344
|
+
},
|
|
345
|
+
];
|
|
346
|
+
|
|
347
|
+
expect(map(service.filterInstanceTypes(armInstanceTypes, 'hvm', true, 'arm64'), 'name')).toEqual([
|
|
348
|
+
'm9gd.metal-48xl',
|
|
349
|
+
]);
|
|
350
|
+
});
|
|
351
|
+
|
|
352
|
+
it('matches virtualization type case-insensitively when the AMI attribute is uppercase', function () {
|
|
353
|
+
const service = this.awsInstanceTypeService;
|
|
354
|
+
const armInstanceTypes = [
|
|
355
|
+
{
|
|
356
|
+
account: 'test',
|
|
357
|
+
region: 'us-west-2',
|
|
358
|
+
name: 'x8i.metal-48xl',
|
|
359
|
+
defaultVCpus: 192,
|
|
360
|
+
memoryInGiB: 3072,
|
|
361
|
+
supportedArchitectures: ['X86_64'],
|
|
362
|
+
supportedVirtualizationTypes: ['hvm'],
|
|
363
|
+
},
|
|
364
|
+
];
|
|
365
|
+
|
|
366
|
+
// AMI attributes (e.g. command.virtualizationType / command.amiArchitecture) can come back
|
|
367
|
+
// uppercase (e.g. 'HVM', 'ARM64') while the instance types API reports lowercase values.
|
|
368
|
+
expect(map(service.filterInstanceTypes(armInstanceTypes, 'HVM', true, 'X86_64'), 'name')).toEqual([
|
|
369
|
+
'x8i.metal-48xl',
|
|
370
|
+
]);
|
|
371
|
+
});
|
|
336
372
|
});
|
|
337
373
|
|
|
338
374
|
describe('isBurstingSupportedForAllTypes', function () {
|