@spinnaker/google 0.0.0-2025.1-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/CHANGELOG.md +1198 -0
- package/LICENSE.txt +203 -0
- package/dist/address/address.reader.d.ts +15 -0
- package/dist/autoscalingPolicy/GceAutoScalingFieldLayout.d.ts +4 -0
- package/dist/autoscalingPolicy/IGceAutoscalingPolicy.d.ts +19 -0
- package/dist/autoscalingPolicy/autoscalingPolicy.write.service.d.ts +2 -0
- package/dist/autoscalingPolicy/components/basicSettings/basicSettings.component.d.ts +2 -0
- package/dist/autoscalingPolicy/components/metricSettings/GcePredictiveAutoscaling.d.ts +1 -0
- package/dist/autoscalingPolicy/components/metricSettings/metricSettings.component.d.ts +2 -0
- package/dist/autoscalingPolicy/components/scalingSchedules/scalingSchedules.component.d.ts +2 -0
- package/dist/autoscalingPolicy/components/scalingSchedules/timeZoneSelect.d.ts +13 -0
- package/dist/autoscalingPolicy/index.d.ts +2 -0
- package/dist/backendService/backendService.reader.d.ts +2 -0
- package/dist/cache/cacheConfigurer.service.d.ts +2 -0
- package/dist/cache/cacheRefresh.component.d.ts +1 -0
- package/dist/certificate/certificate.reader.d.ts +10 -0
- package/dist/common/footer.directive.d.ts +2 -0
- package/dist/common/xpnNaming.gce.service.d.ts +2 -0
- package/dist/domain/autoHealingPolicy.d.ts +12 -0
- package/dist/domain/backendService.d.ts +13 -0
- package/dist/domain/disk.d.ts +10 -0
- package/dist/domain/healthCheck.d.ts +18 -0
- package/dist/domain/index.d.ts +8 -0
- package/dist/domain/loadBalancer.d.ts +42 -0
- package/dist/domain/network.d.ts +10 -0
- package/dist/domain/serverGroup.d.ts +5 -0
- package/dist/domain/subnet.d.ts +12 -0
- package/dist/gce.logo2ae85d8704b1d6b8.png +0 -0
- package/dist/gce.module.d.ts +3 -0
- package/dist/gce.settings.d.ts +14 -0
- package/dist/gceNetworkSelectField.directive.d.ts +2 -0
- package/dist/gceRegionSelectField.directive.d.ts +2 -0
- package/dist/healthCheck/healthCheck.read.service.d.ts +5 -0
- package/dist/healthCheck/healthCheckUtils.d.ts +13 -0
- package/dist/help/gce.help.d.ts +1 -0
- package/dist/image/ImageSelect.d.ts +14 -0
- package/dist/image/image.reader.d.ts +11 -0
- package/dist/image/index.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +17717 -0
- package/dist/index.js.map +1 -0
- package/dist/instance/custom/customInstance.filter.d.ts +2 -0
- package/dist/instance/custom/customInstanceBuilder.gce.service.d.ts +2 -0
- package/dist/instance/details/instance.details.controller.d.ts +2 -0
- package/dist/instance/gceInstanceType.service.d.ts +2 -0
- package/dist/instance/gceInstanceTypeDisks.d.ts +15 -0
- package/dist/instance/gceMultiInstanceTask.transformer.d.ts +2 -0
- package/dist/interceptors/iap.interceptor.d.ts +8 -0
- package/dist/loadBalancer/configure/choice/gceLoadBalancerChoice.modal.d.ts +1 -0
- package/dist/loadBalancer/configure/choice/loadBalancerTypeToWizardMap.constant.d.ts +10 -0
- package/dist/loadBalancer/configure/common/addressSelector.component.d.ts +1 -0
- package/dist/loadBalancer/configure/common/commonLoadBalancer.controller.d.ts +17 -0
- package/dist/loadBalancer/configure/common/commonLoadBalancerCommandBuilder.service.d.ts +23 -0
- package/dist/loadBalancer/configure/common/healthCheck.component.d.ts +1 -0
- package/dist/loadBalancer/configure/common/sessionAffinityNameMaps.d.ts +5 -0
- package/dist/loadBalancer/configure/http/backendService/backendService.component.d.ts +2 -0
- package/dist/loadBalancer/configure/http/basicSettings/basicSettings.component.d.ts +2 -0
- package/dist/loadBalancer/configure/http/commandBuilder.service.d.ts +2 -0
- package/dist/loadBalancer/configure/http/createHttpLoadBalancer.controller.d.ts +2 -0
- package/dist/loadBalancer/configure/http/healthCheck/healthCheck.component.d.ts +2 -0
- package/dist/loadBalancer/configure/http/hostRule/hostRule.component.d.ts +2 -0
- package/dist/loadBalancer/configure/http/httpLoadBalancer.write.service.d.ts +2 -0
- package/dist/loadBalancer/configure/http/listeners/listener.component.d.ts +2 -0
- package/dist/loadBalancer/configure/http/pathRule/pathRule.component.d.ts +2 -0
- package/dist/loadBalancer/configure/http/templates.d.ts +42 -0
- package/dist/loadBalancer/configure/http/transformer.service.d.ts +2 -0
- package/dist/loadBalancer/configure/internal/gceCreateInternalLoadBalancer.controller.d.ts +1 -0
- package/dist/loadBalancer/configure/internalhttp/createInternalHttpLoadBalancer.controller.d.ts +3 -0
- package/dist/loadBalancer/configure/network/createLoadBalancer.controller.d.ts +2 -0
- package/dist/loadBalancer/configure/ssl/gceCreateSslLoadBalancer.controller.d.ts +1 -0
- package/dist/loadBalancer/configure/tcp/gceCreateTcpLoadBalancer.controller.d.ts +1 -0
- package/dist/loadBalancer/details/backendService/backendService.component.d.ts +1 -0
- package/dist/loadBalancer/details/backendService/sessionAffinity.filter.d.ts +1 -0
- package/dist/loadBalancer/details/deleteModal/deleteModal.controller.d.ts +1 -0
- package/dist/loadBalancer/details/healthCheck/healthCheck.component.d.ts +2 -0
- package/dist/loadBalancer/details/hostAndPathRules/hostAndPathRules.controller.d.ts +2 -0
- package/dist/loadBalancer/details/hostAndPathRules/hostAndPathRules.service.d.ts +2 -0
- package/dist/loadBalancer/details/hostAndPathRules/hostAndPathRulesButton.component.d.ts +2 -0
- package/dist/loadBalancer/details/loadBalancerDetail.controller.d.ts +2 -0
- package/dist/loadBalancer/details/loadBalancerType/loadBalancerType.component.d.ts +2 -0
- package/dist/loadBalancer/httpLoadBalancerUtils.service.d.ts +7 -0
- package/dist/loadBalancer/loadBalancer.setTransformer.d.ts +11 -0
- package/dist/loadBalancer/loadBalancer.transformer.d.ts +2 -0
- package/dist/pipeline/stages/bake/bakeExecutionDetails.controller.d.ts +2 -0
- package/dist/pipeline/stages/bake/gceBakeStage.d.ts +2 -0
- package/dist/pipeline/stages/cloneServerGroup/gceCloneServerGroupStage.d.ts +2 -0
- package/dist/pipeline/stages/destroyAsg/gceDestroyAsgStage.d.ts +2 -0
- package/dist/pipeline/stages/disableAsg/gceDisableAsgStage.d.ts +2 -0
- package/dist/pipeline/stages/disableCluster/gceDisableClusterStage.d.ts +2 -0
- package/dist/pipeline/stages/enableAsg/gceEnableAsgStage.d.ts +2 -0
- package/dist/pipeline/stages/findAmi/gceFindAmiStage.d.ts +2 -0
- package/dist/pipeline/stages/findImageFromTags/gceFindImageFromTagsStage.d.ts +2 -0
- package/dist/pipeline/stages/resizeAsg/gceResizeAsgStage.d.ts +2 -0
- package/dist/pipeline/stages/scaleDownCluster/gceScaleDownClusterStage.d.ts +2 -0
- package/dist/pipeline/stages/shrinkCluster/gceShrinkClusterStage.d.ts +2 -0
- package/dist/pipeline/stages/tagImage/gceTagImageStage.d.ts +2 -0
- package/dist/securityGroup/clone/cloneSecurityGroup.controller.d.ts +2 -0
- package/dist/securityGroup/configure/ConfigSecurityGroupMixin.controller.d.ts +2 -0
- package/dist/securityGroup/configure/createSecurityGroup.controller.d.ts +2 -0
- package/dist/securityGroup/configure/editSecurityGroup.controller.d.ts +2 -0
- package/dist/securityGroup/details/securityGroupDetail.controller.d.ts +2 -0
- package/dist/securityGroup/securityGroup.reader.d.ts +2 -0
- package/dist/securityGroup/securityGroup.transformer.d.ts +2 -0
- package/dist/securityGroup/securityGroupHelpText.service.d.ts +13 -0
- package/dist/serverGroup/configure/serverGroup.configure.gce.module.d.ts +2 -0
- package/dist/serverGroup/configure/serverGroupCommandBuilder.service.d.ts +2 -0
- package/dist/serverGroup/configure/serverGroupConfiguration.service.d.ts +2 -0
- package/dist/serverGroup/configure/wizard/advancedSettings/GceAcceleratorConfigurer.d.ts +16 -0
- package/dist/serverGroup/configure/wizard/advancedSettings/advancedSettingsSelector.directive.d.ts +2 -0
- package/dist/serverGroup/configure/wizard/advancedSettings/diskConfigurer.component.d.ts +1 -0
- package/dist/serverGroup/configure/wizard/advancedSettings/gceAccelerator.service.d.ts +25 -0
- package/dist/serverGroup/configure/wizard/autoHealingPolicy/autoHealingPolicySelector.component.d.ts +1 -0
- package/dist/serverGroup/configure/wizard/autoScalingPolicy/autoScalingPolicySelector.component.d.ts +1 -0
- package/dist/serverGroup/configure/wizard/capacity/advancedCapacitySelector.component.d.ts +2 -0
- package/dist/serverGroup/configure/wizard/capacity/simpleCapacitySelector.component.d.ts +2 -0
- package/dist/serverGroup/configure/wizard/cloneServerGroup.gce.controller.d.ts +2 -0
- package/dist/serverGroup/configure/wizard/customInstance/CustomInstanceConfigurer.d.ts +26 -0
- package/dist/serverGroup/configure/wizard/customInstance/customInstanceConfigurer.component.d.ts +1 -0
- package/dist/serverGroup/configure/wizard/hiddenMetadataKeys.value.d.ts +2 -0
- package/dist/serverGroup/configure/wizard/loadBalancers/elSevenOptions/backendServiceSelector.component.d.ts +2 -0
- package/dist/serverGroup/configure/wizard/loadBalancers/elSevenOptions/elSevenOptionsGenerator.component.d.ts +2 -0
- package/dist/serverGroup/configure/wizard/loadBalancers/loadBalancerSelector.directive.d.ts +2 -0
- package/dist/serverGroup/configure/wizard/loadBalancingPolicy/loadBalancingPolicySelector.component.d.ts +2 -0
- package/dist/serverGroup/configure/wizard/location/basicSettings.controller.d.ts +2 -0
- package/dist/serverGroup/configure/wizard/securityGroups/securityGroupSelector.directive.d.ts +2 -0
- package/dist/serverGroup/configure/wizard/securityGroups/securityGroupsRemoved.directive.d.ts +2 -0
- package/dist/serverGroup/configure/wizard/securityGroups/tagManager.service.d.ts +2 -0
- package/dist/serverGroup/configure/wizard/securityGroups/tagSelector.component.d.ts +2 -0
- package/dist/serverGroup/configure/wizard/securityGroups/tagSelectorGenerator.component.d.ts +2 -0
- package/dist/serverGroup/configure/wizard/zones/regionalSelector.directive.d.ts +2 -0
- package/dist/serverGroup/configure/wizard/zones/targetShapeSelector.directive.d.ts +1 -0
- package/dist/serverGroup/configure/wizard/zones/zoneSelector.directive.d.ts +2 -0
- package/dist/serverGroup/details/ServerGroupDiskDescriptions.d.ts +1 -0
- package/dist/serverGroup/details/autoHealingPolicy/addAutoHealingPolicyButton.component.d.ts +1 -0
- package/dist/serverGroup/details/autoHealingPolicy/autoHealingPolicy.component.d.ts +1 -0
- package/dist/serverGroup/details/autoHealingPolicy/modal/upsertAutoHealingPolicy.modal.controller.d.ts +2 -0
- package/dist/serverGroup/details/autoscalingPolicy/addAutoscalingPolicyButton.component.d.ts +2 -0
- package/dist/serverGroup/details/autoscalingPolicy/autoscalingPolicy.directive.d.ts +2 -0
- package/dist/serverGroup/details/autoscalingPolicy/modal/GceScaleInControls.d.ts +1 -0
- package/dist/serverGroup/details/autoscalingPolicy/modal/upsertAutoscalingPolicy.modal.controller.d.ts +2 -0
- package/dist/serverGroup/details/resize/resizeAutoscalingPolicy.component.d.ts +2 -0
- package/dist/serverGroup/details/resize/resizeCapacity.component.d.ts +2 -0
- package/dist/serverGroup/details/resize/resizeServerGroup.controller.d.ts +2 -0
- package/dist/serverGroup/details/rollback/rollbackServerGroup.controller.d.ts +2 -0
- package/dist/serverGroup/details/serverGroup.details.gce.module.d.ts +2 -0
- package/dist/serverGroup/details/serverGroupDetails.gce.controller.d.ts +2 -0
- package/dist/serverGroup/details/stateful/MarkDiskStatefulButton.d.ts +10 -0
- package/dist/serverGroup/details/stateful/StatefulMIGService.d.ts +7 -0
- package/dist/serverGroup/details/stateful/UpdateBootImageButton.d.ts +10 -0
- package/dist/serverGroup/serverGroup.transformer.d.ts +2 -0
- package/dist/subnet/subnet.renderer.d.ts +2 -0
- package/dist/subnet/subnetSelectField.directive.d.ts +2 -0
- package/dist/validation/applicationName.validator.d.ts +2 -0
- package/package.json +45 -0
- package/src/address/address.reader.ts +61 -0
- package/src/applicationProviderFields/gceFields.html +13 -0
- package/src/autoscalingPolicy/GceAutoScalingFieldLayout.tsx +31 -0
- package/src/autoscalingPolicy/IGceAutoscalingPolicy.ts +22 -0
- package/src/autoscalingPolicy/autoscalingPolicy.write.service.js +83 -0
- package/src/autoscalingPolicy/components/basicSettings/basicSettings.component.html +71 -0
- package/src/autoscalingPolicy/components/basicSettings/basicSettings.component.js +20 -0
- package/src/autoscalingPolicy/components/metricSettings/GcePredictiveAutoscaling.tsx +54 -0
- package/src/autoscalingPolicy/components/metricSettings/metricSettings.component.html +208 -0
- package/src/autoscalingPolicy/components/metricSettings/metricSettings.component.js +108 -0
- package/src/autoscalingPolicy/components/scalingSchedules/scalingSchedules.component.html +84 -0
- package/src/autoscalingPolicy/components/scalingSchedules/scalingSchedules.component.js +61 -0
- package/src/autoscalingPolicy/components/scalingSchedules/standardTimezone.json +596 -0
- package/src/autoscalingPolicy/components/scalingSchedules/timeZoneSelect.tsx +63 -0
- package/src/autoscalingPolicy/gceAutoscalingFieldLayout.less +7 -0
- package/src/autoscalingPolicy/index.ts +2 -0
- package/src/backendService/backendService.reader.js +28 -0
- package/src/cache/cacheConfigurer.service.js +41 -0
- package/src/cache/cacheRefresh.component.html +17 -0
- package/src/cache/cacheRefresh.component.ts +53 -0
- package/src/cache/cacheRefreshTooltip.html +3 -0
- package/src/certificate/certificate.reader.ts +31 -0
- package/src/common/footer.directive.html +7 -0
- package/src/common/footer.directive.js +22 -0
- package/src/common/xpnNaming.gce.service.js +35 -0
- package/src/domain/autoHealingPolicy.ts +14 -0
- package/src/domain/backendService.ts +15 -0
- package/src/domain/disk.ts +10 -0
- package/src/domain/healthCheck.ts +19 -0
- package/src/domain/index.ts +8 -0
- package/src/domain/loadBalancer.ts +49 -0
- package/src/domain/network.ts +10 -0
- package/src/domain/serverGroup.ts +8 -0
- package/src/domain/subnet.ts +12 -0
- package/src/gce.module.ts +155 -0
- package/src/gce.settings.ts +23 -0
- package/src/gceNetworkSelectField.directive.js +22 -0
- package/src/gceRegionSelectField.directive.js +22 -0
- package/src/healthCheck/healthCheck.read.service.ts +55 -0
- package/src/healthCheck/healthCheckUtils.spec.ts +80 -0
- package/src/healthCheck/healthCheckUtils.ts +47 -0
- package/src/help/gce.help.ts +225 -0
- package/src/image/ImageSelect.tsx +66 -0
- package/src/image/image.reader.ts +19 -0
- package/src/image/index.ts +2 -0
- package/src/index.ts +1 -0
- package/src/instance/custom/customInstance.filter.js +26 -0
- package/src/instance/custom/customInstanceBuilder.gce.service.js +153 -0
- package/src/instance/details/instance.details.controller.js +518 -0
- package/src/instance/details/instance.details.controller.spec.js +27 -0
- package/src/instance/details/instanceDetails.html +248 -0
- package/src/instance/gceInstanceType.service.js +432 -0
- package/src/instance/gceInstanceType.service.spec.js +19 -0
- package/src/instance/gceInstanceTypeDisks.ts +261 -0
- package/src/instance/gceMultiInstanceTask.transformer.js +32 -0
- package/src/interceptors/iap.interceptor.ts +36 -0
- package/src/loadBalancer/configure/choice/gceLoadBalancerChoice.modal.html +33 -0
- package/src/loadBalancer/configure/choice/gceLoadBalancerChoice.modal.ts +49 -0
- package/src/loadBalancer/configure/choice/loadBalancerTypeToWizardMap.constant.ts +58 -0
- package/src/loadBalancer/configure/common/addressSelector.component.ts +47 -0
- package/src/loadBalancer/configure/common/commonAdvancedSettingsPage.html +32 -0
- package/src/loadBalancer/configure/common/commonCreateLoadBalancer.html +41 -0
- package/src/loadBalancer/configure/common/commonEditLoadBalancer.html +38 -0
- package/src/loadBalancer/configure/common/commonHealthCheckPage.html +16 -0
- package/src/loadBalancer/configure/common/commonLoadBalancer.controller.ts +56 -0
- package/src/loadBalancer/configure/common/commonLoadBalancerCommandBuilder.service.ts +87 -0
- package/src/loadBalancer/configure/common/healthCheck.component.html +164 -0
- package/src/loadBalancer/configure/common/healthCheck.component.ts +82 -0
- package/src/loadBalancer/configure/common/sessionAffinityNameMaps.ts +18 -0
- package/src/loadBalancer/configure/http/backendService/backendService.component.html +157 -0
- package/src/loadBalancer/configure/http/backendService/backendService.component.js +80 -0
- package/src/loadBalancer/configure/http/backendService/backendServices.html +57 -0
- package/src/loadBalancer/configure/http/basicSettings/basicSettings.component.html +105 -0
- package/src/loadBalancer/configure/http/basicSettings/basicSettings.component.js +46 -0
- package/src/loadBalancer/configure/http/basicSettings/basicSettings.html +6 -0
- package/src/loadBalancer/configure/http/commandBuilder.service.js +404 -0
- package/src/loadBalancer/configure/http/createHttpLoadBalancer.controller.js +162 -0
- package/src/loadBalancer/configure/http/createHttpLoadBalancer.html +39 -0
- package/src/loadBalancer/configure/http/defaultService/defaultService.html +24 -0
- package/src/loadBalancer/configure/http/editHttpLoadBalancer.html +36 -0
- package/src/loadBalancer/configure/http/healthCheck/healthCheck.component.html +169 -0
- package/src/loadBalancer/configure/http/healthCheck/healthCheck.component.js +69 -0
- package/src/loadBalancer/configure/http/healthCheck/healthChecks.html +55 -0
- package/src/loadBalancer/configure/http/hostRule/hostRule.component.html +60 -0
- package/src/loadBalancer/configure/http/hostRule/hostRule.component.js +35 -0
- package/src/loadBalancer/configure/http/hostRule/hostRules.html +16 -0
- package/src/loadBalancer/configure/http/httpLoadBalancer.write.service.js +56 -0
- package/src/loadBalancer/configure/http/httpLoadBalancerWizard.component.less +24 -0
- package/src/loadBalancer/configure/http/listeners/listener.component.html +190 -0
- package/src/loadBalancer/configure/http/listeners/listener.component.js +82 -0
- package/src/loadBalancer/configure/http/listeners/listeners.html +17 -0
- package/src/loadBalancer/configure/http/pathRule/pathRule.component.html +51 -0
- package/src/loadBalancer/configure/http/pathRule/pathRule.component.js +16 -0
- package/src/loadBalancer/configure/http/templates.ts +48 -0
- package/src/loadBalancer/configure/http/transformer.service.js +176 -0
- package/src/loadBalancer/configure/internal/createLoadBalancerProperties.html +98 -0
- package/src/loadBalancer/configure/internal/gceCreateInternalLoadBalancer.controller.ts +276 -0
- package/src/loadBalancer/configure/internal/listener.html +41 -0
- package/src/loadBalancer/configure/internalhttp/createInternalHttpLoadBalancer.controller.ts +173 -0
- package/src/loadBalancer/configure/network/advancedSettings.html +54 -0
- package/src/loadBalancer/configure/network/createLoadBalancer.controller.js +224 -0
- package/src/loadBalancer/configure/network/createLoadBalancer.controller.spec.js +76 -0
- package/src/loadBalancer/configure/network/createLoadBalancer.html +25 -0
- package/src/loadBalancer/configure/network/createLoadBalancerProperties.html +86 -0
- package/src/loadBalancer/configure/network/editLoadBalancer.html +29 -0
- package/src/loadBalancer/configure/network/healthCheck.html +36 -0
- package/src/loadBalancer/configure/network/listeners.html +55 -0
- package/src/loadBalancer/configure/ssl/backendService.html +31 -0
- package/src/loadBalancer/configure/ssl/createLoadBalancerProperties.html +86 -0
- package/src/loadBalancer/configure/ssl/gceCreateSslLoadBalancer.controller.ts +236 -0
- package/src/loadBalancer/configure/ssl/listener.html +43 -0
- package/src/loadBalancer/configure/tcp/backendService.html +31 -0
- package/src/loadBalancer/configure/tcp/createLoadBalancerProperties.html +86 -0
- package/src/loadBalancer/configure/tcp/gceCreateTcpLoadBalancer.controller.ts +226 -0
- package/src/loadBalancer/configure/tcp/listener.html +15 -0
- package/src/loadBalancer/details/backendService/backendService.component.ts +23 -0
- package/src/loadBalancer/details/backendService/sessionAffinity.filter.ts +11 -0
- package/src/loadBalancer/details/deleteModal/deleteModal.controller.ts +105 -0
- package/src/loadBalancer/details/deleteModal/deleteModal.html +31 -0
- package/src/loadBalancer/details/healthCheck/healthCheck.component.html +14 -0
- package/src/loadBalancer/details/healthCheck/healthCheck.component.js +13 -0
- package/src/loadBalancer/details/hostAndPathRules/hostAndPathRules.controller.js +23 -0
- package/src/loadBalancer/details/hostAndPathRules/hostAndPathRules.modal.html +40 -0
- package/src/loadBalancer/details/hostAndPathRules/hostAndPathRules.service.js +41 -0
- package/src/loadBalancer/details/hostAndPathRules/hostAndPathRulesButton.component.js +39 -0
- package/src/loadBalancer/details/loadBalancerDetail.controller.js +260 -0
- package/src/loadBalancer/details/loadBalancerDetail.controller.spec.js +41 -0
- package/src/loadBalancer/details/loadBalancerDetails.html +202 -0
- package/src/loadBalancer/details/loadBalancerType/loadBalancerType.component.js +29 -0
- package/src/loadBalancer/httpLoadBalancerUtils.service.ts +42 -0
- package/src/loadBalancer/loadBalancer.setTransformer.ts +55 -0
- package/src/loadBalancer/loadBalancer.transformer.js +168 -0
- package/src/logo/gce.logo.less +6 -0
- package/src/logo/gce.logo.png +0 -0
- package/src/logo/gce.logo.svg +30 -0
- package/src/networkSelectField.directive.html +14 -0
- package/src/pipeline/stages/bake/bakeExecutionDetails.controller.js +40 -0
- package/src/pipeline/stages/bake/bakeExecutionDetails.html +60 -0
- package/src/pipeline/stages/bake/bakeStage.html +117 -0
- package/src/pipeline/stages/bake/gceBakeStage.js +171 -0
- package/src/pipeline/stages/cloneServerGroup/cloneServerGroupStage.html +99 -0
- package/src/pipeline/stages/cloneServerGroup/cloneServerGroupStepLabel.html +1 -0
- package/src/pipeline/stages/cloneServerGroup/gceCloneServerGroupStage.js +83 -0
- package/src/pipeline/stages/destroyAsg/destroyAsgStage.html +9 -0
- package/src/pipeline/stages/destroyAsg/destroyAsgStepLabel.html +1 -0
- package/src/pipeline/stages/destroyAsg/gceDestroyAsgStage.js +62 -0
- package/src/pipeline/stages/disableAsg/disableAsgStage.html +11 -0
- package/src/pipeline/stages/disableAsg/disableAsgStepLabel.html +1 -0
- package/src/pipeline/stages/disableAsg/gceDisableAsgStage.js +68 -0
- package/src/pipeline/stages/disableCluster/disableClusterStage.html +26 -0
- package/src/pipeline/stages/disableCluster/gceDisableClusterStage.js +79 -0
- package/src/pipeline/stages/enableAsg/enableAsgStage.html +11 -0
- package/src/pipeline/stages/enableAsg/enableAsgStepLabel.html +1 -0
- package/src/pipeline/stages/enableAsg/gceEnableAsgStage.js +65 -0
- package/src/pipeline/stages/findAmi/findAmiStage.html +20 -0
- package/src/pipeline/stages/findAmi/gceFindAmiStage.js +79 -0
- package/src/pipeline/stages/findImageFromTags/findImageFromTagsExecutionDetails.html +40 -0
- package/src/pipeline/stages/findImageFromTags/findImageFromTagsStage.html +8 -0
- package/src/pipeline/stages/findImageFromTags/gceFindImageFromTagsStage.js +35 -0
- package/src/pipeline/stages/resizeAsg/gceResizeAsgStage.js +125 -0
- package/src/pipeline/stages/resizeAsg/resizeAsgStage.html +97 -0
- package/src/pipeline/stages/resizeAsg/resizeAsgStepLabel.html +1 -0
- package/src/pipeline/stages/scaleDownCluster/gceScaleDownClusterStage.js +78 -0
- package/src/pipeline/stages/scaleDownCluster/scaleDownClusterStage.html +35 -0
- package/src/pipeline/stages/shrinkCluster/gceShrinkClusterStage.js +73 -0
- package/src/pipeline/stages/shrinkCluster/shrinkClusterStage.html +34 -0
- package/src/pipeline/stages/tagImage/gceTagImageStage.js +36 -0
- package/src/pipeline/stages/tagImage/tagImageExecutionDetails.html +39 -0
- package/src/pipeline/stages/tagImage/tagImageStage.html +14 -0
- package/src/regionSelectField.directive.html +18 -0
- package/src/securityGroup/clone/cloneSecurityGroup.controller.js +85 -0
- package/src/securityGroup/clone/cloneSecurityGroup.html +25 -0
- package/src/securityGroup/configure/ConfigSecurityGroupMixin.controller.js +318 -0
- package/src/securityGroup/configure/createSecurityGroup.controller.js +62 -0
- package/src/securityGroup/configure/createSecurityGroup.html +25 -0
- package/src/securityGroup/configure/createSecurityGroupIngress.html +81 -0
- package/src/securityGroup/configure/createSecurityGroupProperties.html +70 -0
- package/src/securityGroup/configure/createSecurityGroupSourceFilters.html +56 -0
- package/src/securityGroup/configure/createSecurityGroupTargets.html +43 -0
- package/src/securityGroup/configure/editSecurityGroup.controller.js +132 -0
- package/src/securityGroup/configure/editSecurityGroup.html +26 -0
- package/src/securityGroup/configure/securityGroup.configure.less +22 -0
- package/src/securityGroup/details/securityGroupDetail.controller.js +258 -0
- package/src/securityGroup/details/securityGroupDetail.html +171 -0
- package/src/securityGroup/securityGroup.reader.js +15 -0
- package/src/securityGroup/securityGroup.transformer.js +18 -0
- package/src/securityGroup/securityGroupHelpText.service.spec.ts +102 -0
- package/src/securityGroup/securityGroupHelpText.service.ts +83 -0
- package/src/serverGroup/configure/serverGroup.configure.gce.module.js +59 -0
- package/src/serverGroup/configure/serverGroupCommandBuilder.service.js +620 -0
- package/src/serverGroup/configure/serverGroupConfiguration.service.js +781 -0
- package/src/serverGroup/configure/wizard/advancedSettings/GceAcceleratorConfigurer.tsx +222 -0
- package/src/serverGroup/configure/wizard/advancedSettings/advancedSettings.directive.html +277 -0
- package/src/serverGroup/configure/wizard/advancedSettings/advancedSettings.html +9 -0
- package/src/serverGroup/configure/wizard/advancedSettings/advancedSettingsSelector.directive.js +71 -0
- package/src/serverGroup/configure/wizard/advancedSettings/advancedSettingsSelector.directive.spec.js +58 -0
- package/src/serverGroup/configure/wizard/advancedSettings/diskConfigurer.component.ts +199 -0
- package/src/serverGroup/configure/wizard/advancedSettings/gceAccelerator.service.spec.ts +108 -0
- package/src/serverGroup/configure/wizard/advancedSettings/gceAccelerator.service.ts +74 -0
- package/src/serverGroup/configure/wizard/autoHealingPolicy/autoHealingPolicy.html +20 -0
- package/src/serverGroup/configure/wizard/autoHealingPolicy/autoHealingPolicySelector.component.html +90 -0
- package/src/serverGroup/configure/wizard/autoHealingPolicy/autoHealingPolicySelector.component.ts +70 -0
- package/src/serverGroup/configure/wizard/autoScalingPolicy/autoScalingPolicy.html +20 -0
- package/src/serverGroup/configure/wizard/autoScalingPolicy/autoScalingPolicySelector.component.html +21 -0
- package/src/serverGroup/configure/wizard/autoScalingPolicy/autoScalingPolicySelector.component.js +47 -0
- package/src/serverGroup/configure/wizard/autoScalingPolicy/autoScalingPolicySelector.less +15 -0
- package/src/serverGroup/configure/wizard/capacity/advancedCapacitySelector.component.html +42 -0
- package/src/serverGroup/configure/wizard/capacity/advancedCapacitySelector.component.js +16 -0
- package/src/serverGroup/configure/wizard/capacity/capacity.html +16 -0
- package/src/serverGroup/configure/wizard/capacity/simpleCapacitySelector.component.html +14 -0
- package/src/serverGroup/configure/wizard/capacity/simpleCapacitySelector.component.js +22 -0
- package/src/serverGroup/configure/wizard/capacity/simpleCapacitySelector.component.spec.js +31 -0
- package/src/serverGroup/configure/wizard/capacity/zones.html +7 -0
- package/src/serverGroup/configure/wizard/cloneServerGroup.gce.controller.js +476 -0
- package/src/serverGroup/configure/wizard/customInstance/CustomInstanceConfigurer.tsx +166 -0
- package/src/serverGroup/configure/wizard/customInstance/customInstanceBuilder.html +13 -0
- package/src/serverGroup/configure/wizard/customInstance/customInstanceConfigurer.component.less +9 -0
- package/src/serverGroup/configure/wizard/customInstance/customInstanceConfigurer.component.ts +21 -0
- package/src/serverGroup/configure/wizard/hiddenMetadataKeys.value.js +15 -0
- package/src/serverGroup/configure/wizard/instanceType/instanceType.html +11 -0
- package/src/serverGroup/configure/wizard/loadBalancers/elSevenOptions/backendServiceSelector.component.html +21 -0
- package/src/serverGroup/configure/wizard/loadBalancers/elSevenOptions/backendServiceSelector.component.js +33 -0
- package/src/serverGroup/configure/wizard/loadBalancers/elSevenOptions/elSevenOptionsGenerator.component.js +42 -0
- package/src/serverGroup/configure/wizard/loadBalancers/loadBalancerSelector.directive.html +53 -0
- package/src/serverGroup/configure/wizard/loadBalancers/loadBalancerSelector.directive.js +55 -0
- package/src/serverGroup/configure/wizard/loadBalancers/loadBalancers.html +5 -0
- package/src/serverGroup/configure/wizard/loadBalancingPolicy/loadBalancingPolicySelector.component.html +182 -0
- package/src/serverGroup/configure/wizard/loadBalancingPolicy/loadBalancingPolicySelector.component.less +11 -0
- package/src/serverGroup/configure/wizard/loadBalancingPolicy/loadBalancingPolicySelector.component.ts +149 -0
- package/src/serverGroup/configure/wizard/location/basicSettings.controller.js +139 -0
- package/src/serverGroup/configure/wizard/location/basicSettings.html +167 -0
- package/src/serverGroup/configure/wizard/securityGroups/securityGroupSelector.directive.html +66 -0
- package/src/serverGroup/configure/wizard/securityGroups/securityGroupSelector.directive.js +48 -0
- package/src/serverGroup/configure/wizard/securityGroups/securityGroups.html +4 -0
- package/src/serverGroup/configure/wizard/securityGroups/securityGroupsRemoved.directive.html +14 -0
- package/src/serverGroup/configure/wizard/securityGroups/securityGroupsRemoved.directive.js +25 -0
- package/src/serverGroup/configure/wizard/securityGroups/tagManager.service.js +208 -0
- package/src/serverGroup/configure/wizard/securityGroups/tagSelector.component.html +26 -0
- package/src/serverGroup/configure/wizard/securityGroups/tagSelector.component.js +31 -0
- package/src/serverGroup/configure/wizard/securityGroups/tagSelectorGenerator.component.js +44 -0
- package/src/serverGroup/configure/wizard/serverGroupWizard.html +52 -0
- package/src/serverGroup/configure/wizard/templateSelection/templateSelection.html +9 -0
- package/src/serverGroup/configure/wizard/zones/regionalSelector.directive.html +13 -0
- package/src/serverGroup/configure/wizard/zones/regionalSelector.directive.js +21 -0
- package/src/serverGroup/configure/wizard/zones/targetShapeSelector.directive.html +13 -0
- package/src/serverGroup/configure/wizard/zones/targetShapeSelector.directive.ts +20 -0
- package/src/serverGroup/configure/wizard/zones/zoneSelector.directive.html +24 -0
- package/src/serverGroup/configure/wizard/zones/zoneSelector.directive.js +21 -0
- package/src/serverGroup/details/ServerGroupDiskDescriptions.tsx +97 -0
- package/src/serverGroup/details/autoHealingPolicy/addAutoHealingPolicyButton.component.ts +38 -0
- package/src/serverGroup/details/autoHealingPolicy/autoHealingPolicy.component.ts +73 -0
- package/src/serverGroup/details/autoHealingPolicy/modal/upsertAutoHealingPolicy.modal.controller.ts +88 -0
- package/src/serverGroup/details/autoHealingPolicy/modal/upsertAutoHealingPolicy.modal.html +29 -0
- package/src/serverGroup/details/autoHealingPolicy/modal/upsertAutoHealingPolicy.modal.less +13 -0
- package/src/serverGroup/details/autoscalingPolicy/addAutoscalingPolicyButton.component.js +38 -0
- package/src/serverGroup/details/autoscalingPolicy/autoscalingPolicy.directive.html +49 -0
- package/src/serverGroup/details/autoscalingPolicy/autoscalingPolicy.directive.js +138 -0
- package/src/serverGroup/details/autoscalingPolicy/modal/GceScaleInControls.tsx +137 -0
- package/src/serverGroup/details/autoscalingPolicy/modal/upsertAutoscalingPolicy.modal.controller.js +56 -0
- package/src/serverGroup/details/autoscalingPolicy/modal/upsertAutoscalingPolicy.modal.html +38 -0
- package/src/serverGroup/details/autoscalingPolicy/modal/upsertAutoscalingPolicy.modal.less +17 -0
- package/src/serverGroup/details/resize/resizeAutoscalingPolicy.component.html +55 -0
- package/src/serverGroup/details/resize/resizeAutoscalingPolicy.component.js +60 -0
- package/src/serverGroup/details/resize/resizeCapacity.component.html +36 -0
- package/src/serverGroup/details/resize/resizeCapacity.component.js +46 -0
- package/src/serverGroup/details/resize/resizeServerGroup.controller.js +64 -0
- package/src/serverGroup/details/resize/resizeServerGroup.controller.spec.js +119 -0
- package/src/serverGroup/details/resize/resizeServerGroup.html +41 -0
- package/src/serverGroup/details/rollback/rollbackServerGroup.controller.js +73 -0
- package/src/serverGroup/details/rollback/rollbackServerGroup.html +43 -0
- package/src/serverGroup/details/serverGroup.details.gce.module.js +17 -0
- package/src/serverGroup/details/serverGroupDetails.gce.controller.js +511 -0
- package/src/serverGroup/details/serverGroupDetails.gce.controller.spec.js +26 -0
- package/src/serverGroup/details/serverGroupDetails.html +359 -0
- package/src/serverGroup/details/serverGroupDetails.less +3 -0
- package/src/serverGroup/details/stateful/MarkDiskStatefulButton.tsx +41 -0
- package/src/serverGroup/details/stateful/StatefulMIGService.ts +49 -0
- package/src/serverGroup/details/stateful/UpdateBootImageButton.tsx +108 -0
- package/src/serverGroup/serverGroup.transformer.js +64 -0
- package/src/serverGroup/serverGroup.transformer.spec.js +59 -0
- package/src/subnet/subnet.renderer.js +34 -0
- package/src/subnet/subnetSelectField.directive.html +21 -0
- package/src/subnet/subnetSelectField.directive.js +24 -0
- package/src/validation/applicationName.validator.js +114 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { StateService } from '@uirouter/angularjs';
|
|
2
|
+
import type { IScope } from 'angular';
|
|
3
|
+
import type { IModalInstanceService } from 'angular-ui-bootstrap';
|
|
4
|
+
import { trimEnd } from 'lodash';
|
|
5
|
+
|
|
6
|
+
import type { Application } from '@spinnaker/core';
|
|
7
|
+
import { InfrastructureCaches } from '@spinnaker/core';
|
|
8
|
+
import type { IGceLoadBalancer } from '../../../domain/loadBalancer';
|
|
9
|
+
|
|
10
|
+
export class CommonGceLoadBalancerCtrl {
|
|
11
|
+
public static $inject = ['$scope', 'application', '$uibModalInstance', '$state'];
|
|
12
|
+
constructor(
|
|
13
|
+
public $scope: IScope,
|
|
14
|
+
public application: Application,
|
|
15
|
+
public $uibModalInstance: IModalInstanceService,
|
|
16
|
+
private $state: StateService,
|
|
17
|
+
) {}
|
|
18
|
+
|
|
19
|
+
public onTaskComplete(loadBalancer: IGceLoadBalancer): void {
|
|
20
|
+
InfrastructureCaches.clearCache('healthChecks');
|
|
21
|
+
this.application.getDataSource('loadBalancers').refresh();
|
|
22
|
+
this.application
|
|
23
|
+
.getDataSource('loadBalancers')
|
|
24
|
+
.onNextRefresh(this.$scope, () => this.onApplicationRefresh(loadBalancer));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
public cancel(): void {
|
|
28
|
+
this.$uibModalInstance.dismiss();
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
public getName(lb: IGceLoadBalancer, application: Application): string {
|
|
32
|
+
const loadBalancerName = [application.name, lb.stack || '', lb.detail || ''].join('-');
|
|
33
|
+
return trimEnd(loadBalancerName, '-');
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
private onApplicationRefresh(loadBalancer: IGceLoadBalancer): void {
|
|
37
|
+
// If the user has already closed the modal, do not navigate to the new details view
|
|
38
|
+
if (this.$scope.$$destroyed) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
this.$uibModalInstance.close();
|
|
42
|
+
|
|
43
|
+
const newStateParams = {
|
|
44
|
+
name: loadBalancer.loadBalancerName,
|
|
45
|
+
accountId: loadBalancer.credentials,
|
|
46
|
+
region: loadBalancer.region,
|
|
47
|
+
provider: 'gce',
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
if (!this.$state.includes('**.loadBalancerDetails')) {
|
|
51
|
+
this.$state.go('.loadBalancerDetails', newStateParams);
|
|
52
|
+
} else {
|
|
53
|
+
this.$state.go('^.loadBalancerDetails', newStateParams);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { module } from 'angular';
|
|
2
|
+
import _ from 'lodash';
|
|
3
|
+
|
|
4
|
+
import type { IAccount, ILoadBalancersByAccount, INetwork, ISubnet, LoadBalancerReader } from '@spinnaker/core';
|
|
5
|
+
import { AccountService, LOAD_BALANCER_READ_SERVICE, NetworkReader, SubnetReader } from '@spinnaker/core';
|
|
6
|
+
import type { GceCertificateReader, IGceCertificate } from '../../../certificate/certificate.reader';
|
|
7
|
+
import { GCE_CERTIFICATE_READER } from '../../../certificate/certificate.reader';
|
|
8
|
+
import type { IGceHealthCheck } from '../../../domain/healthCheck';
|
|
9
|
+
import type { GceHealthCheckReader } from '../../../healthCheck/healthCheck.read.service';
|
|
10
|
+
import { GCE_HEALTH_CHECK_READER } from '../../../healthCheck/healthCheck.read.service';
|
|
11
|
+
|
|
12
|
+
export class GceCommonLoadBalancerCommandBuilder {
|
|
13
|
+
private dataFetchers: { [key: string]: Function } = {
|
|
14
|
+
existingLoadBalancerNamesByAccount: (): PromiseLike<_.Dictionary<any>> => {
|
|
15
|
+
return this.loadBalancerReader.listLoadBalancers('gce').then((loadBalancerList: ILoadBalancersByAccount[]) => {
|
|
16
|
+
return _.chain(loadBalancerList)
|
|
17
|
+
.map('accounts')
|
|
18
|
+
.flatten()
|
|
19
|
+
.groupBy('name') // account name
|
|
20
|
+
.mapValues((regionWrappers) =>
|
|
21
|
+
_.chain(regionWrappers)
|
|
22
|
+
.map('regions')
|
|
23
|
+
.flatten()
|
|
24
|
+
.map('loadBalancers')
|
|
25
|
+
.flatten()
|
|
26
|
+
.map('name') // load balancer name
|
|
27
|
+
.value(),
|
|
28
|
+
)
|
|
29
|
+
.value();
|
|
30
|
+
});
|
|
31
|
+
},
|
|
32
|
+
accounts: (): PromiseLike<IAccount[]> => AccountService.listAccounts('gce'),
|
|
33
|
+
networks: (): PromiseLike<INetwork[]> => NetworkReader.listNetworksByProvider('gce'),
|
|
34
|
+
subnets: (): PromiseLike<ISubnet[]> => SubnetReader.listSubnetsByProvider('gce'),
|
|
35
|
+
healthChecks: (): PromiseLike<IGceHealthCheck[]> => this.gceHealthCheckReader.listHealthChecks(),
|
|
36
|
+
certificates: (): PromiseLike<IGceCertificate[]> => this.gceCertificateReader.listCertificates(),
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
public static $inject = ['$q', 'loadBalancerReader', 'gceHealthCheckReader', 'gceCertificateReader'];
|
|
40
|
+
constructor(
|
|
41
|
+
private $q: ng.IQService,
|
|
42
|
+
private loadBalancerReader: LoadBalancerReader,
|
|
43
|
+
private gceHealthCheckReader: GceHealthCheckReader,
|
|
44
|
+
private gceCertificateReader: GceCertificateReader,
|
|
45
|
+
) {}
|
|
46
|
+
|
|
47
|
+
public getBackingData(dataTypes: string[]): PromiseLike<any> {
|
|
48
|
+
const promises = dataTypes.reduce(
|
|
49
|
+
(promisesByDataType: { [dataType: string]: PromiseLike<any> }, dataType: string) => {
|
|
50
|
+
if (this.dataFetchers[dataType]) {
|
|
51
|
+
promisesByDataType[dataType] = this.dataFetchers[dataType]();
|
|
52
|
+
}
|
|
53
|
+
return promisesByDataType;
|
|
54
|
+
},
|
|
55
|
+
{},
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
return this.$q.all(promises);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
public groupHealthChecksByAccountAndType(
|
|
62
|
+
healthChecks: IGceHealthCheck[],
|
|
63
|
+
): { [account: string]: { [healthCheckType: string]: IGceHealthCheck[] } } {
|
|
64
|
+
return _.chain(healthChecks)
|
|
65
|
+
.groupBy('account')
|
|
66
|
+
.mapValues((grouped: IGceHealthCheck[]) => _.groupBy(grouped, 'healthCheckType'))
|
|
67
|
+
.value();
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
public groupHealthCheckNamesByAccount(
|
|
71
|
+
healthChecks: IGceHealthCheck[],
|
|
72
|
+
namesToOmit: string[],
|
|
73
|
+
): { [account: string]: string[] } {
|
|
74
|
+
return _.chain(healthChecks)
|
|
75
|
+
.groupBy('account')
|
|
76
|
+
.mapValues((grouped: IGceHealthCheck[]) => _.chain(grouped).map('name').difference(namesToOmit).value())
|
|
77
|
+
.value() as { [account: string]: string[] };
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export const GCE_COMMON_LOAD_BALANCER_COMMAND_BUILDER = 'spinnaker.gce.commonLoadBalancerCommandBuilder.service';
|
|
82
|
+
|
|
83
|
+
module(GCE_COMMON_LOAD_BALANCER_COMMAND_BUILDER, [
|
|
84
|
+
LOAD_BALANCER_READ_SERVICE,
|
|
85
|
+
GCE_CERTIFICATE_READER,
|
|
86
|
+
GCE_HEALTH_CHECK_READER,
|
|
87
|
+
]).service('gceCommonLoadBalancerCommandBuilder', GceCommonLoadBalancerCommandBuilder);
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
<ng-form name="healthCheckForm" novalidate>
|
|
2
|
+
<div class="container-fluid form-horizontal">
|
|
3
|
+
<div class="form-group">
|
|
4
|
+
<div class="col-md-12 well alert-danger" ng-if="healthCheckForm.healthCheckName.$error.validateUnique">
|
|
5
|
+
<validation-error message="There is already a health check with that name."></validation-error>
|
|
6
|
+
</div>
|
|
7
|
+
<div
|
|
8
|
+
class="col-md-12 well alert-danger"
|
|
9
|
+
ng-if="healthCheckForm.healthCheckName.$error.pattern || healthCheckForm.healthCheckName.$error.max"
|
|
10
|
+
>
|
|
11
|
+
<validation-error
|
|
12
|
+
message="Name must start with a lowercase letter followed by up to 62 lowercase letters,
|
|
13
|
+
numbers, or hyphens, and cannot end with a hyphen."
|
|
14
|
+
>
|
|
15
|
+
</validation-error>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<div class="form-group">
|
|
20
|
+
<div class="col-md-4 sm-label-right">Protocol</div>
|
|
21
|
+
<div class="col-md-4">
|
|
22
|
+
<select
|
|
23
|
+
class="form-control input-sm"
|
|
24
|
+
ng-change="$ctrl.onProtocolChange()"
|
|
25
|
+
ng-options="protocol as protocol for protocol in ['HTTP', 'HTTPS', 'TCP', 'SSL']"
|
|
26
|
+
ng-model="$ctrl.healthCheck.healthCheckType"
|
|
27
|
+
></select>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<div class="form-group">
|
|
32
|
+
<div class="col-md-4 sm-label-right">Name</div>
|
|
33
|
+
|
|
34
|
+
<div class="col-md-4" ng-if="$ctrl.editExisting">
|
|
35
|
+
<ui-select
|
|
36
|
+
ng-model="$ctrl.healthCheckPlaceholder"
|
|
37
|
+
on-select="$ctrl.onHealthCheckSelect($item)"
|
|
38
|
+
class="form-control input-sm"
|
|
39
|
+
>
|
|
40
|
+
<ui-select-match placeholder="Select...">
|
|
41
|
+
{{ $select.selected.name }}
|
|
42
|
+
</ui-select-match>
|
|
43
|
+
<ui-select-choices
|
|
44
|
+
repeat="healthCheck in $ctrl.existingHealthChecksForProtocol | filter: {name: $select.search}"
|
|
45
|
+
>
|
|
46
|
+
<div ng-bind-html="healthCheck.name | highlight: $select.search"></div>
|
|
47
|
+
</ui-select-choices>
|
|
48
|
+
</ui-select>
|
|
49
|
+
</div>
|
|
50
|
+
<div class="col-md-4" ng-if="!$ctrl.editExisting">
|
|
51
|
+
<input
|
|
52
|
+
class="form-control input-sm"
|
|
53
|
+
novalidate
|
|
54
|
+
type="text"
|
|
55
|
+
ng-pattern="/^[a-z]([-a-z0-9]*[a-z0-9])?$/"
|
|
56
|
+
name="healthCheckName"
|
|
57
|
+
max="63"
|
|
58
|
+
required
|
|
59
|
+
validate-unique="$ctrl.existingHealthCheckNames"
|
|
60
|
+
ng-model-options="{ debounce: 250 }"
|
|
61
|
+
ng-change="$ctrl.onHealthCheckNameChange($ctrl.healthCheckPlaceholder.name)"
|
|
62
|
+
ng-model="$ctrl.healthCheckPlaceholder.name"
|
|
63
|
+
/>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
|
|
67
|
+
<div class="form-group">
|
|
68
|
+
<div class="col-md-6 col-md-offset-4">
|
|
69
|
+
<a href class="small" ng-if="!$ctrl.editExisting" ng-click="$ctrl.toggleEditExisting()"
|
|
70
|
+
>Toggle for list of existing health checks</a
|
|
71
|
+
>
|
|
72
|
+
<a href class="small" ng-if="$ctrl.editExisting" ng-click="$ctrl.toggleEditExisting()">Toggle for text input</a>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
|
|
76
|
+
<div
|
|
77
|
+
class="form-group"
|
|
78
|
+
ng-if="$ctrl.healthCheck.healthCheckType === 'HTTP' || $ctrl.healthCheck.healthCheckType === 'HTTPS'"
|
|
79
|
+
>
|
|
80
|
+
<div class="col-md-4 sm-label-right">Request Path</div>
|
|
81
|
+
<div class="col-md-4">
|
|
82
|
+
<input class="form-control input-sm" required ng-model="$ctrl.healthCheck.requestPath" />
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
|
|
86
|
+
<div class="form-group">
|
|
87
|
+
<div class="col-md-4 sm-label-right">Port</div>
|
|
88
|
+
<div class="col-md-4">
|
|
89
|
+
<input
|
|
90
|
+
type="number"
|
|
91
|
+
class="form-control input-sm"
|
|
92
|
+
required
|
|
93
|
+
min="1"
|
|
94
|
+
max="65535"
|
|
95
|
+
ng-model="$ctrl.healthCheck.port"
|
|
96
|
+
/>
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
|
|
100
|
+
<div class="form-group">
|
|
101
|
+
<div class="col-md-4 sm-label-right">
|
|
102
|
+
<b>Timeout</b><help-field key="loadBalancer.advancedSettings.healthTimeout"></help-field>
|
|
103
|
+
</div>
|
|
104
|
+
<div class="col-md-4">
|
|
105
|
+
<input
|
|
106
|
+
class="form-control input-sm"
|
|
107
|
+
type="number"
|
|
108
|
+
min="0"
|
|
109
|
+
max="{{:: $ctrl.max}}"
|
|
110
|
+
required
|
|
111
|
+
ng-model="$ctrl.healthCheck.timeoutSec"
|
|
112
|
+
/>
|
|
113
|
+
</div>
|
|
114
|
+
</div>
|
|
115
|
+
|
|
116
|
+
<div class="form-group">
|
|
117
|
+
<div class="col-md-4 sm-label-right">
|
|
118
|
+
<b>Interval</b><help-field key="gce.loadBalancer.advancedSettings.healthInterval"></help-field>
|
|
119
|
+
</div>
|
|
120
|
+
<div class="col-md-4">
|
|
121
|
+
<input
|
|
122
|
+
class="form-control input-sm"
|
|
123
|
+
type="number"
|
|
124
|
+
min="0"
|
|
125
|
+
max="{{:: $ctrl.max}}"
|
|
126
|
+
required
|
|
127
|
+
ng-model="$ctrl.healthCheck.checkIntervalSec"
|
|
128
|
+
/>
|
|
129
|
+
</div>
|
|
130
|
+
</div>
|
|
131
|
+
|
|
132
|
+
<div class="form-group">
|
|
133
|
+
<div class="col-md-4 sm-label-right">
|
|
134
|
+
<b>Healthy Threshold</b><help-field key="gce.loadBalancer.advancedSettings.healthyThreshold"></help-field>
|
|
135
|
+
</div>
|
|
136
|
+
<div class="col-md-4">
|
|
137
|
+
<input
|
|
138
|
+
class="form-control input-sm"
|
|
139
|
+
type="number"
|
|
140
|
+
min="0"
|
|
141
|
+
max="{{:: $ctrl.max}}"
|
|
142
|
+
required
|
|
143
|
+
ng-model="$ctrl.healthCheck.healthyThreshold"
|
|
144
|
+
/>
|
|
145
|
+
</div>
|
|
146
|
+
</div>
|
|
147
|
+
|
|
148
|
+
<div class="form-group">
|
|
149
|
+
<div class="col-md-4 sm-label-right">
|
|
150
|
+
<b>Unhealthy Threshold</b><help-field key="gce.loadBalancer.advancedSettings.unhealthyThreshold"></help-field>
|
|
151
|
+
</div>
|
|
152
|
+
<div class="col-md-4">
|
|
153
|
+
<input
|
|
154
|
+
class="form-control input-sm"
|
|
155
|
+
type="number"
|
|
156
|
+
min="0"
|
|
157
|
+
max="{{:: $ctrl.max}}"
|
|
158
|
+
required
|
|
159
|
+
ng-model="$ctrl.healthCheck.unhealthyThreshold"
|
|
160
|
+
/>
|
|
161
|
+
</div>
|
|
162
|
+
</div>
|
|
163
|
+
</div>
|
|
164
|
+
</ng-form>
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { IController } from 'angular';
|
|
2
|
+
import { module } from 'angular';
|
|
3
|
+
import { get } from 'lodash';
|
|
4
|
+
|
|
5
|
+
import type { IGceHealthCheck } from '../../../domain/index';
|
|
6
|
+
|
|
7
|
+
class HealthCheckCreateCtrl implements IController {
|
|
8
|
+
public healthCheck: IGceHealthCheck;
|
|
9
|
+
public healthCheckPlaceholder: IGceHealthCheck;
|
|
10
|
+
public healthChecksByAccountAndType: { [account: string]: { [healthCheckType: string]: IGceHealthCheck[] } };
|
|
11
|
+
public editExisting = false;
|
|
12
|
+
public existingHealthChecksForProtocol: IGceHealthCheck[];
|
|
13
|
+
public existingHealthCheckNames: string[];
|
|
14
|
+
public credentials: string;
|
|
15
|
+
public max = Number.MAX_SAFE_INTEGER;
|
|
16
|
+
|
|
17
|
+
public static $inject = ['$scope'];
|
|
18
|
+
constructor(private $scope: ng.IScope) {}
|
|
19
|
+
|
|
20
|
+
public $onInit(): void {
|
|
21
|
+
if (this.healthCheck.name) {
|
|
22
|
+
this.healthCheckPlaceholder = this.healthCheck;
|
|
23
|
+
this.existingHealthChecksForProtocol = this.healthChecksByAccountAndType[this.credentials][
|
|
24
|
+
this.healthCheck.healthCheckType
|
|
25
|
+
];
|
|
26
|
+
this.editExisting = true;
|
|
27
|
+
} else {
|
|
28
|
+
this.existingHealthChecksForProtocol = this.healthChecksByAccountAndType[this.credentials]['TCP'];
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
this.$scope.$watch('$ctrl.credentials', () => this.setExistingHealthChecksForProtocol());
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
public onProtocolChange(): void {
|
|
35
|
+
delete this.healthCheck.name;
|
|
36
|
+
delete this.healthCheckPlaceholder;
|
|
37
|
+
this.setExistingHealthChecksForProtocol();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
public setExistingHealthChecksForProtocol() {
|
|
41
|
+
this.existingHealthChecksForProtocol =
|
|
42
|
+
get<{}, IGceHealthCheck[]>(this, [
|
|
43
|
+
'healthChecksByAccountAndType',
|
|
44
|
+
this.credentials,
|
|
45
|
+
this.healthCheck.healthCheckType,
|
|
46
|
+
]) || [];
|
|
47
|
+
|
|
48
|
+
if (!this.existingHealthChecksForProtocol.find((healthCheck) => healthCheck.name === this.healthCheck.name)) {
|
|
49
|
+
delete this.healthCheck.name;
|
|
50
|
+
delete this.healthCheckPlaceholder;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
public toggleEditExisting(): void {
|
|
55
|
+
this.editExisting = !this.editExisting;
|
|
56
|
+
delete this.healthCheck.name;
|
|
57
|
+
delete this.healthCheckPlaceholder;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
public onHealthCheckSelect(selectedHealthCheck: IGceHealthCheck): void {
|
|
61
|
+
Object.assign(this.healthCheck, selectedHealthCheck);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
public onHealthCheckNameChange(typedName: string): void {
|
|
65
|
+
this.healthCheck.name = typedName;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const healthCheckCreateComponent: ng.IComponentOptions = {
|
|
70
|
+
bindings: {
|
|
71
|
+
healthCheck: '=',
|
|
72
|
+
credentials: '<',
|
|
73
|
+
healthChecksByAccountAndType: '<',
|
|
74
|
+
existingHealthCheckNames: '<',
|
|
75
|
+
},
|
|
76
|
+
templateUrl: require('./healthCheck.component.html'),
|
|
77
|
+
controller: HealthCheckCreateCtrl,
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export const GCE_HEALTH_CHECK_SELECTOR_COMPONENT = 'spinnaker.gce.healthCheckSelector.component';
|
|
81
|
+
|
|
82
|
+
module(GCE_HEALTH_CHECK_SELECTOR_COMPONENT, []).component('gceHealthCheckSelector', healthCheckCreateComponent);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import _ from 'lodash';
|
|
2
|
+
|
|
3
|
+
export interface IStringMap {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export const sessionAffinityViewToModelMap: IStringMap = {
|
|
8
|
+
None: 'NONE',
|
|
9
|
+
'Client IP': 'CLIENT_IP',
|
|
10
|
+
'Generated Cookie': 'GENERATED_COOKIE',
|
|
11
|
+
'Client IP and protocol': 'CLIENT_IP_PROTO',
|
|
12
|
+
'Client IP, port and protocol': 'CLIENT_IP_PORT_PROTO',
|
|
13
|
+
'Header Field': 'HEADER_FIELD',
|
|
14
|
+
'HTTP Cookie': 'HTTP_COOKIE',
|
|
15
|
+
'Strong Cookie': 'STRONG_COOKIE_AFFINITY',
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export const sessionAffinityModelToViewMap = _.invert<IStringMap, IStringMap>(sessionAffinityViewToModelMap);
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
<div class="container-fluid form-horizontal">
|
|
2
|
+
<hr ng-if="$ctrl.index > 0" />
|
|
3
|
+
<ng-form name="backendService">
|
|
4
|
+
<div class="form-group">
|
|
5
|
+
<div class="col-md-12 well alert-danger" ng-if="backendService.serviceName.$error.validateUnique">
|
|
6
|
+
<validation-error message="There is already a backend service with that name."></validation-error>
|
|
7
|
+
</div>
|
|
8
|
+
<div
|
|
9
|
+
class="col-md-12 well alert-danger"
|
|
10
|
+
ng-if="backendService.serviceName.$error.pattern || backendService.serviceName.$error.max"
|
|
11
|
+
>
|
|
12
|
+
<validation-error
|
|
13
|
+
message="Name must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen."
|
|
14
|
+
>
|
|
15
|
+
</validation-error>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<div class="form-group">
|
|
20
|
+
<div class="col-md-4 sm-label-right">Name</div>
|
|
21
|
+
|
|
22
|
+
<div class="col-md-4" ng-if="$ctrl.editExisting">
|
|
23
|
+
<ui-select
|
|
24
|
+
ng-model="$ctrl.backendService"
|
|
25
|
+
on-select="$ctrl.onBackendServiceSelect($item)"
|
|
26
|
+
class="form-control input-sm"
|
|
27
|
+
>
|
|
28
|
+
<ui-select-match placeholder="Select...">
|
|
29
|
+
{{ $select.selected.name }}
|
|
30
|
+
</ui-select-match>
|
|
31
|
+
<ui-select-choices
|
|
32
|
+
repeat="backendService in $ctrl.backingData.backendServices | filter: {name: $select.search, account: $ctrl.loadBalancer.credentials}"
|
|
33
|
+
>
|
|
34
|
+
<div ng-bind-html="backendService.name | highlight: $select.search"></div>
|
|
35
|
+
</ui-select-choices>
|
|
36
|
+
</ui-select>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<div class="col-md-4" ng-if="!$ctrl.editExisting">
|
|
40
|
+
<input
|
|
41
|
+
class="form-control input-sm"
|
|
42
|
+
required
|
|
43
|
+
type="text"
|
|
44
|
+
name="serviceName"
|
|
45
|
+
ng-pattern="/^[a-z]([-a-z0-9]*[a-z0-9])?$/"
|
|
46
|
+
max="63"
|
|
47
|
+
validate-unique="$ctrl.getAllServiceNames()"
|
|
48
|
+
ng-model-options="{ debounce: 250 }"
|
|
49
|
+
ng-model="$ctrl.backendService.name"
|
|
50
|
+
/>
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
<div class="col-md-2">
|
|
54
|
+
<button class="btn btn-sm btn-default" ng-click="$ctrl.deleteService()">
|
|
55
|
+
<span class="glyphicon glyphicon-trash visible-lg-inline"></span>
|
|
56
|
+
<span>Delete</span>
|
|
57
|
+
</button>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
|
|
61
|
+
<div class="form-group">
|
|
62
|
+
<div class="col-md-6 col-md-offset-4">
|
|
63
|
+
<a href class="small" ng-if="!$ctrl.editExisting" ng-click="$ctrl.toggleEditExisting()"
|
|
64
|
+
>Toggle for list of existing backend services</a
|
|
65
|
+
>
|
|
66
|
+
<a href class="small" ng-if="$ctrl.editExisting" ng-click="$ctrl.toggleEditExisting()">Toggle for text input</a>
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
|
|
70
|
+
<div class="form-group">
|
|
71
|
+
<div class="col-md-4 sm-label-right">
|
|
72
|
+
<b>Health Check</b>
|
|
73
|
+
</div>
|
|
74
|
+
<div class="col-md-4">
|
|
75
|
+
<ui-select
|
|
76
|
+
ng-model="$ctrl.backendService.healthCheck"
|
|
77
|
+
required
|
|
78
|
+
on-select="$ctrl.command.onHealthCheckSelected($item, $ctrl.command)"
|
|
79
|
+
class="form-control input-sm"
|
|
80
|
+
>
|
|
81
|
+
<ui-select-match placeholder="Select...">
|
|
82
|
+
{{ $select.selected }}
|
|
83
|
+
</ui-select-match>
|
|
84
|
+
<ui-select-choices repeat="healthCheck in $ctrl.getAllHealthChecks() | filter: $select.search">
|
|
85
|
+
<div ng-bind-html="healthCheck | highlight: $select.search"></div>
|
|
86
|
+
</ui-select-choices>
|
|
87
|
+
</ui-select>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
|
|
91
|
+
<div class="form-group">
|
|
92
|
+
<div class="col-md-4 sm-label-right">
|
|
93
|
+
<b>Session Affinity</b>
|
|
94
|
+
</div>
|
|
95
|
+
<div class="col-md-4">
|
|
96
|
+
<ui-select ng-model="$ctrl.backendService.sessionAffinity" required class="form-control input-sm">
|
|
97
|
+
<ui-select-match placeholder="Select...">
|
|
98
|
+
{{ $select.selected }}
|
|
99
|
+
</ui-select-match>
|
|
100
|
+
<ui-select-choices repeat="sessionAffinity in $ctrl.getSessionAffinitySuggestions() | filter: $select.search">
|
|
101
|
+
<div ng-bind-html="sessionAffinity | highlight: $select.search"></div>
|
|
102
|
+
</ui-select-choices>
|
|
103
|
+
</ui-select>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
|
|
107
|
+
<div class="form-group">
|
|
108
|
+
<div class="col-md-4 sm-label-right">
|
|
109
|
+
<b>Port Name</b>
|
|
110
|
+
<help-field key="gce.loadBalancer.portName"></help-field>
|
|
111
|
+
</div>
|
|
112
|
+
<div class="col-md-4">
|
|
113
|
+
<input required type="string" class="form-control input-sm" ng-model="$ctrl.backendService.portName" />
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
|
|
117
|
+
<div class="form-group">
|
|
118
|
+
<div class="col-md-4 sm-label-right">
|
|
119
|
+
Connection Draining
|
|
120
|
+
<help-field key="gce.loadBalancer.connectionDraining"></help-field>
|
|
121
|
+
</div>
|
|
122
|
+
<div class="col-md-4">
|
|
123
|
+
<input
|
|
124
|
+
type="number"
|
|
125
|
+
class="form-control input-sm"
|
|
126
|
+
ng-model="$ctrl.backendService.connectionDrainingTimeoutSec"
|
|
127
|
+
/>
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
|
|
131
|
+
<div ng-if="$ctrl.loadBalancer.loadBalancerType === 'HTTP'" class="form-group">
|
|
132
|
+
<div class="col-md-4 sm-label-right">
|
|
133
|
+
<b>Enable CDN</b>
|
|
134
|
+
</div>
|
|
135
|
+
<div class="col-md-4">
|
|
136
|
+
<input type="checkbox" ng-model="$ctrl.backendService.enableCDN" />
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
139
|
+
|
|
140
|
+
<div class="form-group" ng-if="$ctrl.backendService.sessionAffinity === 'Generated Cookie'">
|
|
141
|
+
<div class="col-md-4 sm-label-right">
|
|
142
|
+
<b>Affinity Cookie TTL Seconds</b>
|
|
143
|
+
</div>
|
|
144
|
+
<div class="col-md-4">
|
|
145
|
+
<input
|
|
146
|
+
ng-model="$ctrl.backendService.affinityCookieTtlSec"
|
|
147
|
+
required
|
|
148
|
+
type="number"
|
|
149
|
+
name="cookieTtl"
|
|
150
|
+
min="0"
|
|
151
|
+
max="{{ $ctrl.maxCookieTtl }}"
|
|
152
|
+
class="form-control input-sm"
|
|
153
|
+
/>
|
|
154
|
+
</div>
|
|
155
|
+
</div>
|
|
156
|
+
</ng-form>
|
|
157
|
+
</div>
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import { module } from 'angular';
|
|
4
|
+
import _ from 'lodash';
|
|
5
|
+
import { BackendServiceTemplate } from '../templates';
|
|
6
|
+
|
|
7
|
+
export const GOOGLE_LOADBALANCER_CONFIGURE_HTTP_BACKENDSERVICE_BACKENDSERVICE_COMPONENT =
|
|
8
|
+
'spinnaker.deck.gce.httpLoadBalancer.backendService.component';
|
|
9
|
+
export const name = GOOGLE_LOADBALANCER_CONFIGURE_HTTP_BACKENDSERVICE_BACKENDSERVICE_COMPONENT; // for backwards compatibility
|
|
10
|
+
module(GOOGLE_LOADBALANCER_CONFIGURE_HTTP_BACKENDSERVICE_BACKENDSERVICE_COMPONENT, []).component(
|
|
11
|
+
'gceHttpLoadBalancerBackendServiceSelector',
|
|
12
|
+
{
|
|
13
|
+
bindings: {
|
|
14
|
+
deleteService: '&',
|
|
15
|
+
backendService: '=',
|
|
16
|
+
command: '=',
|
|
17
|
+
index: '=',
|
|
18
|
+
},
|
|
19
|
+
templateUrl: require('./backendService.component.html'),
|
|
20
|
+
controller: function () {
|
|
21
|
+
this.$onInit = () => {
|
|
22
|
+
this.backingData = this.command.backingData;
|
|
23
|
+
this.loadBalancer = this.command.loadBalancer;
|
|
24
|
+
const servicesByName = this.backingData.backendServicesKeyedByName;
|
|
25
|
+
|
|
26
|
+
this.onBackendServiceSelect = (selectedBackendService) => {
|
|
27
|
+
assign(selectedBackendService);
|
|
28
|
+
this.command.onHealthCheckSelected(selectedBackendService.healthCheck, this.command);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
this.toggleEditExisting = () => {
|
|
32
|
+
this.editExisting = !this.editExisting;
|
|
33
|
+
if (!this.editExisting) {
|
|
34
|
+
const template = new BackendServiceTemplate();
|
|
35
|
+
assign(template);
|
|
36
|
+
} else {
|
|
37
|
+
delete this.backendService.name;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
this.getAllHealthChecks = () => {
|
|
42
|
+
const allHealthChecks = this.loadBalancer.healthChecks.concat(this.backingData.healthChecks);
|
|
43
|
+
return _.chain(allHealthChecks)
|
|
44
|
+
.filter((hc) => hc.account === this.loadBalancer.credentials || !hc.account)
|
|
45
|
+
.map((hc) => hc.name)
|
|
46
|
+
.uniq()
|
|
47
|
+
.value();
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
this.getSessionAffinitySuggestions = () => {
|
|
51
|
+
if (this.loadBalancer.loadBalancerType === 'HTTP') {
|
|
52
|
+
return ['None', 'Client IP', 'Generated Cookie'];
|
|
53
|
+
} else {
|
|
54
|
+
return ['None', 'Client IP', 'Generated Cookie', 'Header Field', 'HTTP Cookie'];
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
this.getAllServiceNames = () => {
|
|
59
|
+
return this.command.backingData.backendServices
|
|
60
|
+
.filter((service) => service.account === this.loadBalancer.credentials)
|
|
61
|
+
.map((service) => service.name);
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
this.maxCookieTtl = 60 * 60 * 24; // One day.
|
|
65
|
+
|
|
66
|
+
const getBackendServiceName = () => {
|
|
67
|
+
return _.get(this, 'backendService.name');
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
if (servicesByName[getBackendServiceName()]) {
|
|
71
|
+
this.editExisting = true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
const assign = (toAssign) => {
|
|
75
|
+
this.loadBalancer.backendServices[this.index] = this.backendService = toAssign;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
);
|