@spinnaker/google 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/autoHealingPolicy/GceAutoHealingPolicyEditor.d.ts +24 -0
- package/dist/autoHealingPolicy/index.d.ts +1 -0
- package/dist/autoscalingPolicy/GceAutoscalingPolicyEditor.d.ts +8 -0
- package/dist/autoscalingPolicy/GceAutoscalingPolicyWriter.d.ts +25 -0
- package/dist/autoscalingPolicy/IGceAutoscalingPolicy.d.ts +33 -2
- package/dist/autoscalingPolicy/index.d.ts +2 -0
- package/dist/cache/cacheConfigurer.service.d.ts +2 -2
- package/dist/certificate/certificate.reader.d.ts +1 -2
- package/dist/common/xpnNaming.gce.service.d.ts +4 -2
- package/dist/domain/autoHealingPolicy.d.ts +0 -5
- package/dist/domain/serverGroup.d.ts +24 -0
- package/dist/gce.module.d.ts +3 -1
- package/dist/healthCheck/healthCheck.read.service.d.ts +1 -2
- package/dist/image/ImageSelect.d.ts +0 -1
- package/dist/image/image.reader.d.ts +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/instance/custom/customInstanceBuilder.gce.service.d.ts +17 -2
- package/dist/instance/details/GceInstanceDetails.d.ts +24 -0
- package/dist/instance/gceInstanceType.service.d.ts +3 -2
- package/dist/instance/gceMultiInstanceTask.transformer.d.ts +3 -2
- package/dist/loadBalancer/configure/choice/GceLoadBalancerChoiceModal.d.ts +34 -0
- package/dist/loadBalancer/configure/common/GceProxyLoadBalancerEditor.d.ts +36 -0
- package/dist/loadBalancer/configure/common/GceProxyLoadBalancerModal.d.ts +36 -0
- package/dist/loadBalancer/configure/common/gceLoadBalancerData.d.ts +47 -0
- package/dist/loadBalancer/configure/common/gceLoadBalancerModels.d.ts +106 -0
- package/dist/loadBalancer/configure/common/gceLoadBalancerSubmission.d.ts +10 -0
- package/dist/loadBalancer/configure/common/index.d.ts +4 -0
- package/dist/loadBalancer/configure/common/useGceLoadBalancerData.d.ts +5 -0
- package/dist/loadBalancer/configure/http/GceHttpLoadBalancerEditor.d.ts +33 -0
- package/dist/loadBalancer/configure/http/GceHttpLoadBalancerListenerEditor.d.ts +12 -0
- package/dist/loadBalancer/configure/http/GceHttpLoadBalancerModal.d.ts +37 -0
- package/dist/loadBalancer/configure/http/GceHttpLoadBalancerResourceEditors.d.ts +18 -0
- package/dist/loadBalancer/configure/http/GceHttpLoadBalancerRoutingEditor.d.ts +16 -0
- package/dist/loadBalancer/configure/network/GceNetworkLoadBalancerEditor.d.ts +30 -0
- package/dist/loadBalancer/configure/network/GceNetworkLoadBalancerModal.d.ts +58 -0
- package/dist/loadBalancer/details/gceLoadBalancerDetails.d.ts +36 -0
- package/dist/loadBalancer/httpLoadBalancerUtils.service.d.ts +0 -1
- package/dist/loadBalancer/loadBalancer.setTransformer.d.ts +1 -5
- package/dist/loadBalancer/loadBalancer.transformer.d.ts +3 -2
- package/dist/pipeline/stages/bake/gceBakeStage.d.ts +2 -2
- package/dist/pipeline/stages/cloneServerGroup/gceCloneServerGroupStage.d.ts +1 -2
- package/dist/pipeline/stages/destroyAsg/gceDestroyAsgStage.d.ts +1 -2
- package/dist/pipeline/stages/disableAsg/gceDisableAsgStage.d.ts +1 -2
- package/dist/pipeline/stages/disableCluster/gceDisableClusterStage.d.ts +1 -2
- package/dist/pipeline/stages/enableAsg/gceEnableAsgStage.d.ts +1 -2
- package/dist/pipeline/stages/findAmi/gceFindAmiStage.d.ts +1 -2
- package/dist/pipeline/stages/findImageFromTags/gceFindImageFromTagsStage.d.ts +1 -2
- package/dist/pipeline/stages/googleStageConfig.d.ts +40 -0
- package/dist/pipeline/stages/resizeAsg/gceResizeAsgStage.d.ts +1 -2
- package/dist/pipeline/stages/scaleDownCluster/gceScaleDownClusterStage.d.ts +1 -2
- package/dist/pipeline/stages/shrinkCluster/gceShrinkClusterStage.d.ts +1 -2
- package/dist/pipeline/stages/tagImage/gceTagImageStage.d.ts +1 -2
- package/dist/securityGroup/configure/GceSecurityGroupModal.d.ts +50 -0
- package/dist/securityGroup/details/GceSecurityGroupDetails.d.ts +12 -0
- package/dist/securityGroup/securityGroup.reader.d.ts +3 -2
- package/dist/securityGroup/securityGroup.transformer.d.ts +5 -2
- package/dist/serverGroup/configure/serverGroupCommandBuilder.service.d.ts +6 -2
- package/dist/serverGroup/configure/serverGroupConfiguration.service.d.ts +8 -0
- package/dist/serverGroup/configure/wizard/GceCloneServerGroupModal.d.ts +49 -0
- package/dist/serverGroup/configure/wizard/GceServerGroupWizard.helpers.d.ts +4 -0
- package/dist/serverGroup/configure/wizard/GceServerGroupWizard.types.d.ts +113 -0
- package/dist/serverGroup/configure/wizard/GceServerGroupWizardAdapter.d.ts +16 -0
- package/dist/serverGroup/configure/wizard/GceServerGroupWizardPage.d.ts +20 -0
- package/dist/serverGroup/configure/wizard/customInstance/GceCustomInstanceBuilder.d.ts +3 -0
- package/dist/serverGroup/configure/wizard/hiddenMetadataKeys.value.d.ts +1 -2
- package/dist/serverGroup/configure/wizard/index.d.ts +5 -0
- package/dist/serverGroup/configure/wizard/pages/AdvancedSettings.d.ts +20 -0
- package/dist/serverGroup/configure/wizard/pages/GceServerGroupFirewalls.d.ts +10 -0
- package/dist/serverGroup/configure/wizard/pages/GceServerGroupLoadBalancers.d.ts +21 -0
- package/dist/serverGroup/configure/wizard/pages/Policies.d.ts +14 -0
- package/dist/serverGroup/configure/wizard/pages/ServerGroupBasicSettings.d.ts +13 -0
- package/dist/serverGroup/configure/wizard/pages/ServerGroupCapacity.d.ts +35 -0
- package/dist/serverGroup/configure/wizard/pages/ServerGroupImageSettings.d.ts +11 -0
- package/dist/serverGroup/configure/wizard/pages/ServerGroupInstanceType.d.ts +29 -0
- package/dist/serverGroup/configure/wizard/pages/index.d.ts +8 -0
- package/dist/serverGroup/configure/wizard/securityGroups/tagManager.service.d.ts +17 -2
- package/dist/serverGroup/configure/wizard/zones/GceInstanceFlexibilityConfigurer.d.ts +19 -0
- package/dist/serverGroup/details/GceInstanceFlexibilityPolicyDetails.d.ts +6 -0
- package/dist/serverGroup/details/autoHealingPolicy/GceAutoHealingPolicyDetails.d.ts +11 -0
- package/dist/serverGroup/details/autoHealingPolicy/index.d.ts +2 -0
- package/dist/serverGroup/details/autoHealingPolicy/modal/GceUpsertAutoHealingPolicyModal.d.ts +21 -0
- package/dist/serverGroup/details/autoscalingPolicy/GceAutoscalingPolicyDetails.d.ts +12 -0
- package/dist/serverGroup/details/autoscalingPolicy/index.d.ts +2 -0
- package/dist/serverGroup/details/autoscalingPolicy/modal/GceUpsertAutoscalingPolicyModal.d.ts +26 -0
- package/dist/serverGroup/details/gceServerGroupDetails.d.ts +32 -0
- package/dist/serverGroup/details/resize/GceResizeServerGroupModal.d.ts +60 -0
- package/dist/serverGroup/details/rollback/GceRollbackServerGroupModal.d.ts +44 -0
- package/dist/serverGroup/details/stateful/StatefulMIGService.d.ts +2 -2
- package/dist/serverGroup/serverGroup.transformer.d.ts +2 -2
- package/dist/subnet/subnet.renderer.d.ts +4 -2
- package/dist/validation/ApplicationNameValidator.d.ts +6 -0
- package/package.json +3 -12
- package/src/autoHealingPolicy/GceAutoHealingPolicyEditor.spec.tsx +133 -0
- package/src/autoHealingPolicy/GceAutoHealingPolicyEditor.tsx +143 -0
- package/src/autoHealingPolicy/index.ts +1 -0
- package/src/autoscalingPolicy/GceAutoscalingPolicyEditor.spec.tsx +241 -0
- package/src/autoscalingPolicy/GceAutoscalingPolicyEditor.tsx +479 -0
- package/src/autoscalingPolicy/GceAutoscalingPolicyWriter.spec.ts +135 -0
- package/src/autoscalingPolicy/GceAutoscalingPolicyWriter.ts +101 -0
- package/src/autoscalingPolicy/IGceAutoscalingPolicy.ts +37 -2
- package/src/autoscalingPolicy/index.ts +2 -0
- package/src/cache/cacheConfigurer.service.js +30 -22
- package/src/certificate/certificate.reader.ts +1 -6
- package/src/common/xpnNaming.gce.service.js +4 -12
- package/src/domain/autoHealingPolicy.ts +0 -6
- package/src/domain/serverGroup.ts +25 -0
- package/src/gce.module.spec.ts +638 -0
- package/src/gce.module.ts +106 -126
- package/src/healthCheck/healthCheck.read.service.ts +1 -5
- package/src/help/gce.help.ts +3 -7
- package/src/image/ImageSelect.tsx +0 -15
- package/src/image/image.reader.spec.ts +10 -0
- package/src/image/image.reader.ts +3 -3
- package/src/index.ts +1 -1
- package/src/instance/custom/customInstanceBuilder.gce.service.js +123 -141
- package/src/instance/details/GceInstanceDetails.spec.tsx +354 -0
- package/src/instance/details/GceInstanceDetails.tsx +419 -0
- package/src/instance/gceInstanceType.service.js +6 -11
- package/src/instance/gceMultiInstanceTask.transformer.js +11 -23
- package/src/loadBalancer/configure/choice/GceLoadBalancerChoiceModal.less +17 -0
- package/src/loadBalancer/configure/choice/GceLoadBalancerChoiceModal.spec.tsx +279 -0
- package/src/loadBalancer/configure/choice/GceLoadBalancerChoiceModal.tsx +169 -0
- package/src/loadBalancer/configure/common/GceProxyLoadBalancerEditor.spec.tsx +353 -0
- package/src/loadBalancer/configure/common/GceProxyLoadBalancerEditor.tsx +503 -0
- package/src/loadBalancer/configure/common/GceProxyLoadBalancerModal.spec.tsx +313 -0
- package/src/loadBalancer/configure/common/GceProxyLoadBalancerModal.tsx +241 -0
- package/src/loadBalancer/configure/common/gceLoadBalancerData.spec.ts +117 -0
- package/src/loadBalancer/configure/common/gceLoadBalancerData.ts +191 -0
- package/src/loadBalancer/configure/common/gceLoadBalancerModels.spec.ts +409 -0
- package/src/loadBalancer/configure/common/gceLoadBalancerModels.ts +534 -0
- package/src/loadBalancer/configure/common/gceLoadBalancerSubmission.spec.ts +297 -0
- package/src/loadBalancer/configure/common/gceLoadBalancerSubmission.ts +127 -0
- package/src/loadBalancer/configure/common/index.spec.ts +17 -0
- package/src/loadBalancer/configure/common/index.ts +4 -0
- package/src/loadBalancer/configure/common/useGceLoadBalancerData.spec.tsx +78 -0
- package/src/loadBalancer/configure/common/useGceLoadBalancerData.ts +34 -0
- package/src/loadBalancer/configure/http/GceHttpLoadBalancerEditor.spec.tsx +472 -0
- package/src/loadBalancer/configure/http/GceHttpLoadBalancerEditor.tsx +586 -0
- package/src/loadBalancer/configure/http/GceHttpLoadBalancerListenerEditor.spec.tsx +94 -0
- package/src/loadBalancer/configure/http/GceHttpLoadBalancerListenerEditor.tsx +153 -0
- package/src/loadBalancer/configure/http/GceHttpLoadBalancerModal.spec.tsx +326 -0
- package/src/loadBalancer/configure/http/GceHttpLoadBalancerModal.tsx +217 -0
- package/src/loadBalancer/configure/http/GceHttpLoadBalancerResourceEditors.spec.tsx +86 -0
- package/src/loadBalancer/configure/http/GceHttpLoadBalancerResourceEditors.tsx +284 -0
- package/src/loadBalancer/configure/http/GceHttpLoadBalancerRoutingEditor.spec.tsx +82 -0
- package/src/loadBalancer/configure/http/GceHttpLoadBalancerRoutingEditor.tsx +174 -0
- package/src/loadBalancer/configure/http/httpLoadBalancerWizard.component.less +31 -12
- package/src/loadBalancer/configure/network/GceNetworkLoadBalancerEditor.spec.tsx +175 -0
- package/src/loadBalancer/configure/network/GceNetworkLoadBalancerEditor.tsx +315 -0
- package/src/loadBalancer/configure/network/GceNetworkLoadBalancerModal.spec.tsx +303 -0
- package/src/loadBalancer/configure/network/GceNetworkLoadBalancerModal.tsx +368 -0
- package/src/loadBalancer/details/gceLoadBalancerDetails.spec.tsx +65 -0
- package/src/loadBalancer/details/gceLoadBalancerDetails.tsx +456 -0
- package/src/loadBalancer/httpLoadBalancerUtils.service.ts +3 -6
- package/src/loadBalancer/loadBalancer.setTransformer.ts +3 -12
- package/src/loadBalancer/loadBalancer.transformer.js +5 -9
- package/src/pipeline/stages/bake/gceBakeStage.js +362 -155
- package/src/pipeline/stages/cloneServerGroup/gceCloneServerGroupStage.js +17 -83
- package/src/pipeline/stages/destroyAsg/gceDestroyAsgStage.js +24 -62
- package/src/pipeline/stages/disableAsg/gceDisableAsgStage.js +22 -68
- package/src/pipeline/stages/disableCluster/gceDisableClusterStage.js +21 -79
- package/src/pipeline/stages/enableAsg/gceEnableAsgStage.js +17 -65
- package/src/pipeline/stages/findAmi/gceFindAmiStage.js +17 -79
- package/src/pipeline/stages/findImageFromTags/gceFindImageFromTagsStage.js +121 -35
- package/src/pipeline/stages/googleStageConfig.js +580 -0
- package/src/pipeline/stages/googleStageConfig.spec.js +44 -0
- package/src/pipeline/stages/resizeAsg/gceResizeAsgStage.js +26 -125
- package/src/pipeline/stages/scaleDownCluster/gceScaleDownClusterStage.js +24 -78
- package/src/pipeline/stages/shrinkCluster/gceShrinkClusterStage.js +19 -73
- package/src/pipeline/stages/tagImage/gceTagImageStage.js +165 -36
- package/src/securityGroup/configure/GceSecurityGroupModal.spec.tsx +381 -0
- package/src/securityGroup/configure/GceSecurityGroupModal.tsx +543 -0
- package/src/securityGroup/details/GceSecurityGroupDetails.spec.tsx +232 -0
- package/src/securityGroup/details/GceSecurityGroupDetails.tsx +261 -0
- package/src/securityGroup/securityGroup.reader.js +3 -11
- package/src/securityGroup/securityGroup.transformer.js +8 -15
- package/src/serverGroup/configure/serverGroupCommandBuilder.service.js +563 -556
- package/src/serverGroup/configure/serverGroupCommandBuilder.service.spec.js +238 -0
- package/src/serverGroup/configure/serverGroupConfiguration.service.js +621 -653
- package/src/serverGroup/configure/serverGroupConfiguration.service.spec.js +9 -0
- package/src/serverGroup/configure/wizard/GceCloneServerGroupModal.spec.tsx +1228 -0
- package/src/serverGroup/configure/wizard/GceCloneServerGroupModal.tsx +824 -0
- package/src/serverGroup/configure/wizard/GceServerGroupWizard.helpers.ts +51 -0
- package/src/serverGroup/configure/wizard/GceServerGroupWizard.types.ts +176 -0
- package/src/serverGroup/configure/wizard/GceServerGroupWizardAdapter.ts +115 -0
- package/src/serverGroup/configure/wizard/GceServerGroupWizardPage.spec.tsx +460 -0
- package/src/serverGroup/configure/wizard/GceServerGroupWizardPage.tsx +285 -0
- package/src/serverGroup/configure/wizard/customInstance/GceCustomInstanceBuilder.spec.tsx +125 -0
- package/src/serverGroup/configure/wizard/customInstance/GceCustomInstanceBuilder.tsx +127 -0
- package/src/serverGroup/configure/wizard/hiddenMetadataKeys.value.js +2 -7
- package/src/serverGroup/configure/wizard/index.ts +5 -0
- package/src/serverGroup/configure/wizard/pages/AdvancedSettings.spec.tsx +339 -0
- package/src/serverGroup/configure/wizard/pages/AdvancedSettings.tsx +871 -0
- package/src/serverGroup/configure/wizard/pages/GceServerGroupFirewalls.spec.tsx +196 -0
- package/src/serverGroup/configure/wizard/pages/GceServerGroupFirewalls.tsx +278 -0
- package/src/serverGroup/configure/wizard/pages/GceServerGroupLoadBalancers.spec.tsx +643 -0
- package/src/serverGroup/configure/wizard/pages/GceServerGroupLoadBalancers.tsx +851 -0
- package/src/serverGroup/configure/wizard/pages/Policies.spec.tsx +317 -0
- package/src/serverGroup/configure/wizard/pages/Policies.tsx +293 -0
- package/src/serverGroup/configure/wizard/pages/ServerGroupBasicSettings.spec.tsx +418 -0
- package/src/serverGroup/configure/wizard/pages/ServerGroupBasicSettings.tsx +247 -0
- package/src/serverGroup/configure/wizard/pages/ServerGroupCapacity.spec.tsx +659 -0
- package/src/serverGroup/configure/wizard/pages/ServerGroupCapacity.tsx +470 -0
- package/src/serverGroup/configure/wizard/pages/ServerGroupImageSettings.spec.tsx +146 -0
- package/src/serverGroup/configure/wizard/pages/ServerGroupImageSettings.tsx +163 -0
- package/src/serverGroup/configure/wizard/pages/ServerGroupInstanceType.spec.tsx +536 -0
- package/src/serverGroup/configure/wizard/pages/ServerGroupInstanceType.tsx +728 -0
- package/src/serverGroup/configure/wizard/pages/index.ts +8 -0
- package/src/serverGroup/configure/wizard/securityGroups/tagManager.service.js +186 -182
- package/src/serverGroup/configure/wizard/zones/GceInstanceFlexibilityConfigurer.spec.tsx +390 -0
- package/src/serverGroup/configure/wizard/zones/GceInstanceFlexibilityConfigurer.tsx +310 -0
- package/src/serverGroup/details/GceInstanceFlexibilityPolicyDetails.spec.tsx +32 -0
- package/src/serverGroup/details/GceInstanceFlexibilityPolicyDetails.tsx +36 -0
- package/src/serverGroup/details/autoHealingPolicy/GceAutoHealingPolicyDetails.spec.tsx +192 -0
- package/src/serverGroup/details/autoHealingPolicy/GceAutoHealingPolicyDetails.tsx +83 -0
- package/src/serverGroup/details/autoHealingPolicy/index.ts +2 -0
- package/src/serverGroup/details/autoHealingPolicy/modal/GceUpsertAutoHealingPolicyModal.spec.tsx +94 -0
- package/src/serverGroup/details/autoHealingPolicy/modal/GceUpsertAutoHealingPolicyModal.tsx +102 -0
- package/src/serverGroup/details/autoscalingPolicy/GceAutoscalingPolicyDetails.spec.tsx +200 -0
- package/src/serverGroup/details/autoscalingPolicy/GceAutoscalingPolicyDetails.tsx +153 -0
- package/src/serverGroup/details/autoscalingPolicy/index.ts +2 -0
- package/src/serverGroup/details/autoscalingPolicy/modal/GceUpsertAutoscalingPolicyModal.spec.tsx +227 -0
- package/src/serverGroup/details/autoscalingPolicy/modal/GceUpsertAutoscalingPolicyModal.tsx +196 -0
- package/src/serverGroup/details/gceServerGroupDetails.spec.tsx +290 -0
- package/src/serverGroup/details/gceServerGroupDetails.tsx +372 -0
- package/src/serverGroup/details/resize/GceResizeServerGroupModal.spec.tsx +390 -0
- package/src/serverGroup/details/resize/GceResizeServerGroupModal.tsx +346 -0
- package/src/serverGroup/details/rollback/GceRollbackServerGroupModal.spec.tsx +168 -0
- package/src/serverGroup/details/rollback/GceRollbackServerGroupModal.tsx +196 -0
- package/src/serverGroup/details/stateful/UpdateBootImageButton.tsx +1 -1
- package/src/serverGroup/serverGroup.transformer.js +73 -54
- package/src/serverGroup/serverGroup.transformer.spec.js +90 -15
- package/src/subnet/subnet.renderer.js +10 -15
- package/src/validation/ApplicationNameValidator.spec.ts +47 -0
- package/src/validation/ApplicationNameValidator.ts +89 -0
- package/dist/address/address.reader.d.ts +0 -15
- package/dist/autoscalingPolicy/autoscalingPolicy.write.service.d.ts +0 -2
- package/dist/autoscalingPolicy/components/basicSettings/basicSettings.component.d.ts +0 -2
- package/dist/autoscalingPolicy/components/metricSettings/GcePredictiveAutoscaling.d.ts +0 -1
- package/dist/autoscalingPolicy/components/metricSettings/metricSettings.component.d.ts +0 -2
- package/dist/autoscalingPolicy/components/scalingSchedules/scalingSchedules.component.d.ts +0 -2
- package/dist/autoscalingPolicy/components/scalingSchedules/timeZoneSelect.d.ts +0 -13
- package/dist/backendService/backendService.reader.d.ts +0 -2
- package/dist/cache/cacheRefresh.component.d.ts +0 -1
- package/dist/common/footer.directive.d.ts +0 -2
- package/dist/gceNetworkSelectField.directive.d.ts +0 -2
- package/dist/gceRegionSelectField.directive.d.ts +0 -2
- package/dist/instance/custom/customInstance.filter.d.ts +0 -2
- package/dist/instance/details/instance.details.controller.d.ts +0 -2
- package/dist/interceptors/iap.interceptor.d.ts +0 -8
- package/dist/loadBalancer/configure/choice/gceLoadBalancerChoice.modal.d.ts +0 -1
- package/dist/loadBalancer/configure/choice/gceLoadBalancerPipelineModal.d.ts +0 -9
- package/dist/loadBalancer/configure/choice/loadBalancerTypeToWizardMap.constant.d.ts +0 -10
- package/dist/loadBalancer/configure/common/addressSelector.component.d.ts +0 -1
- package/dist/loadBalancer/configure/common/commonLoadBalancer.controller.d.ts +0 -17
- package/dist/loadBalancer/configure/common/commonLoadBalancerCommandBuilder.service.d.ts +0 -23
- package/dist/loadBalancer/configure/common/healthCheck.component.d.ts +0 -1
- package/dist/loadBalancer/configure/http/backendService/backendService.component.d.ts +0 -2
- package/dist/loadBalancer/configure/http/basicSettings/basicSettings.component.d.ts +0 -2
- package/dist/loadBalancer/configure/http/commandBuilder.service.d.ts +0 -2
- package/dist/loadBalancer/configure/http/createHttpLoadBalancer.controller.d.ts +0 -2
- package/dist/loadBalancer/configure/http/healthCheck/healthCheck.component.d.ts +0 -2
- package/dist/loadBalancer/configure/http/hostRule/hostRule.component.d.ts +0 -2
- package/dist/loadBalancer/configure/http/httpLoadBalancer.write.service.d.ts +0 -2
- package/dist/loadBalancer/configure/http/listeners/listener.component.d.ts +0 -2
- package/dist/loadBalancer/configure/http/pathRule/pathRule.component.d.ts +0 -2
- package/dist/loadBalancer/configure/http/transformer.service.d.ts +0 -2
- package/dist/loadBalancer/configure/internal/gceCreateInternalLoadBalancer.controller.d.ts +0 -1
- package/dist/loadBalancer/configure/internalhttp/createInternalHttpLoadBalancer.controller.d.ts +0 -3
- package/dist/loadBalancer/configure/network/createLoadBalancer.controller.d.ts +0 -2
- package/dist/loadBalancer/configure/ssl/gceCreateSslLoadBalancer.controller.d.ts +0 -1
- package/dist/loadBalancer/configure/tcp/gceCreateTcpLoadBalancer.controller.d.ts +0 -1
- package/dist/loadBalancer/details/backendService/backendService.component.d.ts +0 -1
- package/dist/loadBalancer/details/backendService/sessionAffinity.filter.d.ts +0 -1
- package/dist/loadBalancer/details/deleteModal/deleteModal.controller.d.ts +0 -1
- package/dist/loadBalancer/details/healthCheck/healthCheck.component.d.ts +0 -2
- package/dist/loadBalancer/details/hostAndPathRules/hostAndPathRules.controller.d.ts +0 -2
- package/dist/loadBalancer/details/hostAndPathRules/hostAndPathRules.service.d.ts +0 -2
- package/dist/loadBalancer/details/hostAndPathRules/hostAndPathRulesButton.component.d.ts +0 -2
- package/dist/loadBalancer/details/loadBalancerDetail.controller.d.ts +0 -2
- package/dist/loadBalancer/details/loadBalancerType/loadBalancerType.component.d.ts +0 -2
- package/dist/pipeline/stages/bake/bakeExecutionDetails.controller.d.ts +0 -2
- package/dist/securityGroup/clone/cloneSecurityGroup.controller.d.ts +0 -2
- package/dist/securityGroup/configure/ConfigSecurityGroupMixin.controller.d.ts +0 -2
- package/dist/securityGroup/configure/createSecurityGroup.controller.d.ts +0 -2
- package/dist/securityGroup/configure/editSecurityGroup.controller.d.ts +0 -2
- package/dist/securityGroup/details/securityGroupDetail.controller.d.ts +0 -2
- package/dist/securityGroup/securityGroupHelpText.service.d.ts +0 -13
- package/dist/serverGroup/configure/serverGroup.configure.gce.module.d.ts +0 -2
- package/dist/serverGroup/configure/wizard/advancedSettings/GceAcceleratorConfigurer.d.ts +0 -16
- package/dist/serverGroup/configure/wizard/advancedSettings/advancedSettingsSelector.directive.d.ts +0 -2
- package/dist/serverGroup/configure/wizard/advancedSettings/diskConfigurer.component.d.ts +0 -1
- package/dist/serverGroup/configure/wizard/autoHealingPolicy/autoHealingPolicySelector.component.d.ts +0 -1
- package/dist/serverGroup/configure/wizard/autoScalingPolicy/autoScalingPolicySelector.component.d.ts +0 -1
- package/dist/serverGroup/configure/wizard/capacity/advancedCapacitySelector.component.d.ts +0 -2
- package/dist/serverGroup/configure/wizard/capacity/simpleCapacitySelector.component.d.ts +0 -2
- package/dist/serverGroup/configure/wizard/cloneServerGroup.gce.controller.d.ts +0 -2
- package/dist/serverGroup/configure/wizard/customInstance/customInstanceConfigurer.component.d.ts +0 -1
- package/dist/serverGroup/configure/wizard/loadBalancers/elSevenOptions/backendServiceSelector.component.d.ts +0 -2
- package/dist/serverGroup/configure/wizard/loadBalancers/elSevenOptions/elSevenOptionsGenerator.component.d.ts +0 -2
- package/dist/serverGroup/configure/wizard/loadBalancers/loadBalancerSelector.directive.d.ts +0 -2
- package/dist/serverGroup/configure/wizard/loadBalancingPolicy/loadBalancingPolicySelector.component.d.ts +0 -2
- package/dist/serverGroup/configure/wizard/location/basicSettings.controller.d.ts +0 -2
- package/dist/serverGroup/configure/wizard/securityGroups/securityGroupSelector.directive.d.ts +0 -2
- package/dist/serverGroup/configure/wizard/securityGroups/securityGroupsRemoved.directive.d.ts +0 -2
- package/dist/serverGroup/configure/wizard/securityGroups/tagSelector.component.d.ts +0 -2
- package/dist/serverGroup/configure/wizard/securityGroups/tagSelectorGenerator.component.d.ts +0 -2
- package/dist/serverGroup/configure/wizard/zones/regionalSelector.directive.d.ts +0 -2
- package/dist/serverGroup/configure/wizard/zones/targetShapeSelector.directive.d.ts +0 -1
- package/dist/serverGroup/configure/wizard/zones/zoneSelector.directive.d.ts +0 -2
- package/dist/serverGroup/details/ServerGroupDiskDescriptions.d.ts +0 -1
- package/dist/serverGroup/details/autoHealingPolicy/addAutoHealingPolicyButton.component.d.ts +0 -1
- package/dist/serverGroup/details/autoHealingPolicy/autoHealingPolicy.component.d.ts +0 -1
- package/dist/serverGroup/details/autoHealingPolicy/modal/upsertAutoHealingPolicy.modal.controller.d.ts +0 -2
- package/dist/serverGroup/details/autoscalingPolicy/addAutoscalingPolicyButton.component.d.ts +0 -2
- package/dist/serverGroup/details/autoscalingPolicy/autoscalingPolicy.directive.d.ts +0 -2
- package/dist/serverGroup/details/autoscalingPolicy/modal/GceScaleInControls.d.ts +0 -1
- package/dist/serverGroup/details/autoscalingPolicy/modal/upsertAutoscalingPolicy.modal.controller.d.ts +0 -2
- package/dist/serverGroup/details/resize/resizeAutoscalingPolicy.component.d.ts +0 -2
- package/dist/serverGroup/details/resize/resizeCapacity.component.d.ts +0 -2
- package/dist/serverGroup/details/resize/resizeServerGroup.controller.d.ts +0 -2
- package/dist/serverGroup/details/rollback/rollbackServerGroup.controller.d.ts +0 -2
- package/dist/serverGroup/details/serverGroup.details.gce.module.d.ts +0 -2
- package/dist/serverGroup/details/serverGroupDetails.gce.controller.d.ts +0 -2
- package/dist/subnet/subnetSelectField.directive.d.ts +0 -2
- package/dist/validation/applicationName.validator.d.ts +0 -2
- package/src/address/address.reader.ts +0 -61
- package/src/applicationProviderFields/gceFields.html +0 -13
- package/src/autoscalingPolicy/autoscalingPolicy.write.service.js +0 -83
- package/src/autoscalingPolicy/components/basicSettings/basicSettings.component.html +0 -71
- package/src/autoscalingPolicy/components/basicSettings/basicSettings.component.js +0 -20
- package/src/autoscalingPolicy/components/metricSettings/GcePredictiveAutoscaling.tsx +0 -54
- package/src/autoscalingPolicy/components/metricSettings/metricSettings.component.html +0 -208
- package/src/autoscalingPolicy/components/metricSettings/metricSettings.component.js +0 -108
- package/src/autoscalingPolicy/components/scalingSchedules/scalingSchedules.component.html +0 -84
- package/src/autoscalingPolicy/components/scalingSchedules/scalingSchedules.component.js +0 -61
- package/src/autoscalingPolicy/components/scalingSchedules/timeZoneSelect.tsx +0 -63
- package/src/backendService/backendService.reader.js +0 -28
- package/src/cache/cacheRefresh.component.html +0 -17
- package/src/cache/cacheRefresh.component.ts +0 -53
- package/src/cache/cacheRefreshTooltip.html +0 -3
- package/src/common/footer.directive.html +0 -7
- package/src/common/footer.directive.js +0 -22
- package/src/gceNetworkSelectField.directive.js +0 -22
- package/src/gceRegionSelectField.directive.js +0 -22
- package/src/instance/custom/customInstance.filter.js +0 -26
- package/src/instance/details/instance.details.controller.js +0 -518
- package/src/instance/details/instance.details.controller.spec.js +0 -27
- package/src/instance/details/instanceDetails.html +0 -248
- package/src/instance/gceInstanceType.service.spec.js +0 -19
- package/src/interceptors/iap.interceptor.ts +0 -36
- package/src/loadBalancer/configure/choice/gceLoadBalancerChoice.modal.html +0 -33
- package/src/loadBalancer/configure/choice/gceLoadBalancerChoice.modal.spec.js +0 -66
- package/src/loadBalancer/configure/choice/gceLoadBalancerChoice.modal.ts +0 -64
- package/src/loadBalancer/configure/choice/gceLoadBalancerPipelineModal.ts +0 -47
- package/src/loadBalancer/configure/choice/loadBalancerTypeToWizardMap.constant.ts +0 -58
- package/src/loadBalancer/configure/common/addressSelector.component.ts +0 -47
- package/src/loadBalancer/configure/common/commonAdvancedSettingsPage.html +0 -32
- package/src/loadBalancer/configure/common/commonCreateLoadBalancer.html +0 -41
- package/src/loadBalancer/configure/common/commonEditLoadBalancer.html +0 -38
- package/src/loadBalancer/configure/common/commonHealthCheckPage.html +0 -16
- package/src/loadBalancer/configure/common/commonLoadBalancer.controller.ts +0 -56
- package/src/loadBalancer/configure/common/commonLoadBalancerCommandBuilder.service.ts +0 -87
- package/src/loadBalancer/configure/common/healthCheck.component.html +0 -179
- package/src/loadBalancer/configure/common/healthCheck.component.ts +0 -82
- package/src/loadBalancer/configure/gceL4LoadBalancerPipeline.spec.js +0 -143
- package/src/loadBalancer/configure/http/backendService/backendService.component.html +0 -157
- package/src/loadBalancer/configure/http/backendService/backendService.component.js +0 -80
- package/src/loadBalancer/configure/http/backendService/backendServices.html +0 -57
- package/src/loadBalancer/configure/http/basicSettings/basicSettings.component.html +0 -105
- package/src/loadBalancer/configure/http/basicSettings/basicSettings.component.js +0 -46
- package/src/loadBalancer/configure/http/basicSettings/basicSettings.html +0 -6
- package/src/loadBalancer/configure/http/commandBuilder.service.js +0 -404
- package/src/loadBalancer/configure/http/createHttpLoadBalancer.controller.js +0 -184
- package/src/loadBalancer/configure/http/createHttpLoadBalancer.controller.spec.js +0 -96
- package/src/loadBalancer/configure/http/createHttpLoadBalancer.html +0 -39
- package/src/loadBalancer/configure/http/defaultService/defaultService.html +0 -24
- package/src/loadBalancer/configure/http/editHttpLoadBalancer.html +0 -36
- package/src/loadBalancer/configure/http/healthCheck/healthCheck.component.html +0 -180
- package/src/loadBalancer/configure/http/healthCheck/healthCheck.component.js +0 -69
- package/src/loadBalancer/configure/http/healthCheck/healthChecks.html +0 -55
- package/src/loadBalancer/configure/http/hostRule/hostRule.component.html +0 -60
- package/src/loadBalancer/configure/http/hostRule/hostRule.component.js +0 -35
- package/src/loadBalancer/configure/http/hostRule/hostRules.html +0 -16
- package/src/loadBalancer/configure/http/httpLoadBalancer.write.service.js +0 -56
- package/src/loadBalancer/configure/http/listeners/listener.component.html +0 -245
- package/src/loadBalancer/configure/http/listeners/listener.component.js +0 -164
- package/src/loadBalancer/configure/http/listeners/listener.component.spec.js +0 -125
- package/src/loadBalancer/configure/http/listeners/listeners.html +0 -17
- package/src/loadBalancer/configure/http/pathRule/pathRule.component.html +0 -51
- package/src/loadBalancer/configure/http/pathRule/pathRule.component.js +0 -16
- package/src/loadBalancer/configure/http/transformer.service.js +0 -191
- package/src/loadBalancer/configure/http/transformer.service.spec.js +0 -182
- package/src/loadBalancer/configure/internal/createLoadBalancerProperties.html +0 -98
- package/src/loadBalancer/configure/internal/gceCreateInternalLoadBalancer.controller.ts +0 -284
- package/src/loadBalancer/configure/internal/listener.html +0 -41
- package/src/loadBalancer/configure/internalhttp/createInternalHttpLoadBalancer.controller.spec.js +0 -89
- package/src/loadBalancer/configure/internalhttp/createInternalHttpLoadBalancer.controller.ts +0 -196
- package/src/loadBalancer/configure/network/advancedSettings.html +0 -54
- package/src/loadBalancer/configure/network/createLoadBalancer.controller.js +0 -240
- package/src/loadBalancer/configure/network/createLoadBalancer.controller.spec.js +0 -118
- package/src/loadBalancer/configure/network/createLoadBalancer.html +0 -25
- package/src/loadBalancer/configure/network/createLoadBalancerProperties.html +0 -86
- package/src/loadBalancer/configure/network/editLoadBalancer.html +0 -29
- package/src/loadBalancer/configure/network/healthCheck.html +0 -36
- package/src/loadBalancer/configure/network/listeners.html +0 -55
- package/src/loadBalancer/configure/ssl/backendService.html +0 -31
- package/src/loadBalancer/configure/ssl/createLoadBalancerProperties.html +0 -86
- package/src/loadBalancer/configure/ssl/gceCreateSslLoadBalancer.controller.ts +0 -244
- package/src/loadBalancer/configure/ssl/listener.html +0 -43
- package/src/loadBalancer/configure/tcp/backendService.html +0 -31
- package/src/loadBalancer/configure/tcp/createLoadBalancerProperties.html +0 -86
- package/src/loadBalancer/configure/tcp/gceCreateTcpLoadBalancer.controller.ts +0 -234
- package/src/loadBalancer/configure/tcp/listener.html +0 -15
- package/src/loadBalancer/details/backendService/backendService.component.ts +0 -23
- package/src/loadBalancer/details/backendService/sessionAffinity.filter.ts +0 -11
- package/src/loadBalancer/details/deleteModal/deleteModal.controller.ts +0 -105
- package/src/loadBalancer/details/deleteModal/deleteModal.html +0 -31
- package/src/loadBalancer/details/healthCheck/healthCheck.component.html +0 -14
- package/src/loadBalancer/details/healthCheck/healthCheck.component.js +0 -13
- package/src/loadBalancer/details/hostAndPathRules/hostAndPathRules.controller.js +0 -23
- package/src/loadBalancer/details/hostAndPathRules/hostAndPathRules.modal.html +0 -40
- package/src/loadBalancer/details/hostAndPathRules/hostAndPathRules.service.js +0 -41
- package/src/loadBalancer/details/hostAndPathRules/hostAndPathRulesButton.component.js +0 -39
- package/src/loadBalancer/details/loadBalancerDetail.controller.js +0 -260
- package/src/loadBalancer/details/loadBalancerDetail.controller.spec.js +0 -41
- package/src/loadBalancer/details/loadBalancerDetails.html +0 -202
- package/src/loadBalancer/details/loadBalancerType/loadBalancerType.component.js +0 -31
- package/src/loadBalancer/details/loadBalancerType/loadBalancerType.component.spec.js +0 -85
- package/src/networkSelectField.directive.html +0 -14
- package/src/pipeline/stages/bake/bakeExecutionDetails.controller.js +0 -40
- package/src/pipeline/stages/bake/bakeExecutionDetails.html +0 -60
- package/src/pipeline/stages/bake/bakeStage.html +0 -117
- package/src/pipeline/stages/cloneServerGroup/cloneServerGroupStage.html +0 -99
- package/src/pipeline/stages/cloneServerGroup/cloneServerGroupStepLabel.html +0 -1
- package/src/pipeline/stages/destroyAsg/destroyAsgStage.html +0 -9
- package/src/pipeline/stages/destroyAsg/destroyAsgStepLabel.html +0 -1
- package/src/pipeline/stages/disableAsg/disableAsgStage.html +0 -11
- package/src/pipeline/stages/disableAsg/disableAsgStepLabel.html +0 -1
- package/src/pipeline/stages/disableCluster/disableClusterStage.html +0 -26
- 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 -20
- package/src/pipeline/stages/findImageFromTags/findImageFromTagsExecutionDetails.html +0 -40
- package/src/pipeline/stages/findImageFromTags/findImageFromTagsStage.html +0 -8
- package/src/pipeline/stages/resizeAsg/resizeAsgStage.html +0 -97
- package/src/pipeline/stages/resizeAsg/resizeAsgStepLabel.html +0 -1
- package/src/pipeline/stages/scaleDownCluster/scaleDownClusterStage.html +0 -35
- package/src/pipeline/stages/shrinkCluster/shrinkClusterStage.html +0 -34
- package/src/pipeline/stages/tagImage/tagImageExecutionDetails.html +0 -39
- package/src/pipeline/stages/tagImage/tagImageStage.html +0 -14
- package/src/regionSelectField.directive.html +0 -18
- package/src/securityGroup/clone/cloneSecurityGroup.controller.js +0 -85
- package/src/securityGroup/clone/cloneSecurityGroup.html +0 -25
- package/src/securityGroup/configure/ConfigSecurityGroupMixin.controller.js +0 -318
- package/src/securityGroup/configure/createSecurityGroup.controller.js +0 -62
- package/src/securityGroup/configure/createSecurityGroup.html +0 -25
- package/src/securityGroup/configure/createSecurityGroupIngress.html +0 -81
- package/src/securityGroup/configure/createSecurityGroupProperties.html +0 -70
- package/src/securityGroup/configure/createSecurityGroupSourceFilters.html +0 -56
- package/src/securityGroup/configure/createSecurityGroupTargets.html +0 -43
- package/src/securityGroup/configure/editSecurityGroup.controller.js +0 -132
- package/src/securityGroup/configure/editSecurityGroup.html +0 -26
- package/src/securityGroup/details/securityGroupDetail.controller.js +0 -258
- package/src/securityGroup/details/securityGroupDetail.html +0 -171
- package/src/securityGroup/securityGroupHelpText.service.spec.ts +0 -102
- package/src/securityGroup/securityGroupHelpText.service.ts +0 -83
- package/src/serverGroup/configure/serverGroup.configure.gce.module.js +0 -59
- package/src/serverGroup/configure/wizard/advancedSettings/GceAcceleratorConfigurer.tsx +0 -222
- package/src/serverGroup/configure/wizard/advancedSettings/advancedSettings.directive.html +0 -277
- package/src/serverGroup/configure/wizard/advancedSettings/advancedSettings.html +0 -9
- package/src/serverGroup/configure/wizard/advancedSettings/advancedSettingsSelector.directive.js +0 -71
- package/src/serverGroup/configure/wizard/advancedSettings/advancedSettingsSelector.directive.spec.js +0 -58
- package/src/serverGroup/configure/wizard/advancedSettings/diskConfigurer.component.ts +0 -199
- package/src/serverGroup/configure/wizard/autoHealingPolicy/autoHealingPolicy.html +0 -20
- package/src/serverGroup/configure/wizard/autoHealingPolicy/autoHealingPolicySelector.component.html +0 -90
- package/src/serverGroup/configure/wizard/autoHealingPolicy/autoHealingPolicySelector.component.ts +0 -70
- package/src/serverGroup/configure/wizard/autoScalingPolicy/autoScalingPolicy.html +0 -20
- package/src/serverGroup/configure/wizard/autoScalingPolicy/autoScalingPolicySelector.component.html +0 -21
- package/src/serverGroup/configure/wizard/autoScalingPolicy/autoScalingPolicySelector.component.js +0 -44
- package/src/serverGroup/configure/wizard/capacity/advancedCapacitySelector.component.html +0 -42
- package/src/serverGroup/configure/wizard/capacity/advancedCapacitySelector.component.js +0 -16
- package/src/serverGroup/configure/wizard/capacity/capacity.html +0 -16
- package/src/serverGroup/configure/wizard/capacity/simpleCapacitySelector.component.html +0 -14
- package/src/serverGroup/configure/wizard/capacity/simpleCapacitySelector.component.js +0 -22
- package/src/serverGroup/configure/wizard/capacity/simpleCapacitySelector.component.spec.js +0 -31
- package/src/serverGroup/configure/wizard/capacity/zones.html +0 -7
- package/src/serverGroup/configure/wizard/cloneServerGroup.gce.controller.js +0 -476
- package/src/serverGroup/configure/wizard/customInstance/customInstanceBuilder.html +0 -13
- package/src/serverGroup/configure/wizard/customInstance/customInstanceConfigurer.component.ts +0 -21
- package/src/serverGroup/configure/wizard/instanceType/instanceType.html +0 -11
- package/src/serverGroup/configure/wizard/loadBalancers/elSevenOptions/backendServiceSelector.component.html +0 -21
- package/src/serverGroup/configure/wizard/loadBalancers/elSevenOptions/backendServiceSelector.component.js +0 -33
- package/src/serverGroup/configure/wizard/loadBalancers/elSevenOptions/elSevenOptionsGenerator.component.js +0 -42
- package/src/serverGroup/configure/wizard/loadBalancers/loadBalancerSelector.directive.html +0 -53
- package/src/serverGroup/configure/wizard/loadBalancers/loadBalancerSelector.directive.js +0 -55
- package/src/serverGroup/configure/wizard/loadBalancers/loadBalancers.html +0 -5
- package/src/serverGroup/configure/wizard/loadBalancingPolicy/loadBalancingPolicySelector.component.html +0 -182
- package/src/serverGroup/configure/wizard/loadBalancingPolicy/loadBalancingPolicySelector.component.less +0 -11
- package/src/serverGroup/configure/wizard/loadBalancingPolicy/loadBalancingPolicySelector.component.ts +0 -153
- package/src/serverGroup/configure/wizard/location/basicSettings.controller.js +0 -139
- package/src/serverGroup/configure/wizard/location/basicSettings.html +0 -167
- package/src/serverGroup/configure/wizard/securityGroups/securityGroupSelector.directive.html +0 -66
- package/src/serverGroup/configure/wizard/securityGroups/securityGroupSelector.directive.js +0 -48
- package/src/serverGroup/configure/wizard/securityGroups/securityGroups.html +0 -4
- package/src/serverGroup/configure/wizard/securityGroups/securityGroupsRemoved.directive.html +0 -14
- package/src/serverGroup/configure/wizard/securityGroups/securityGroupsRemoved.directive.js +0 -25
- package/src/serverGroup/configure/wizard/securityGroups/tagSelector.component.html +0 -26
- package/src/serverGroup/configure/wizard/securityGroups/tagSelector.component.js +0 -31
- package/src/serverGroup/configure/wizard/securityGroups/tagSelectorGenerator.component.js +0 -44
- package/src/serverGroup/configure/wizard/serverGroupWizard.html +0 -52
- package/src/serverGroup/configure/wizard/templateSelection/templateSelection.html +0 -9
- package/src/serverGroup/configure/wizard/zones/regionalSelector.directive.html +0 -13
- package/src/serverGroup/configure/wizard/zones/regionalSelector.directive.js +0 -21
- package/src/serverGroup/configure/wizard/zones/targetShapeSelector.directive.html +0 -13
- package/src/serverGroup/configure/wizard/zones/targetShapeSelector.directive.ts +0 -20
- package/src/serverGroup/configure/wizard/zones/zoneSelector.directive.html +0 -24
- package/src/serverGroup/configure/wizard/zones/zoneSelector.directive.js +0 -21
- package/src/serverGroup/details/ServerGroupDiskDescriptions.tsx +0 -97
- package/src/serverGroup/details/autoHealingPolicy/addAutoHealingPolicyButton.component.ts +0 -38
- package/src/serverGroup/details/autoHealingPolicy/autoHealingPolicy.component.ts +0 -73
- package/src/serverGroup/details/autoHealingPolicy/modal/upsertAutoHealingPolicy.modal.controller.ts +0 -88
- package/src/serverGroup/details/autoHealingPolicy/modal/upsertAutoHealingPolicy.modal.html +0 -29
- package/src/serverGroup/details/autoscalingPolicy/addAutoscalingPolicyButton.component.js +0 -38
- package/src/serverGroup/details/autoscalingPolicy/autoscalingPolicy.directive.html +0 -49
- package/src/serverGroup/details/autoscalingPolicy/autoscalingPolicy.directive.js +0 -138
- package/src/serverGroup/details/autoscalingPolicy/modal/GceScaleInControls.tsx +0 -137
- package/src/serverGroup/details/autoscalingPolicy/modal/upsertAutoscalingPolicy.modal.controller.js +0 -56
- package/src/serverGroup/details/autoscalingPolicy/modal/upsertAutoscalingPolicy.modal.html +0 -38
- package/src/serverGroup/details/resize/resizeAutoscalingPolicy.component.html +0 -55
- package/src/serverGroup/details/resize/resizeAutoscalingPolicy.component.js +0 -60
- package/src/serverGroup/details/resize/resizeCapacity.component.html +0 -36
- package/src/serverGroup/details/resize/resizeCapacity.component.js +0 -46
- package/src/serverGroup/details/resize/resizeServerGroup.controller.js +0 -64
- package/src/serverGroup/details/resize/resizeServerGroup.controller.spec.js +0 -119
- package/src/serverGroup/details/resize/resizeServerGroup.html +0 -41
- package/src/serverGroup/details/rollback/rollbackServerGroup.controller.js +0 -73
- package/src/serverGroup/details/rollback/rollbackServerGroup.html +0 -43
- package/src/serverGroup/details/serverGroup.details.gce.module.js +0 -17
- package/src/serverGroup/details/serverGroupDetails.gce.controller.js +0 -511
- package/src/serverGroup/details/serverGroupDetails.gce.controller.spec.js +0 -26
- package/src/serverGroup/details/serverGroupDetails.html +0 -359
- package/src/serverGroup/details/serverGroupDetails.less +0 -3
- package/src/subnet/subnetSelectField.directive.html +0 -21
- package/src/subnet/subnetSelectField.directive.js +0 -24
- package/src/validation/applicationName.validator.js +0 -114
|
@@ -1,153 +1,135 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
import { module } from 'angular';
|
|
4
3
|
import _ from 'lodash';
|
|
5
4
|
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
case 'N2':
|
|
21
|
-
case 'N2D':
|
|
22
|
-
case 'N1':
|
|
23
|
-
default:
|
|
24
|
-
max = locationToInstanceTypesMap[location].vCpuMax;
|
|
25
|
-
}
|
|
26
|
-
return vCpuCount <= max;
|
|
5
|
+
export class GceCustomInstanceBuilderService {
|
|
6
|
+
vCpuCountForLocationIsValid(instanceFamily, vCpuCount, location, locationToInstanceTypesMap) {
|
|
7
|
+
let max = 0;
|
|
8
|
+
switch (instanceFamily) {
|
|
9
|
+
case 'E2':
|
|
10
|
+
// E2 support up to 32 cores
|
|
11
|
+
// https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine-type#e2_custom_machine_types
|
|
12
|
+
max = 32;
|
|
13
|
+
break;
|
|
14
|
+
case 'N2':
|
|
15
|
+
case 'N2D':
|
|
16
|
+
case 'N1':
|
|
17
|
+
default:
|
|
18
|
+
max = locationToInstanceTypesMap[location].vCpuMax;
|
|
27
19
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
case 'N2':
|
|
38
|
-
case 'N2D':
|
|
39
|
-
return vCpuCount % 4 === 0;
|
|
40
|
-
case 'E2':
|
|
41
|
-
case 'N1':
|
|
42
|
-
default:
|
|
43
|
-
return vCpuCount % 2 === 0;
|
|
44
|
-
}
|
|
20
|
+
return vCpuCount <= max;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/*
|
|
24
|
+
* Above 1, vCPU count must be even.
|
|
25
|
+
* */
|
|
26
|
+
numberOfVCpusIsValid(instanceFamily, vCpuCount) {
|
|
27
|
+
if (vCpuCount === 1) {
|
|
28
|
+
return true;
|
|
45
29
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
30
|
+
switch (instanceFamily) {
|
|
31
|
+
case 'N2':
|
|
32
|
+
case 'N2D':
|
|
33
|
+
return vCpuCount % 4 === 0;
|
|
34
|
+
case 'E2':
|
|
35
|
+
case 'N1':
|
|
36
|
+
default:
|
|
37
|
+
return vCpuCount % 2 === 0;
|
|
50
38
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
generateValidVCpuListForLocation(location, locationToInstanceTypesMap) {
|
|
42
|
+
const max = locationToInstanceTypesMap[location].vCpuMax;
|
|
43
|
+
return [1, ..._.range(2, max, 2), max];
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
generateValidInstanceFamilyList() {
|
|
47
|
+
return ['n1', 'e2', 'n2', 'n2d'].map((x) => x.toUpperCase());
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/*
|
|
51
|
+
* Memory per vCPU must be between .9 GB and 6.5 GB
|
|
52
|
+
* Total memory must be a multiple of 256 MB.
|
|
53
|
+
* */
|
|
54
|
+
minMemoryForVCpuCount(instanceFamily, vCpuCount) {
|
|
55
|
+
switch (instanceFamily) {
|
|
56
|
+
case 'E2':
|
|
57
|
+
case 'N2':
|
|
58
|
+
case 'N2D':
|
|
59
|
+
return Math.ceil(0.5 * vCpuCount * 4) / 4;
|
|
60
|
+
case 'N1':
|
|
61
|
+
default:
|
|
62
|
+
return Math.ceil(0.9 * vCpuCount * 4) / 4;
|
|
54
63
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
default:
|
|
68
|
-
return Math.ceil(0.9 * vCpuCount * 4) / 4;
|
|
69
|
-
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
maxMemoryForVCpuCount(instanceFamily, vCpuCount) {
|
|
67
|
+
switch (instanceFamily) {
|
|
68
|
+
case 'E2':
|
|
69
|
+
return 8 * vCpuCount > 128 ? 128 : 8 * vCpuCount;
|
|
70
|
+
case 'N2':
|
|
71
|
+
case 'N2D':
|
|
72
|
+
return 8 * vCpuCount;
|
|
73
|
+
case 'N1':
|
|
74
|
+
default:
|
|
75
|
+
return 6.5 * vCpuCount;
|
|
70
76
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
return
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
generateValidMemoryListForVCpuCount(instanceFamily, vCpuCount) {
|
|
80
|
+
const min = this.minMemoryForVCpuCount(instanceFamily, vCpuCount);
|
|
81
|
+
const max = this.maxMemoryForVCpuCount(instanceFamily, vCpuCount);
|
|
82
|
+
return [..._.range(min, max, 0.25), max];
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
memoryIsValid(instanceFamily, totalMemory, vCpuCount, extendedMemory) {
|
|
86
|
+
const min = this.minMemoryForVCpuCount(instanceFamily, vCpuCount);
|
|
87
|
+
const max = extendedMemory ? 800 : this.maxMemoryForVCpuCount(instanceFamily, vCpuCount);
|
|
88
|
+
return _.inRange(totalMemory, min, max) || totalMemory === max;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/*
|
|
92
|
+
* In the API, you must always provide memory in MB units.
|
|
93
|
+
* Format: custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY
|
|
94
|
+
* */
|
|
95
|
+
generateInstanceTypeString(instanceFamily, vCpuCount, totalMemory, extendedMemory) {
|
|
96
|
+
const extendedFlag = extendedMemory ? '-ext' : '';
|
|
97
|
+
const memoryInMbs = Number(totalMemory) * 1024;
|
|
98
|
+
instanceFamily = instanceFamily.toLowerCase();
|
|
99
|
+
if (instanceFamily === 'n1') {
|
|
100
|
+
return `custom-${vCpuCount}-${memoryInMbs}${extendedFlag}`;
|
|
95
101
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
return `${instanceFamily}-custom-${vCpuCount}-${memoryInMbs}${extendedFlag}`;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
function parseInstanceTypeString(instanceTypeString) {
|
|
112
|
-
const [vCpuCount, memoryInMbs] = _.chain(instanceTypeString.split('-'))
|
|
113
|
-
.takeRight(2)
|
|
114
|
-
.map((value) => Number(value))
|
|
115
|
-
.value();
|
|
116
|
-
|
|
117
|
-
let instanceFamily = instanceTypeString.split('-')[0].toUpperCase();
|
|
118
|
-
if (instanceFamily === 'CUSTOM') {
|
|
119
|
-
instanceFamily = 'N1';
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
const memory = memoryInMbs / 1024;
|
|
123
|
-
|
|
124
|
-
return { instanceFamily, vCpuCount, memory };
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
function customInstanceChoicesAreValid(
|
|
128
|
-
instanceFamily,
|
|
129
|
-
vCpuCount,
|
|
130
|
-
totalMemory,
|
|
131
|
-
location,
|
|
132
|
-
locationToInstanceTypesMap,
|
|
133
|
-
extendedMemory,
|
|
134
|
-
) {
|
|
135
|
-
return _.every([
|
|
136
|
-
numberOfVCpusIsValid(instanceFamily, vCpuCount),
|
|
137
|
-
memoryIsValid(instanceFamily, totalMemory, vCpuCount, extendedMemory),
|
|
138
|
-
vCpuCountForLocationIsValid(instanceFamily, vCpuCount, location, locationToInstanceTypesMap),
|
|
139
|
-
]);
|
|
102
|
+
return `${instanceFamily}-custom-${vCpuCount}-${memoryInMbs}${extendedFlag}`;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
parseInstanceTypeString(instanceTypeString) {
|
|
106
|
+
const [vCpuCount, memoryInMbs] = _.chain(instanceTypeString.split('-'))
|
|
107
|
+
.takeRight(2)
|
|
108
|
+
.map((value) => Number(value))
|
|
109
|
+
.value();
|
|
110
|
+
|
|
111
|
+
let instanceFamily = instanceTypeString.split('-')[0].toUpperCase();
|
|
112
|
+
if (instanceFamily === 'CUSTOM') {
|
|
113
|
+
instanceFamily = 'N1';
|
|
140
114
|
}
|
|
141
115
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
116
|
+
const memory = memoryInMbs / 1024;
|
|
117
|
+
|
|
118
|
+
return { instanceFamily, vCpuCount, memory };
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
customInstanceChoicesAreValid(
|
|
122
|
+
instanceFamily,
|
|
123
|
+
vCpuCount,
|
|
124
|
+
totalMemory,
|
|
125
|
+
location,
|
|
126
|
+
locationToInstanceTypesMap,
|
|
127
|
+
extendedMemory,
|
|
128
|
+
) {
|
|
129
|
+
return _.every([
|
|
130
|
+
this.numberOfVCpusIsValid(instanceFamily, vCpuCount),
|
|
131
|
+
this.memoryIsValid(instanceFamily, totalMemory, vCpuCount, extendedMemory),
|
|
132
|
+
this.vCpuCountForLocationIsValid(instanceFamily, vCpuCount, location, locationToInstanceTypesMap),
|
|
133
|
+
]);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
import { mount, shallow } from 'enzyme';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
import type { Action } from '@spinnaker/core';
|
|
5
|
+
import {
|
|
6
|
+
AccountService,
|
|
7
|
+
ConfirmationModalService,
|
|
8
|
+
Details,
|
|
9
|
+
InstanceActions,
|
|
10
|
+
InstanceReader,
|
|
11
|
+
InstanceWriter,
|
|
12
|
+
RecentHistoryService,
|
|
13
|
+
} from '@spinnaker/core';
|
|
14
|
+
|
|
15
|
+
import { GceInstanceDetailsComponent as GceInstanceDetails } from './GceInstanceDetails';
|
|
16
|
+
|
|
17
|
+
describe('GceInstanceDetails', () => {
|
|
18
|
+
function application(loadBalancers: any[] = []) {
|
|
19
|
+
return {
|
|
20
|
+
isStandalone: false,
|
|
21
|
+
name: 'fnord',
|
|
22
|
+
loadBalancers: {
|
|
23
|
+
data: loadBalancers,
|
|
24
|
+
ready: () => Promise.resolve(),
|
|
25
|
+
},
|
|
26
|
+
serverGroups: {
|
|
27
|
+
data: [],
|
|
28
|
+
ready: () => Promise.resolve(),
|
|
29
|
+
},
|
|
30
|
+
} as any;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function instance(overrides: any = {}) {
|
|
34
|
+
return {
|
|
35
|
+
account: 'test-account',
|
|
36
|
+
cloudProvider: 'gce',
|
|
37
|
+
health: [],
|
|
38
|
+
id: 'instance-1',
|
|
39
|
+
instanceId: 'instance-1',
|
|
40
|
+
loadBalancers: ['network-lb'],
|
|
41
|
+
name: 'instance-1',
|
|
42
|
+
placement: { availabilityZone: 'us-central1-a' },
|
|
43
|
+
provider: 'gce',
|
|
44
|
+
region: 'us-central1',
|
|
45
|
+
serverGroup: 'fnord-v001',
|
|
46
|
+
zone: 'us-central1-a',
|
|
47
|
+
...overrides,
|
|
48
|
+
} as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function networkLoadBalancer(overrides: any = {}) {
|
|
52
|
+
return {
|
|
53
|
+
account: 'test-account',
|
|
54
|
+
loadBalancerType: 'NETWORK',
|
|
55
|
+
name: 'network-lb',
|
|
56
|
+
...overrides,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function actionsFor(
|
|
61
|
+
loadedInstance: any,
|
|
62
|
+
app = application([networkLoadBalancer()]),
|
|
63
|
+
stateService = { go: jasmine.createSpy('go'), includes: () => false },
|
|
64
|
+
): Action[] {
|
|
65
|
+
const wrapper = shallow(
|
|
66
|
+
<GceInstanceDetails
|
|
67
|
+
app={app}
|
|
68
|
+
initialInstance={loadedInstance}
|
|
69
|
+
router={{} as any}
|
|
70
|
+
stateParams={{}}
|
|
71
|
+
stateService={stateService as any}
|
|
72
|
+
/>,
|
|
73
|
+
);
|
|
74
|
+
const renderedActions = shallow(wrapper.find(Details.Header).prop('actions') as React.ReactElement);
|
|
75
|
+
const actionMenu = renderedActions.is(InstanceActions) ? renderedActions : renderedActions.find(InstanceActions);
|
|
76
|
+
const actions = actionMenu.exists() ? actionMenu.prop('actions') : [];
|
|
77
|
+
renderedActions.unmount();
|
|
78
|
+
wrapper.unmount();
|
|
79
|
+
return actions;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function labelsFor(loadedInstance: any, app?: any): string[] {
|
|
83
|
+
return actionsFor(loadedInstance, app).map(({ label }) => label);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
it('finds instances through disabled server groups attached to load balancers', () => {
|
|
87
|
+
spyOn(RecentHistoryService, 'addExtraDataToLatest');
|
|
88
|
+
spyOn(InstanceReader, 'getInstanceDetails').and.returnValue(
|
|
89
|
+
Promise.resolve(
|
|
90
|
+
instance({
|
|
91
|
+
networkInterfaces: [{ networkIP: '10.0.0.1' }],
|
|
92
|
+
selfLink:
|
|
93
|
+
'https://www.googleapis.com/compute/v1/projects/test-project/zones/us-central1-a/instances/instance-1',
|
|
94
|
+
}),
|
|
95
|
+
),
|
|
96
|
+
);
|
|
97
|
+
const app = application([
|
|
98
|
+
networkLoadBalancer({
|
|
99
|
+
instances: [],
|
|
100
|
+
region: 'us-central1',
|
|
101
|
+
serverGroups: [
|
|
102
|
+
{
|
|
103
|
+
instances: [{ id: 'instance-1', health: [] }],
|
|
104
|
+
isDisabled: true,
|
|
105
|
+
name: 'fnord-v001',
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
}),
|
|
109
|
+
]);
|
|
110
|
+
|
|
111
|
+
const wrapper = mount(
|
|
112
|
+
<GceInstanceDetails
|
|
113
|
+
app={app}
|
|
114
|
+
instance={{ account: 'route-account', instanceId: 'instance-1', region: 'route-region' }}
|
|
115
|
+
router={{} as any}
|
|
116
|
+
stateParams={{}}
|
|
117
|
+
stateService={{} as any}
|
|
118
|
+
/>,
|
|
119
|
+
);
|
|
120
|
+
|
|
121
|
+
expect(InstanceReader.getInstanceDetails).toHaveBeenCalledWith('test-account', 'us-central1', 'instance-1');
|
|
122
|
+
wrapper.unmount();
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
it('clears actions on instance identity changes and ignores stale responses', async () => {
|
|
126
|
+
spyOn(AccountService, 'challengeDestructiveActions').and.returnValue(Promise.resolve(false));
|
|
127
|
+
const oldRequest = deferred<any>();
|
|
128
|
+
const newRequest = deferred<any>();
|
|
129
|
+
spyOn(RecentHistoryService, 'addExtraDataToLatest');
|
|
130
|
+
spyOn(Details, 'Header').and.callFake(({ actions, name }: any) => (
|
|
131
|
+
<div className="test-instance-header">
|
|
132
|
+
{name}
|
|
133
|
+
{actions}
|
|
134
|
+
</div>
|
|
135
|
+
));
|
|
136
|
+
spyOn(InstanceReader, 'getInstanceDetails').and.callFake(
|
|
137
|
+
(_account: string, _region: string, instanceId: string) => {
|
|
138
|
+
if (instanceId === 'instance-1') {
|
|
139
|
+
return Promise.resolve(instance());
|
|
140
|
+
}
|
|
141
|
+
return instanceId === 'instance-2' ? oldRequest.promise : newRequest.promise;
|
|
142
|
+
},
|
|
143
|
+
);
|
|
144
|
+
const app = application();
|
|
145
|
+
const RoutedDetails = ({ routedInstance }: { routedInstance: any }) => (
|
|
146
|
+
<GceInstanceDetails
|
|
147
|
+
app={app}
|
|
148
|
+
initialInstance={instance()}
|
|
149
|
+
instance={routedInstance}
|
|
150
|
+
router={{} as any}
|
|
151
|
+
stateParams={{}}
|
|
152
|
+
stateService={{} as any}
|
|
153
|
+
/>
|
|
154
|
+
);
|
|
155
|
+
const wrapper = mount(
|
|
156
|
+
<RoutedDetails routedInstance={{ account: 'test-account', instanceId: 'instance-1', region: 'us-central1' }} />,
|
|
157
|
+
);
|
|
158
|
+
await settle();
|
|
159
|
+
wrapper.update();
|
|
160
|
+
expect(wrapper.find('.test-instance-header').text()).toContain('instance-1');
|
|
161
|
+
expect(wrapper.find(InstanceActions).exists()).toBe(true);
|
|
162
|
+
|
|
163
|
+
wrapper.setProps({
|
|
164
|
+
routedInstance: { account: 'test-account', instanceId: 'instance-2', region: 'us-central1' },
|
|
165
|
+
});
|
|
166
|
+
wrapper.update();
|
|
167
|
+
expect(wrapper.find('.test-instance-header').exists()).toBe(false);
|
|
168
|
+
expect(wrapper.find(InstanceActions).exists()).toBe(false);
|
|
169
|
+
|
|
170
|
+
wrapper.setProps({
|
|
171
|
+
routedInstance: { account: 'test-account', instanceId: 'instance-3', region: 'us-central1' },
|
|
172
|
+
});
|
|
173
|
+
wrapper.update();
|
|
174
|
+
expect(wrapper.find('.test-instance-header').exists()).toBe(false);
|
|
175
|
+
expect(wrapper.find(InstanceActions).exists()).toBe(false);
|
|
176
|
+
|
|
177
|
+
oldRequest.resolve(instance({ id: 'instance-2', instanceId: 'instance-2', name: 'instance-2' }));
|
|
178
|
+
await settle();
|
|
179
|
+
wrapper.update();
|
|
180
|
+
expect(wrapper.find('.test-instance-header').exists()).toBe(false);
|
|
181
|
+
expect(wrapper.find(InstanceActions).exists()).toBe(false);
|
|
182
|
+
|
|
183
|
+
newRequest.resolve(instance({ id: 'instance-3', instanceId: 'instance-3', name: 'instance-3' }));
|
|
184
|
+
await settle();
|
|
185
|
+
wrapper.update();
|
|
186
|
+
expect(wrapper.find('.test-instance-header').text()).toContain('instance-3');
|
|
187
|
+
wrapper.unmount();
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
it('shows discovery actions only for their historical health states', () => {
|
|
191
|
+
expect(labelsFor(instance({ health: [{ state: 'OutOfService', type: 'Discovery' }] }))).toEqual([
|
|
192
|
+
'Enable in Discovery',
|
|
193
|
+
'Register with Load Balancer',
|
|
194
|
+
'Reboot',
|
|
195
|
+
'Terminate',
|
|
196
|
+
'Terminate and Shrink Server Group',
|
|
197
|
+
]);
|
|
198
|
+
expect(labelsFor(instance({ health: [{ state: 'Up', type: 'Discovery' }] }))).toEqual([
|
|
199
|
+
'Disable in Discovery',
|
|
200
|
+
'Register with Load Balancer',
|
|
201
|
+
'Reboot',
|
|
202
|
+
'Terminate',
|
|
203
|
+
'Terminate and Shrink Server Group',
|
|
204
|
+
]);
|
|
205
|
+
expect(labelsFor(instance({ health: [{ state: 'Down', type: 'Discovery' }] }))).not.toContain(
|
|
206
|
+
'Disable in Discovery',
|
|
207
|
+
);
|
|
208
|
+
});
|
|
209
|
+
|
|
210
|
+
it('shows register and deregister actions only for network load balancers in the instance account', () => {
|
|
211
|
+
const outOfService = instance({ health: [{ state: 'OutOfService', type: 'LoadBalancer' }] });
|
|
212
|
+
expect(labelsFor(outOfService)).toContain('Register with Load Balancer');
|
|
213
|
+
expect(labelsFor(outOfService)).toContain('Deregister from Load Balancer');
|
|
214
|
+
|
|
215
|
+
const httpApp = application([networkLoadBalancer({ loadBalancerType: 'HTTP' })]);
|
|
216
|
+
expect(labelsFor(outOfService, httpApp)).not.toContain('Register with Load Balancer');
|
|
217
|
+
expect(labelsFor(outOfService, httpApp)).not.toContain('Deregister from Load Balancer');
|
|
218
|
+
|
|
219
|
+
const noMatchingLoadBalancerApp = application([]);
|
|
220
|
+
expect(labelsFor(outOfService, noMatchingLoadBalancerApp)).not.toContain('Register with Load Balancer');
|
|
221
|
+
expect(labelsFor(outOfService, noMatchingLoadBalancerApp)).not.toContain('Deregister from Load Balancer');
|
|
222
|
+
|
|
223
|
+
const wrongAccountApp = application([networkLoadBalancer({ account: 'other-account' })]);
|
|
224
|
+
expect(labelsFor(outOfService, wrongAccountApp)).not.toContain('Register with Load Balancer');
|
|
225
|
+
expect(labelsFor(outOfService, wrongAccountApp)).not.toContain('Deregister from Load Balancer');
|
|
226
|
+
|
|
227
|
+
const accountScopedApp = application([
|
|
228
|
+
networkLoadBalancer(),
|
|
229
|
+
networkLoadBalancer({ account: 'other-account', loadBalancerType: 'HTTP' }),
|
|
230
|
+
]);
|
|
231
|
+
expect(labelsFor(outOfService, accountScopedApp)).toContain('Register with Load Balancer');
|
|
232
|
+
expect(labelsFor(outOfService, accountScopedApp)).toContain('Deregister from Load Balancer');
|
|
233
|
+
});
|
|
234
|
+
|
|
235
|
+
it('passes only eligible network load balancer names to registration writers', () => {
|
|
236
|
+
const confirmation = spyOn(ConfirmationModalService, 'confirm');
|
|
237
|
+
const register = spyOn(InstanceWriter, 'registerInstanceWithLoadBalancer').and.returnValue(
|
|
238
|
+
Promise.resolve({} as any),
|
|
239
|
+
);
|
|
240
|
+
const deregister = spyOn(InstanceWriter, 'deregisterInstanceFromLoadBalancer').and.returnValue(
|
|
241
|
+
Promise.resolve({} as any),
|
|
242
|
+
);
|
|
243
|
+
const app = application([
|
|
244
|
+
networkLoadBalancer(),
|
|
245
|
+
networkLoadBalancer({ loadBalancerType: 'HTTP', name: 'http-lb' }),
|
|
246
|
+
networkLoadBalancer({ account: 'other-account', name: 'other-network-lb' }),
|
|
247
|
+
]);
|
|
248
|
+
const loadedInstance = instance({
|
|
249
|
+
health: [{ state: 'OutOfService', type: 'LoadBalancer' }],
|
|
250
|
+
loadBalancers: ['network-lb', 'http-lb', 'other-network-lb'],
|
|
251
|
+
});
|
|
252
|
+
|
|
253
|
+
const actions = actionsFor(loadedInstance, app);
|
|
254
|
+
actions.find(({ label }) => label === 'Register with Load Balancer')!.triggerAction();
|
|
255
|
+
actions.find(({ label }) => label === 'Deregister from Load Balancer')!.triggerAction();
|
|
256
|
+
const reason = { reason: 'operator requested' };
|
|
257
|
+
confirmation.calls.all().forEach(({ args }) => args[0].submitMethod(reason));
|
|
258
|
+
|
|
259
|
+
const eligibleInstance = { ...loadedInstance, loadBalancers: ['network-lb'] };
|
|
260
|
+
expect(register).toHaveBeenCalledWith(eligibleInstance, app, reason);
|
|
261
|
+
expect(deregister).toHaveBeenCalledWith(eligibleInstance, app, reason);
|
|
262
|
+
});
|
|
263
|
+
|
|
264
|
+
it('always shows reboot and terminate, and only shows shrink for a managed server group', () => {
|
|
265
|
+
expect(labelsFor(instance({ loadBalancers: [] }))).toEqual([
|
|
266
|
+
'Reboot',
|
|
267
|
+
'Terminate',
|
|
268
|
+
'Terminate and Shrink Server Group',
|
|
269
|
+
]);
|
|
270
|
+
expect(labelsFor(instance({ loadBalancers: [], serverGroup: undefined }))).toEqual(['Reboot', 'Terminate']);
|
|
271
|
+
});
|
|
272
|
+
|
|
273
|
+
it('uses confirmation, account verification, task monitors, and exact GCE writer contracts', () => {
|
|
274
|
+
const confirmation = spyOn(ConfirmationModalService, 'confirm');
|
|
275
|
+
spyOn(InstanceWriter, 'terminateInstance').and.returnValue(Promise.resolve({} as any));
|
|
276
|
+
spyOn(InstanceWriter, 'terminateInstanceAndShrinkServerGroup').and.returnValue(Promise.resolve({} as any));
|
|
277
|
+
spyOn(InstanceWriter, 'rebootInstance').and.returnValue(Promise.resolve({} as any));
|
|
278
|
+
spyOn(InstanceWriter, 'registerInstanceWithLoadBalancer').and.returnValue(Promise.resolve({} as any));
|
|
279
|
+
spyOn(InstanceWriter, 'deregisterInstanceFromLoadBalancer').and.returnValue(Promise.resolve({} as any));
|
|
280
|
+
spyOn(InstanceWriter, 'enableInstanceInDiscovery').and.returnValue(Promise.resolve({} as any));
|
|
281
|
+
spyOn(InstanceWriter, 'disableInstanceInDiscovery').and.returnValue(Promise.resolve({} as any));
|
|
282
|
+
const $state = { go: jasmine.createSpy('go'), includes: jasmine.createSpy('includes').and.returnValue(true) };
|
|
283
|
+
const app = application([networkLoadBalancer()]);
|
|
284
|
+
const loadedInstance = instance({
|
|
285
|
+
health: [
|
|
286
|
+
{ state: 'OutOfService', type: 'Discovery' },
|
|
287
|
+
{ state: 'Up', type: 'Discovery' },
|
|
288
|
+
{ state: 'OutOfService', type: 'LoadBalancer' },
|
|
289
|
+
],
|
|
290
|
+
});
|
|
291
|
+
|
|
292
|
+
const actions = actionsFor(loadedInstance, app, $state);
|
|
293
|
+
expect(actions.length).toBe(7);
|
|
294
|
+
if (!actions.length) {
|
|
295
|
+
return;
|
|
296
|
+
}
|
|
297
|
+
actions.forEach(({ triggerAction }) => triggerAction());
|
|
298
|
+
|
|
299
|
+
expect(confirmation).toHaveBeenCalledTimes(7);
|
|
300
|
+
const confirmations = confirmation.calls.all().map(({ args }) => args[0]);
|
|
301
|
+
confirmations.forEach((params) => {
|
|
302
|
+
expect(params.account).toBe('test-account');
|
|
303
|
+
expect(params.askForReason).toBe(true);
|
|
304
|
+
expect(params.taskMonitorConfig.application).toBe(app);
|
|
305
|
+
expect(params.taskMonitorConfig.title).toBeTruthy();
|
|
306
|
+
});
|
|
307
|
+
|
|
308
|
+
const findConfirmation = (header: string) => confirmations.find((params) => params.header === header);
|
|
309
|
+
const reason = { reason: 'operator requested' };
|
|
310
|
+
findConfirmation('Really enable instance-1 in discovery?').submitMethod(reason);
|
|
311
|
+
findConfirmation('Really disable instance-1 in discovery?').submitMethod(reason);
|
|
312
|
+
findConfirmation('Really register instance-1 with network-lb?').submitMethod(reason);
|
|
313
|
+
findConfirmation('Really deregister instance-1 from network-lb?').submitMethod(reason);
|
|
314
|
+
findConfirmation('Really reboot instance-1?').submitMethod(reason);
|
|
315
|
+
findConfirmation('Really terminate instance-1?').submitMethod(reason);
|
|
316
|
+
findConfirmation('Really terminate instance-1 and shrink fnord-v001?').submitMethod(reason);
|
|
317
|
+
|
|
318
|
+
expect(InstanceWriter.enableInstanceInDiscovery).toHaveBeenCalledWith(loadedInstance, app, reason);
|
|
319
|
+
expect(InstanceWriter.disableInstanceInDiscovery).toHaveBeenCalledWith(loadedInstance, app, reason);
|
|
320
|
+
expect(InstanceWriter.registerInstanceWithLoadBalancer).toHaveBeenCalledWith(loadedInstance, app, reason);
|
|
321
|
+
expect(InstanceWriter.deregisterInstanceFromLoadBalancer).toHaveBeenCalledWith(loadedInstance, app, reason);
|
|
322
|
+
expect(InstanceWriter.rebootInstance).toHaveBeenCalledWith(loadedInstance, app, {
|
|
323
|
+
interestingHealthProviderNames: [],
|
|
324
|
+
reason: 'operator requested',
|
|
325
|
+
});
|
|
326
|
+
expect(InstanceWriter.terminateInstance).toHaveBeenCalledWith(loadedInstance, app, {
|
|
327
|
+
cloudProvider: 'gce',
|
|
328
|
+
managedInstanceGroupName: 'fnord-v001',
|
|
329
|
+
reason: 'operator requested',
|
|
330
|
+
});
|
|
331
|
+
expect(InstanceWriter.terminateInstanceAndShrinkServerGroup).toHaveBeenCalledWith(loadedInstance, app, {
|
|
332
|
+
instanceIds: ['instance-1'],
|
|
333
|
+
reason: 'operator requested',
|
|
334
|
+
serverGroupName: 'fnord-v001',
|
|
335
|
+
zone: 'us-central1-a',
|
|
336
|
+
});
|
|
337
|
+
|
|
338
|
+
findConfirmation('Really terminate instance-1?').taskMonitorConfig.onTaskComplete();
|
|
339
|
+
expect($state.includes).toHaveBeenCalledWith('**.instanceDetails', { instanceId: 'instance-1' });
|
|
340
|
+
expect($state.go).toHaveBeenCalledWith('^');
|
|
341
|
+
});
|
|
342
|
+
});
|
|
343
|
+
|
|
344
|
+
const settle = () => new Promise((resolve) => setTimeout(resolve));
|
|
345
|
+
|
|
346
|
+
function deferred<T>() {
|
|
347
|
+
let resolve!: (value: T | PromiseLike<T>) => void;
|
|
348
|
+
let reject!: (reason?: any) => void;
|
|
349
|
+
const promise = new Promise<T>((resolvePromise, rejectPromise) => {
|
|
350
|
+
resolve = resolvePromise;
|
|
351
|
+
reject = rejectPromise;
|
|
352
|
+
});
|
|
353
|
+
return { promise, reject, resolve };
|
|
354
|
+
}
|