@spinnaker/amazon 2026.2.2 → 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,89 +0,0 @@
|
|
|
1
|
-
<div modal-page>
|
|
2
|
-
<task-monitor monitor="taskMonitor"></task-monitor>
|
|
3
|
-
<form role="form" name="form">
|
|
4
|
-
<modal-close dismiss="$dismiss()"></modal-close>
|
|
5
|
-
<div class="modal-header">
|
|
6
|
-
<h4 class="modal-title">Edit Scheduled Actions for {{serverGroup.name}}</h4>
|
|
7
|
-
</div>
|
|
8
|
-
<div class="modal-body container-fluid form-horizontal">
|
|
9
|
-
<div class="form-group">
|
|
10
|
-
<div class="col-md-12">
|
|
11
|
-
<p>You must specify at least one of: Min Size, Max Size, Desired Capacity</p>
|
|
12
|
-
<p><strong>Note:</strong> CRON expressions are evaluated in UTC.</p>
|
|
13
|
-
<table class="table table-condensed packed">
|
|
14
|
-
<thead>
|
|
15
|
-
<tr>
|
|
16
|
-
<th>Recurrence (CRON)</th>
|
|
17
|
-
<th>Min Size</th>
|
|
18
|
-
<th>Max Size</th>
|
|
19
|
-
<th>Desired Capacity</th>
|
|
20
|
-
<th></th>
|
|
21
|
-
</tr>
|
|
22
|
-
</thead>
|
|
23
|
-
<tbody>
|
|
24
|
-
<tr ng-repeat="action in command.scheduledActions">
|
|
25
|
-
<td>
|
|
26
|
-
<input
|
|
27
|
-
class="form-control input-sm no-spel"
|
|
28
|
-
type="text"
|
|
29
|
-
ng-model="action.recurrence"
|
|
30
|
-
name="recurrence-{{$index}}"
|
|
31
|
-
required
|
|
32
|
-
/>
|
|
33
|
-
<!-- TODO: Add cron-validator when endpoint is fixed -->
|
|
34
|
-
<div class="form-group row slide-in" ng-if="form['recurrence-' + $index].$error.cronExpression">
|
|
35
|
-
<div class="error-message">{{cronErrors['action.recurrence.cronExpression']}}</div>
|
|
36
|
-
</div>
|
|
37
|
-
</td>
|
|
38
|
-
<td>
|
|
39
|
-
<input
|
|
40
|
-
class="form-control input-sm"
|
|
41
|
-
type="number"
|
|
42
|
-
min="0"
|
|
43
|
-
max="{{action.maxSize || Infinity}}"
|
|
44
|
-
ng-model="action.minSize"
|
|
45
|
-
/>
|
|
46
|
-
</td>
|
|
47
|
-
<td>
|
|
48
|
-
<input
|
|
49
|
-
class="form-control input-sm"
|
|
50
|
-
type="number"
|
|
51
|
-
min="{{action.minSize || 0}}"
|
|
52
|
-
ng-model="action.maxSize"
|
|
53
|
-
/>
|
|
54
|
-
</td>
|
|
55
|
-
<td>
|
|
56
|
-
<input
|
|
57
|
-
class="form-control input-sm"
|
|
58
|
-
type="number"
|
|
59
|
-
ng-model="action.desiredCapacity"
|
|
60
|
-
min="{{command.minSize || 0}}"
|
|
61
|
-
max="{{command.maxSize || Infinity}}"
|
|
62
|
-
/>
|
|
63
|
-
</td>
|
|
64
|
-
<td>
|
|
65
|
-
<a href class="sm-label" ng-click="ctrl.removeScheduledAction($index)"
|
|
66
|
-
><span class="glyphicon glyphicon-trash"></span
|
|
67
|
-
></a>
|
|
68
|
-
</td>
|
|
69
|
-
</tr>
|
|
70
|
-
</tbody>
|
|
71
|
-
<tfoot>
|
|
72
|
-
<tr>
|
|
73
|
-
<td colspan="5">
|
|
74
|
-
<button class="add-new col-md-12" ng-click="ctrl.addScheduledAction()">
|
|
75
|
-
<span class="glyphicon glyphicon-plus-sign"></span> Add new Scheduled Action
|
|
76
|
-
</button>
|
|
77
|
-
</td>
|
|
78
|
-
</tr>
|
|
79
|
-
</tfoot>
|
|
80
|
-
</table>
|
|
81
|
-
</div>
|
|
82
|
-
</div>
|
|
83
|
-
</div>
|
|
84
|
-
<div class="modal-footer">
|
|
85
|
-
<button class="btn btn-default" ng-click="ctrl.cancel()">Cancel</button>
|
|
86
|
-
<button type="submit" class="btn btn-primary" ng-disabled="form.$invalid" ng-click="ctrl.submit()">Submit</button>
|
|
87
|
-
</div>
|
|
88
|
-
</form>
|
|
89
|
-
</div>
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
import { module } from 'angular';
|
|
4
|
-
import _ from 'lodash';
|
|
5
|
-
|
|
6
|
-
import { FirewallLabels, SECURITY_GROUP_READER, SERVER_GROUP_WRITER, TaskMonitor } from '@spinnaker/core';
|
|
7
|
-
|
|
8
|
-
export const AMAZON_SERVERGROUP_DETAILS_SECURITYGROUP_EDITSECURITYGROUPS_MODAL_CONTROLLER =
|
|
9
|
-
'spinnaker.amazon.serverGroup.details.securityGroup.editSecurityGroups.modal.controller';
|
|
10
|
-
export const name = AMAZON_SERVERGROUP_DETAILS_SECURITYGROUP_EDITSECURITYGROUPS_MODAL_CONTROLLER; // for backwards compatibility
|
|
11
|
-
module(AMAZON_SERVERGROUP_DETAILS_SECURITYGROUP_EDITSECURITYGROUPS_MODAL_CONTROLLER, [
|
|
12
|
-
SERVER_GROUP_WRITER,
|
|
13
|
-
SECURITY_GROUP_READER,
|
|
14
|
-
]).controller('EditSecurityGroupsCtrl', [
|
|
15
|
-
'$scope',
|
|
16
|
-
'$uibModalInstance',
|
|
17
|
-
'serverGroupWriter',
|
|
18
|
-
'securityGroupReader',
|
|
19
|
-
'application',
|
|
20
|
-
'serverGroup',
|
|
21
|
-
'securityGroups',
|
|
22
|
-
function (
|
|
23
|
-
$scope,
|
|
24
|
-
$uibModalInstance,
|
|
25
|
-
serverGroupWriter,
|
|
26
|
-
securityGroupReader,
|
|
27
|
-
application,
|
|
28
|
-
serverGroup,
|
|
29
|
-
securityGroups,
|
|
30
|
-
) {
|
|
31
|
-
this.command = {
|
|
32
|
-
securityGroups: (securityGroups || []).slice(0).sort((a, b) => a.name.localeCompare(b.name)),
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
this.state = {
|
|
36
|
-
securityGroupsLoaded: false,
|
|
37
|
-
submitting: false,
|
|
38
|
-
verification: {},
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
this.infiniteScroll = {
|
|
42
|
-
currentItems: 20,
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
this.addMoreItems = () => (this.infiniteScroll.currentItems += 20);
|
|
46
|
-
|
|
47
|
-
this.resetCurrentItems = () => (this.infiniteScroll.currentItems = 20);
|
|
48
|
-
|
|
49
|
-
this.isValid = () => this.state.verification.verified;
|
|
50
|
-
|
|
51
|
-
securityGroupReader.getAllSecurityGroups().then((allGroups) => {
|
|
52
|
-
const account = serverGroup.account;
|
|
53
|
-
const region = serverGroup.region;
|
|
54
|
-
const vpcId = serverGroup.vpcId;
|
|
55
|
-
this.availableSecurityGroups = _.get(allGroups, [account, 'aws', region].join('.'), [])
|
|
56
|
-
.filter((group) => group.vpcId === vpcId)
|
|
57
|
-
.sort((a, b) => {
|
|
58
|
-
if (this.command.securityGroups.some((g) => g.id === a.id)) {
|
|
59
|
-
return -1;
|
|
60
|
-
}
|
|
61
|
-
if (this.command.securityGroups.some((g) => g.id === b.id)) {
|
|
62
|
-
return 1;
|
|
63
|
-
}
|
|
64
|
-
return a.name.localeCompare(b.name);
|
|
65
|
-
});
|
|
66
|
-
this.state.securityGroupsLoaded = true;
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
this.serverGroup = serverGroup;
|
|
70
|
-
|
|
71
|
-
this.taskMonitor = new TaskMonitor({
|
|
72
|
-
application: application,
|
|
73
|
-
title: `Update ${FirewallLabels.get('Firewalls')} for ${serverGroup.name}`,
|
|
74
|
-
modalInstance: $uibModalInstance,
|
|
75
|
-
onTaskComplete: () => application.serverGroups.refresh(),
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
this.submit = () => {
|
|
79
|
-
const submitMethod = () => {
|
|
80
|
-
this.state.submitting = true;
|
|
81
|
-
const hasLaunchTemplate = Boolean(serverGroup.launchTemplate);
|
|
82
|
-
return serverGroupWriter.updateSecurityGroups(
|
|
83
|
-
serverGroup,
|
|
84
|
-
this.command.securityGroups,
|
|
85
|
-
application,
|
|
86
|
-
hasLaunchTemplate,
|
|
87
|
-
);
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
this.taskMonitor.submit(submitMethod);
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
this.cancel = $uibModalInstance.dismiss;
|
|
94
|
-
},
|
|
95
|
-
]);
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
<div modal-page>
|
|
2
|
-
<task-monitor monitor="$ctrl.taskMonitor"></task-monitor>
|
|
3
|
-
<form role="form" name="form">
|
|
4
|
-
<modal-close dismiss="$dismiss()"></modal-close>
|
|
5
|
-
<div class="modal-header">
|
|
6
|
-
<h4 class="modal-title">
|
|
7
|
-
Edit <firewall-label label="Firewalls"></firewall-label> for {{$ctrl.serverGroup.name}}
|
|
8
|
-
</h4>
|
|
9
|
-
</div>
|
|
10
|
-
<div class="modal-body container-fluid form-horizontal">
|
|
11
|
-
<div class="form-group">
|
|
12
|
-
<div class="col-md-10 col-md-offset-1">
|
|
13
|
-
<ui-select
|
|
14
|
-
multiple
|
|
15
|
-
ng-model="$ctrl.command.securityGroups"
|
|
16
|
-
uis-open-close="$ctrl.resetCurrentItems()"
|
|
17
|
-
class="form-control input-sm"
|
|
18
|
-
>
|
|
19
|
-
<ui-select-match>{{$item.name}} ({{$item.id}})</ui-select-match>
|
|
20
|
-
<ui-select-choices
|
|
21
|
-
repeat="securityGroup as securityGroup in $ctrl.availableSecurityGroups | filter: $select.search | limitTo: $ctrl.infiniteScroll.currentItems"
|
|
22
|
-
infinite-scroll="$ctrl.addMoreItems()"
|
|
23
|
-
infinite-scroll-distance="4"
|
|
24
|
-
>
|
|
25
|
-
<span ng-bind-html="securityGroup.name | highlight: $select.search"></span>
|
|
26
|
-
(<span ng-bind-html="securityGroup.id | highlight: $select.search"></span>)
|
|
27
|
-
</ui-select-choices>
|
|
28
|
-
</ui-select>
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
<aws-footer
|
|
33
|
-
action="$ctrl.submit()"
|
|
34
|
-
cancel="$ctrl.cancel()"
|
|
35
|
-
is-valid="$ctrl.isValid()"
|
|
36
|
-
account="$ctrl.serverGroup.account"
|
|
37
|
-
verification="$ctrl.state.verification"
|
|
38
|
-
></aws-footer>
|
|
39
|
-
</form>
|
|
40
|
-
</div>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { module } from 'angular';
|
|
2
|
-
|
|
3
|
-
import { AMAZON_SERVERGROUP_DETAILS_ADVANCEDSETTINGS_EDITASGADVANCEDSETTINGS_MODAL_CONTROLLER } from './advancedSettings/editAsgAdvancedSettings.modal.controller';
|
|
4
|
-
import { AMAZON_SERVERGROUP_DETAILS_ROLLBACK_ROLLBACKSERVERGROUP_CONTROLLER } from './rollback/rollbackServerGroup.controller';
|
|
5
|
-
import { SCALING_POLICY_MODULE } from './scalingPolicy/scalingPolicy.module';
|
|
6
|
-
import { AMAZON_SERVERGROUP_DETAILS_SCALINGPROCESSES_MODIFYSCALINGPROCESSES_CONTROLLER } from './scalingProcesses/modifyScalingProcesses.controller';
|
|
7
|
-
import { AMAZON_SERVERGROUP_DETAILS_SCHEDULEDACTION_EDITSCHEDULEDACTIONS_MODAL_CONTROLLER } from './scheduledAction/editScheduledActions.modal.controller';
|
|
8
|
-
import { AMAZON_SERVERGROUP_DETAILS_SECURITYGROUP_EDITSECURITYGROUPS_MODAL_CONTROLLER } from './securityGroup/editSecurityGroups.modal.controller';
|
|
9
|
-
|
|
10
|
-
export const SERVER_GROUP_DETAILS_MODULE = 'spinnaker.amazon.serverGroup.details';
|
|
11
|
-
module(SERVER_GROUP_DETAILS_MODULE, [
|
|
12
|
-
SCALING_POLICY_MODULE,
|
|
13
|
-
AMAZON_SERVERGROUP_DETAILS_SECURITYGROUP_EDITSECURITYGROUPS_MODAL_CONTROLLER,
|
|
14
|
-
AMAZON_SERVERGROUP_DETAILS_SCALINGPROCESSES_MODIFYSCALINGPROCESSES_CONTROLLER,
|
|
15
|
-
AMAZON_SERVERGROUP_DETAILS_SCHEDULEDACTION_EDITSCHEDULEDACTIONS_MODAL_CONTROLLER,
|
|
16
|
-
AMAZON_SERVERGROUP_DETAILS_ADVANCEDSETTINGS_EDITASGADVANCEDSETTINGS_MODAL_CONTROLLER,
|
|
17
|
-
AMAZON_SERVERGROUP_DETAILS_ROLLBACK_ROLLBACKSERVERGROUP_CONTROLLER,
|
|
18
|
-
]);
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import type { IQService, IRootScopeService, IScope } from 'angular';
|
|
2
|
-
import { mock } from 'angular';
|
|
3
|
-
|
|
4
|
-
import type { IAmazonServerGroup, IScalingPolicyAlarmView, IStepAdjustment } from '../domain';
|
|
5
|
-
import type { AwsServerGroupTransformer } from './serverGroup.transformer';
|
|
6
|
-
import { AWS_SERVER_GROUP_TRANSFORMER } from './serverGroup.transformer';
|
|
7
|
-
import { VpcReader } from '../vpc/VpcReader';
|
|
8
|
-
|
|
9
|
-
describe('awsServerGroupTransformer', () => {
|
|
10
|
-
let transformer: AwsServerGroupTransformer, $q: IQService, $scope: IScope;
|
|
11
|
-
|
|
12
|
-
beforeEach(mock.module(AWS_SERVER_GROUP_TRANSFORMER));
|
|
13
|
-
|
|
14
|
-
beforeEach(
|
|
15
|
-
mock.inject(
|
|
16
|
-
(_awsServerGroupTransformer_: AwsServerGroupTransformer, _$q_: IQService, $rootScope: IRootScopeService) => {
|
|
17
|
-
transformer = _awsServerGroupTransformer_;
|
|
18
|
-
$q = _$q_;
|
|
19
|
-
$scope = $rootScope.$new();
|
|
20
|
-
},
|
|
21
|
-
),
|
|
22
|
-
);
|
|
23
|
-
|
|
24
|
-
describe('normalize server group', () => {
|
|
25
|
-
beforeEach(() => {
|
|
26
|
-
spyOn(VpcReader, 'listVpcs').and.returnValue(
|
|
27
|
-
$q.when([{ account: 'test', region: 'us-east-1', id: 'vpc-1', name: 'main' } as any]),
|
|
28
|
-
);
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
it('adds vpc name to server group', () => {
|
|
32
|
-
const serverGroup = {
|
|
33
|
-
account: 'test',
|
|
34
|
-
region: 'us-east-1',
|
|
35
|
-
vpcId: 'vpc-1',
|
|
36
|
-
instances: [],
|
|
37
|
-
} as IAmazonServerGroup;
|
|
38
|
-
transformer.normalizeServerGroup(serverGroup);
|
|
39
|
-
$scope.$digest();
|
|
40
|
-
expect(serverGroup.vpcName).toBe('main');
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
it('adds empty vpc name when no vpcId found on server group', () => {
|
|
44
|
-
const serverGroup = {
|
|
45
|
-
account: 'test',
|
|
46
|
-
region: 'us-east-1',
|
|
47
|
-
instances: [],
|
|
48
|
-
} as IAmazonServerGroup;
|
|
49
|
-
transformer.normalizeServerGroup(serverGroup);
|
|
50
|
-
$scope.$digest();
|
|
51
|
-
expect(serverGroup.vpcName).toBe('');
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
describe('command transforms', () => {
|
|
56
|
-
it('sets subnetType property to empty string when null', () => {
|
|
57
|
-
const command: any = {
|
|
58
|
-
viewState: {
|
|
59
|
-
mode: 'create',
|
|
60
|
-
useAllImageSelection: true,
|
|
61
|
-
allImageSelection: 'something-packagebase',
|
|
62
|
-
},
|
|
63
|
-
subnetType: null,
|
|
64
|
-
application: { name: 'theApp' },
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
let transformed = transformer.convertServerGroupCommandToDeployConfiguration(command);
|
|
68
|
-
expect(transformed.subnetType).toBe('');
|
|
69
|
-
|
|
70
|
-
command.subnetType = 'internal';
|
|
71
|
-
transformed = transformer.convertServerGroupCommandToDeployConfiguration(command);
|
|
72
|
-
expect(transformed.subnetType).toBe('internal');
|
|
73
|
-
});
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
describe('normalize server group details', () => {
|
|
77
|
-
it('adds appropriate comparator to alarm', () => {
|
|
78
|
-
const serverGroup = {
|
|
79
|
-
scalingPolicies: [
|
|
80
|
-
{
|
|
81
|
-
alarms: [
|
|
82
|
-
{ comparisonOperator: 'LessThanThreshold' },
|
|
83
|
-
{ comparisonOperator: 'GreaterThanThreshold' },
|
|
84
|
-
{ comparisonOperator: 'LessThanOrEqualToThreshold' },
|
|
85
|
-
{ comparisonOperator: 'GreaterThanOrEqualToThreshold' },
|
|
86
|
-
{ comparisonOperator: 'WhatIsThis' },
|
|
87
|
-
],
|
|
88
|
-
},
|
|
89
|
-
],
|
|
90
|
-
} as IAmazonServerGroup;
|
|
91
|
-
transformer.normalizeServerGroupDetails(serverGroup);
|
|
92
|
-
const alarms = serverGroup.scalingPolicies[0].alarms as IScalingPolicyAlarmView[];
|
|
93
|
-
expect(alarms.map((a) => a.comparator)).toEqual(['<', '>', '≤', '≥', undefined]);
|
|
94
|
-
});
|
|
95
|
-
|
|
96
|
-
it('adds operator, absAdjustment to simple policies', () => {
|
|
97
|
-
const serverGroup = {
|
|
98
|
-
scalingPolicies: [{ scalingAdjustment: 10 }, { scalingAdjustment: 0 }, { scalingAdjustment: -5 }],
|
|
99
|
-
} as IAmazonServerGroup;
|
|
100
|
-
const transformed = transformer.normalizeServerGroupDetails(serverGroup);
|
|
101
|
-
const policies = transformed.scalingPolicies;
|
|
102
|
-
expect(policies.map((a) => a.absAdjustment)).toEqual([10, 0, 5]);
|
|
103
|
-
expect(policies.map((a) => a.operator)).toEqual(['increase', 'increase', 'decrease']);
|
|
104
|
-
});
|
|
105
|
-
|
|
106
|
-
it('adds operator, absAdjustment to step policies', () => {
|
|
107
|
-
const serverGroup = {
|
|
108
|
-
scalingPolicies: [
|
|
109
|
-
{
|
|
110
|
-
stepAdjustments: [
|
|
111
|
-
{ scalingAdjustment: 10, metricIntervalLowerBound: 0 },
|
|
112
|
-
{ scalingAdjustment: 0, metricIntervalLowerBound: 6 },
|
|
113
|
-
{ scalingAdjustment: -5, metricIntervalLowerBound: 11 },
|
|
114
|
-
],
|
|
115
|
-
},
|
|
116
|
-
],
|
|
117
|
-
} as IAmazonServerGroup;
|
|
118
|
-
const transformed = transformer.normalizeServerGroupDetails(serverGroup);
|
|
119
|
-
const steps = transformed.scalingPolicies[0].stepAdjustments;
|
|
120
|
-
expect(steps.map((a) => a.absAdjustment)).toEqual([10, 0, 5]);
|
|
121
|
-
expect(steps.map((a) => a.operator)).toEqual(['increase', 'increase', 'decrease']);
|
|
122
|
-
});
|
|
123
|
-
|
|
124
|
-
describe('sorting step adjustments', () => {
|
|
125
|
-
beforeEach(function () {
|
|
126
|
-
this.test = (steps: IStepAdjustment[], expected: any[]) => {
|
|
127
|
-
const serverGroup = {
|
|
128
|
-
scalingPolicies: [
|
|
129
|
-
{
|
|
130
|
-
stepAdjustments: steps,
|
|
131
|
-
},
|
|
132
|
-
],
|
|
133
|
-
} as IAmazonServerGroup;
|
|
134
|
-
transformer.normalizeServerGroupDetails(serverGroup);
|
|
135
|
-
const check = serverGroup.scalingPolicies[0].stepAdjustments;
|
|
136
|
-
expect(check.map((s) => s.scalingAdjustment)).toEqual(expected);
|
|
137
|
-
};
|
|
138
|
-
});
|
|
139
|
-
|
|
140
|
-
it('reverse sorts step adjustments by lower bound when none have an upper bound defined', function () {
|
|
141
|
-
this.test(
|
|
142
|
-
[
|
|
143
|
-
{ scalingAdjustment: 10, metricIntervalLowerBound: 3 },
|
|
144
|
-
{ scalingAdjustment: 0, metricIntervalLowerBound: 5 },
|
|
145
|
-
{ scalingAdjustment: -5, metricIntervalLowerBound: 1 },
|
|
146
|
-
],
|
|
147
|
-
[-5, 10, 0],
|
|
148
|
-
);
|
|
149
|
-
});
|
|
150
|
-
|
|
151
|
-
it('reverse sorts step adjustments by lower bound when some do not have an upper bound defined', function () {
|
|
152
|
-
this.test(
|
|
153
|
-
[
|
|
154
|
-
{ id: 1, scalingAdjustment: 10, metricIntervalLowerBound: 3, metricIntervalUpperBound: 5 },
|
|
155
|
-
{ id: 2, scalingAdjustment: 0, metricIntervalLowerBound: 5 },
|
|
156
|
-
{ id: 3, scalingAdjustment: -5, metricIntervalLowerBound: 1, metricIntervalUpperBound: 3 },
|
|
157
|
-
],
|
|
158
|
-
[-5, 10, 0],
|
|
159
|
-
);
|
|
160
|
-
});
|
|
161
|
-
|
|
162
|
-
it('reverse sorts step adjustments by upper bound when all have an upper bound defined', function () {
|
|
163
|
-
this.test(
|
|
164
|
-
[
|
|
165
|
-
{ id: 1, scalingAdjustment: 10, metricIntervalLowerBound: 3, metricIntervalUpperBound: 5 },
|
|
166
|
-
{ id: 2, scalingAdjustment: 0, metricIntervalLowerBound: 5, metricIntervalUpperBound: 9 },
|
|
167
|
-
{ id: 3, scalingAdjustment: -5, metricIntervalLowerBound: 1, metricIntervalUpperBound: 0 },
|
|
168
|
-
],
|
|
169
|
-
[0, 10, -5],
|
|
170
|
-
);
|
|
171
|
-
});
|
|
172
|
-
|
|
173
|
-
it('verify float adjustments work within the range', function () {
|
|
174
|
-
this.test(
|
|
175
|
-
[
|
|
176
|
-
{ id: 1, scalingAdjustment: 10, metricIntervalLowerBound: 3.5, metricIntervalUpperBound: 5.5 },
|
|
177
|
-
{ id: 2, scalingAdjustment: 0, metricIntervalLowerBound: 5.5 },
|
|
178
|
-
{ id: 3, scalingAdjustment: -5, metricIntervalLowerBound: 1.2, metricIntervalUpperBound: 3.5 },
|
|
179
|
-
],
|
|
180
|
-
[-5, 10, 0],
|
|
181
|
-
);
|
|
182
|
-
});
|
|
183
|
-
});
|
|
184
|
-
});
|
|
185
|
-
});
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { mock } from 'angular';
|
|
2
|
-
import { render, shallow } from 'enzyme';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
|
|
5
|
-
import type { Application } from '@spinnaker/core';
|
|
6
|
-
import { ApplicationModelBuilder } from '@spinnaker/core';
|
|
7
|
-
import { mockServerGroupDataSourceConfig, mockSubnet } from '@spinnaker/mocks';
|
|
8
|
-
|
|
9
|
-
import { SubnetSelectInput } from './SubnetSelectInput';
|
|
10
|
-
|
|
11
|
-
describe('SubnetSelectInput', () => {
|
|
12
|
-
let application: Application;
|
|
13
|
-
|
|
14
|
-
beforeEach(
|
|
15
|
-
mock.inject(() => {
|
|
16
|
-
application = ApplicationModelBuilder.createApplicationForTests('testapp', mockServerGroupDataSourceConfig);
|
|
17
|
-
}),
|
|
18
|
-
);
|
|
19
|
-
|
|
20
|
-
// Selectable state
|
|
21
|
-
const INPUT_PROPS = {
|
|
22
|
-
value: 'test',
|
|
23
|
-
onChange: () => {},
|
|
24
|
-
application,
|
|
25
|
-
readOnly: false,
|
|
26
|
-
hideClassic: false,
|
|
27
|
-
subnets: [mockSubnet],
|
|
28
|
-
region: 'us-east-1',
|
|
29
|
-
credentials: 'test_credentials',
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
it('should render an input', () => {
|
|
33
|
-
const wrapper = shallow(<SubnetSelectInput {...INPUT_PROPS} />);
|
|
34
|
-
const input = wrapper.find('SelectInput');
|
|
35
|
-
const paragraph = wrapper.find('p');
|
|
36
|
-
expect(input.length).toBeTruthy();
|
|
37
|
-
expect(paragraph.length).toBeFalsy();
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
it('should generate options', () => {
|
|
41
|
-
const wrapper = render(<SubnetSelectInput {...INPUT_PROPS} />);
|
|
42
|
-
expect(wrapper.find('option').length).toBeGreaterThan(0);
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
describe('SubnetSelectInput read only', () => {
|
|
47
|
-
let application: Application;
|
|
48
|
-
|
|
49
|
-
beforeEach(
|
|
50
|
-
mock.inject(() => {
|
|
51
|
-
application = ApplicationModelBuilder.createApplicationForTests('testapp', mockServerGroupDataSourceConfig);
|
|
52
|
-
}),
|
|
53
|
-
);
|
|
54
|
-
|
|
55
|
-
// Read only state, with value
|
|
56
|
-
const READ_ONLY_PROPS = {
|
|
57
|
-
value: 'test',
|
|
58
|
-
onChange: () => {},
|
|
59
|
-
application,
|
|
60
|
-
readOnly: true,
|
|
61
|
-
hideClassic: false,
|
|
62
|
-
subnets: [mockSubnet],
|
|
63
|
-
region: 'us-east-1',
|
|
64
|
-
credentials: 'test_credentials',
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
// Read only state with null value
|
|
68
|
-
const NULL_VALUE_PROPS = {
|
|
69
|
-
...READ_ONLY_PROPS,
|
|
70
|
-
value: '',
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
it('should render the value', () => {
|
|
74
|
-
const wrapper = shallow(<SubnetSelectInput {...READ_ONLY_PROPS} />);
|
|
75
|
-
|
|
76
|
-
const input = wrapper.find('SelectInput');
|
|
77
|
-
const paragraph = wrapper.find('p');
|
|
78
|
-
expect(input.length).toBeFalsy();
|
|
79
|
-
expect(paragraph.length).toBeTruthy();
|
|
80
|
-
expect(paragraph.text()).toEqual(READ_ONLY_PROPS.value);
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
it('should render the default value', () => {
|
|
84
|
-
const wrapper = shallow(<SubnetSelectInput {...NULL_VALUE_PROPS} />);
|
|
85
|
-
const input = wrapper.find('SelectInput');
|
|
86
|
-
const paragraph = wrapper.find('p');
|
|
87
|
-
expect(input.length).toBeFalsy();
|
|
88
|
-
expect(paragraph.length).toBeTruthy();
|
|
89
|
-
expect(paragraph.text()).toEqual('None (EC2 Classic)');
|
|
90
|
-
});
|
|
91
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { module } from 'angular';
|
|
2
|
-
|
|
3
|
-
import type { IServerGroup } from '@spinnaker/core';
|
|
4
|
-
|
|
5
|
-
export class AwsSubnetRenderer {
|
|
6
|
-
public render(serverGroup: IServerGroup): string {
|
|
7
|
-
return serverGroup.subnetType;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const SUBNET_RENDERER = 'spinnaker.amazon.subnet.renderer';
|
|
12
|
-
module(SUBNET_RENDERER, []).service('awsSubnetRenderer', AwsSubnetRenderer);
|
package/src/vpc/vpc.module.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { module } from 'angular';
|
|
2
|
-
import { react2angular } from 'react2angular';
|
|
3
|
-
|
|
4
|
-
import { withErrorBoundary } from '@spinnaker/core';
|
|
5
|
-
|
|
6
|
-
import { VpcTag } from './VpcTag';
|
|
7
|
-
|
|
8
|
-
export const VPC_MODULE = 'spinnaker.amazon.vpc';
|
|
9
|
-
module(VPC_MODULE, []).component('vpcTag', react2angular(withErrorBoundary(VpcTag, 'vpcTag'), ['vpcId']));
|