@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,224 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import UIROUTER_ANGULARJS from '@uirouter/angularjs';
|
|
4
|
+
import { module } from 'angular';
|
|
5
|
+
|
|
6
|
+
import { AccountService, LoadBalancerWriter, ModalWizard, TaskMonitor } from '@spinnaker/core';
|
|
7
|
+
|
|
8
|
+
import { GOOGLE_GCEREGIONSELECTFIELD_DIRECTIVE } from '../../../gceRegionSelectField.directive';
|
|
9
|
+
import { GOOGLE_LOADBALANCER_LOADBALANCER_TRANSFORMER } from '../../loadBalancer.transformer';
|
|
10
|
+
|
|
11
|
+
export const GOOGLE_LOADBALANCER_CONFIGURE_NETWORK_CREATELOADBALANCER_CONTROLLER =
|
|
12
|
+
'spinnaker.loadBalancer.gce.create.controller';
|
|
13
|
+
export const name = GOOGLE_LOADBALANCER_CONFIGURE_NETWORK_CREATELOADBALANCER_CONTROLLER; // for backwards compatibility
|
|
14
|
+
module(GOOGLE_LOADBALANCER_CONFIGURE_NETWORK_CREATELOADBALANCER_CONTROLLER, [
|
|
15
|
+
UIROUTER_ANGULARJS,
|
|
16
|
+
GOOGLE_LOADBALANCER_LOADBALANCER_TRANSFORMER,
|
|
17
|
+
GOOGLE_GCEREGIONSELECTFIELD_DIRECTIVE,
|
|
18
|
+
]).controller('gceCreateLoadBalancerCtrl', [
|
|
19
|
+
'$scope',
|
|
20
|
+
'$uibModalInstance',
|
|
21
|
+
'$state',
|
|
22
|
+
'gceLoadBalancerTransformer',
|
|
23
|
+
'application',
|
|
24
|
+
'loadBalancer',
|
|
25
|
+
'isNew',
|
|
26
|
+
function ($scope, $uibModalInstance, $state, gceLoadBalancerTransformer, application, loadBalancer, isNew) {
|
|
27
|
+
const ctrl = this;
|
|
28
|
+
|
|
29
|
+
$scope.isNew = isNew;
|
|
30
|
+
|
|
31
|
+
$scope.pages = {
|
|
32
|
+
location: require('./createLoadBalancerProperties.html'),
|
|
33
|
+
listeners: require('./listeners.html'),
|
|
34
|
+
healthCheck: require('./healthCheck.html'),
|
|
35
|
+
advancedSettings: require('./advancedSettings.html'),
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
$scope.state = {
|
|
39
|
+
accountsLoaded: false,
|
|
40
|
+
submitting: false,
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
$scope.sessionAffinityOptions = [
|
|
44
|
+
{ value: 'NONE', name: 'None' },
|
|
45
|
+
{ value: 'CLIENT_IP', name: 'Client IP' },
|
|
46
|
+
{ value: 'CLIENT_IP_PROTO', name: 'Client IP and protocol' },
|
|
47
|
+
];
|
|
48
|
+
|
|
49
|
+
function onApplicationRefresh() {
|
|
50
|
+
// If the user has already closed the modal, do not navigate to the new details view
|
|
51
|
+
if ($scope.$$destroyed) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
$uibModalInstance.close();
|
|
55
|
+
const newStateParams = {
|
|
56
|
+
name: $scope.loadBalancer.name,
|
|
57
|
+
accountId: $scope.loadBalancer.credentials,
|
|
58
|
+
region: $scope.loadBalancer.region,
|
|
59
|
+
provider: 'gce',
|
|
60
|
+
};
|
|
61
|
+
if (!$state.includes('**.loadBalancerDetails')) {
|
|
62
|
+
$state.go('.loadBalancerDetails', newStateParams);
|
|
63
|
+
} else {
|
|
64
|
+
$state.go('^.loadBalancerDetails', newStateParams);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function onTaskComplete() {
|
|
69
|
+
application.loadBalancers.refresh();
|
|
70
|
+
application.loadBalancers.onNextRefresh($scope, onApplicationRefresh);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
$scope.taskMonitor = new TaskMonitor({
|
|
74
|
+
application: application,
|
|
75
|
+
title: (isNew ? 'Creating ' : 'Updating ') + 'your load balancer',
|
|
76
|
+
modalInstance: $uibModalInstance,
|
|
77
|
+
onTaskComplete: onTaskComplete,
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
function initializeEditMode() {}
|
|
81
|
+
|
|
82
|
+
function initializeCreateMode() {
|
|
83
|
+
AccountService.listAccounts('gce').then(function (accounts) {
|
|
84
|
+
$scope.accounts = accounts;
|
|
85
|
+
$scope.state.accountsLoaded = true;
|
|
86
|
+
|
|
87
|
+
const accountNames = _.map($scope.accounts, 'name');
|
|
88
|
+
if (accountNames.length && !accountNames.includes($scope.loadBalancer.credentials)) {
|
|
89
|
+
$scope.loadBalancer.credentials = accountNames[0];
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
ctrl.accountUpdated();
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
function updateLoadBalancerNames() {
|
|
97
|
+
const account = $scope.loadBalancer.credentials;
|
|
98
|
+
|
|
99
|
+
const accountLoadBalancersByRegion = {};
|
|
100
|
+
application
|
|
101
|
+
.getDataSource('loadBalancers')
|
|
102
|
+
.refresh(true)
|
|
103
|
+
.then(() => {
|
|
104
|
+
application.getDataSource('loadBalancers').data.forEach((loadBalancer) => {
|
|
105
|
+
if (loadBalancer.account === account) {
|
|
106
|
+
accountLoadBalancersByRegion[loadBalancer.region] =
|
|
107
|
+
accountLoadBalancersByRegion[loadBalancer.region] || [];
|
|
108
|
+
accountLoadBalancersByRegion[loadBalancer.region].push(loadBalancer.name);
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
$scope.existingLoadBalancerNames = _.flatten(_.map(accountLoadBalancersByRegion));
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// initialize controller
|
|
117
|
+
if (loadBalancer) {
|
|
118
|
+
$scope.loadBalancer = gceLoadBalancerTransformer.convertLoadBalancerForEditing(loadBalancer);
|
|
119
|
+
initializeEditMode();
|
|
120
|
+
} else {
|
|
121
|
+
$scope.loadBalancer = gceLoadBalancerTransformer.constructNewLoadBalancerTemplate();
|
|
122
|
+
updateLoadBalancerNames();
|
|
123
|
+
initializeCreateMode();
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// Controller API
|
|
127
|
+
|
|
128
|
+
this.requiresHealthCheckPath = function () {
|
|
129
|
+
return $scope.loadBalancer.healthCheckProtocol && $scope.loadBalancer.healthCheckProtocol.indexOf('HTTP') === 0;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
this.prependForwardSlash = (text) => {
|
|
133
|
+
return text && text.indexOf('/') !== 0 ? `/${text}` : text;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
this.updateName = function () {
|
|
137
|
+
$scope.loadBalancer.name = this.getName();
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
this.getName = function () {
|
|
141
|
+
const loadBalancer = $scope.loadBalancer;
|
|
142
|
+
const loadBalancerName = [application.name, loadBalancer.stack || '', loadBalancer.detail || ''].join('-');
|
|
143
|
+
return _.trimEnd(loadBalancerName, '-');
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
this.accountUpdated = function () {
|
|
147
|
+
AccountService.getRegionsForAccount($scope.loadBalancer.credentials).then(function (regions) {
|
|
148
|
+
if (_.isArray(regions)) {
|
|
149
|
+
$scope.regions = _.map(regions, 'name');
|
|
150
|
+
} else {
|
|
151
|
+
// TODO(duftler): Remove this once we finish deprecating the old style regions/zones in clouddriver GCE credentials.
|
|
152
|
+
$scope.regions = _.keys(regions);
|
|
153
|
+
}
|
|
154
|
+
ctrl.regionUpdated();
|
|
155
|
+
});
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
this.regionUpdated = function () {
|
|
159
|
+
updateLoadBalancerNames();
|
|
160
|
+
ctrl.updateName();
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
this.setVisibilityHealthCheckTab = function () {
|
|
164
|
+
const wizard = ModalWizard;
|
|
165
|
+
|
|
166
|
+
if ($scope.loadBalancer.listeners[0].healthCheck) {
|
|
167
|
+
wizard.includePage('Health Check');
|
|
168
|
+
wizard.markIncomplete('Health Check');
|
|
169
|
+
wizard.includePage('Advanced Settings');
|
|
170
|
+
wizard.markIncomplete('Advanced Settings');
|
|
171
|
+
} else {
|
|
172
|
+
wizard.excludePage('Health Check');
|
|
173
|
+
wizard.markComplete('Health Check');
|
|
174
|
+
wizard.excludePage('Advanced Settings');
|
|
175
|
+
wizard.markComplete('Advanced Settings');
|
|
176
|
+
wizard.markComplete('Listener');
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
this.submit = function () {
|
|
181
|
+
const descriptor = isNew ? 'Create' : 'Update';
|
|
182
|
+
|
|
183
|
+
$scope.taskMonitor.submit(function () {
|
|
184
|
+
const params = {
|
|
185
|
+
cloudProvider: 'gce',
|
|
186
|
+
loadBalancerName: $scope.loadBalancer.name,
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
if ($scope.loadBalancer.listeners && $scope.loadBalancer.listeners.length > 0) {
|
|
190
|
+
const listener = $scope.loadBalancer.listeners[0];
|
|
191
|
+
|
|
192
|
+
if (listener.protocol) {
|
|
193
|
+
params.ipProtocol = listener.protocol;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
if (listener.portRange) {
|
|
197
|
+
params.portRange = listener.portRange;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
if (listener.healthCheck) {
|
|
201
|
+
params.healthCheck = {
|
|
202
|
+
port: $scope.loadBalancer.healthCheckPort,
|
|
203
|
+
requestPath: $scope.loadBalancer.healthCheckPath,
|
|
204
|
+
timeoutSec: $scope.loadBalancer.healthTimeout,
|
|
205
|
+
checkIntervalSec: $scope.loadBalancer.healthInterval,
|
|
206
|
+
healthyThreshold: $scope.loadBalancer.healthyThreshold,
|
|
207
|
+
unhealthyThreshold: $scope.loadBalancer.unhealthyThreshold,
|
|
208
|
+
};
|
|
209
|
+
} else {
|
|
210
|
+
params.healthCheck = null;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
params.sessionAffinity = $scope.loadBalancer.sessionAffinity;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
return LoadBalancerWriter.upsertLoadBalancer($scope.loadBalancer, application, descriptor, params);
|
|
217
|
+
});
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
this.cancel = function () {
|
|
221
|
+
$uibModalInstance.dismiss();
|
|
222
|
+
};
|
|
223
|
+
},
|
|
224
|
+
]);
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import * as angular from 'angular';
|
|
4
|
+
import { ApplicationModelBuilder, ModalWizard } from '@spinnaker/core';
|
|
5
|
+
|
|
6
|
+
describe('Controller: gceCreateLoadBalancerCtrl', function () {
|
|
7
|
+
// load the controller's module
|
|
8
|
+
beforeEach(function () {
|
|
9
|
+
window.module(require('./createLoadBalancer.controller').name);
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
// Initialize the controller and a mock scope
|
|
13
|
+
beforeEach(
|
|
14
|
+
window.inject(function ($controller, $rootScope) {
|
|
15
|
+
this.$scope = $rootScope.$new();
|
|
16
|
+
const app = ApplicationModelBuilder.createApplicationForTests('app', {
|
|
17
|
+
key: 'loadBalancers',
|
|
18
|
+
lazy: true,
|
|
19
|
+
defaultData: [],
|
|
20
|
+
});
|
|
21
|
+
this.ctrl = $controller('gceCreateLoadBalancerCtrl', {
|
|
22
|
+
$scope: this.$scope,
|
|
23
|
+
$uibModalInstance: { dismiss: angular.noop, result: { then: angular.noop } },
|
|
24
|
+
application: app,
|
|
25
|
+
loadBalancer: null,
|
|
26
|
+
isNew: true,
|
|
27
|
+
});
|
|
28
|
+
}),
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
it('requires health check path for HTTP/S', function () {
|
|
32
|
+
const loadBalancer = {
|
|
33
|
+
healthCheckProtocol: 'HTTP',
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
this.$scope.loadBalancer = loadBalancer;
|
|
37
|
+
|
|
38
|
+
expect(this.ctrl.requiresHealthCheckPath()).toBe(true);
|
|
39
|
+
|
|
40
|
+
loadBalancer.healthCheckProtocol = 'HTTPS';
|
|
41
|
+
expect(this.ctrl.requiresHealthCheckPath()).toBe(true);
|
|
42
|
+
|
|
43
|
+
loadBalancer.healthCheckProtocol = 'SSL';
|
|
44
|
+
expect(this.ctrl.requiresHealthCheckPath()).toBe(false);
|
|
45
|
+
|
|
46
|
+
loadBalancer.healthCheckProtocol = 'TCP';
|
|
47
|
+
expect(this.ctrl.requiresHealthCheckPath()).toBe(false);
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
it('should update name', function () {
|
|
51
|
+
const lb = this.$scope.loadBalancer;
|
|
52
|
+
expect(lb).toBeDefined();
|
|
53
|
+
expect(lb.name).toBeUndefined();
|
|
54
|
+
|
|
55
|
+
this.ctrl.updateName();
|
|
56
|
+
expect(lb.name).toBe('app');
|
|
57
|
+
|
|
58
|
+
this.$scope.loadBalancer.stack = 'testStack';
|
|
59
|
+
this.ctrl.updateName();
|
|
60
|
+
expect(lb.name).toBe('app-testStack');
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
it('should make the health check tab invisible then visible again', function () {
|
|
64
|
+
spyOn(ModalWizard, 'includePage');
|
|
65
|
+
spyOn(ModalWizard, 'markIncomplete');
|
|
66
|
+
spyOn(ModalWizard, 'excludePage');
|
|
67
|
+
spyOn(ModalWizard, 'markComplete');
|
|
68
|
+
this.$scope.loadBalancer.listeners[0].healthCheck = false;
|
|
69
|
+
this.ctrl.setVisibilityHealthCheckTab();
|
|
70
|
+
expect(ModalWizard.excludePage.calls.count()).toEqual(2);
|
|
71
|
+
|
|
72
|
+
this.$scope.loadBalancer.listeners[0].healthCheck = true;
|
|
73
|
+
this.ctrl.setVisibilityHealthCheckTab();
|
|
74
|
+
expect(ModalWizard.includePage.calls.count()).toEqual(2);
|
|
75
|
+
});
|
|
76
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<form name="form" class="form-horizontal">
|
|
2
|
+
<v2-modal-wizard heading="Create New Load Balancer" task-monitor="taskMonitor" dismiss="$dismiss()">
|
|
3
|
+
<v2-wizard-page key="Location" label="Location">
|
|
4
|
+
<ng-include src="pages.location"></ng-include>
|
|
5
|
+
</v2-wizard-page>
|
|
6
|
+
<v2-wizard-page key="Listener" label="Listener" done="true">
|
|
7
|
+
<ng-include src="pages.listeners"></ng-include>
|
|
8
|
+
</v2-wizard-page>
|
|
9
|
+
<v2-wizard-page key="Health Check" label="Health Check" done="true">
|
|
10
|
+
<ng-include src="pages.healthCheck"></ng-include>
|
|
11
|
+
</v2-wizard-page>
|
|
12
|
+
<v2-wizard-page key="Advanced Settings" label="Advanced Settings" done="true">
|
|
13
|
+
<ng-include src="pages.advancedSettings"></ng-include>
|
|
14
|
+
</v2-wizard-page>
|
|
15
|
+
</v2-modal-wizard>
|
|
16
|
+
<div class="modal-footer">
|
|
17
|
+
<button ng-disabled="taskMonitor.submitting" class="btn btn-default" ng-click="ctrl.cancel()">Cancel</button>
|
|
18
|
+
<submit-button
|
|
19
|
+
is-disabled="form.$invalid || taskMonitor.submitting"
|
|
20
|
+
submitting="taskMonitor.submitting"
|
|
21
|
+
on-click="ctrl.submit()"
|
|
22
|
+
is-new="isNew"
|
|
23
|
+
></submit-button>
|
|
24
|
+
</div>
|
|
25
|
+
</form>
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
<div class="container-fluid form-horizontal">
|
|
2
|
+
<div ng-if="!state.accountsLoaded" style="height: 200px" class="horizontal center middle">
|
|
3
|
+
<loading-spinner size="'small'"></loading-spinner>
|
|
4
|
+
</div>
|
|
5
|
+
<div class="modal-body" ng-if="state.accountsLoaded">
|
|
6
|
+
<div class="form-group">
|
|
7
|
+
<div
|
|
8
|
+
class="col-md-12 well"
|
|
9
|
+
ng-class="{'alert-danger': form.loadBalancerName.$error.validateUnique, 'alert-info': !form.loadBalancerName.$error.validateUnique}"
|
|
10
|
+
>
|
|
11
|
+
<strong>Your load balancer will be named:</strong>
|
|
12
|
+
<span>{{ctrl.getName()}}</span>
|
|
13
|
+
<!-- Angular does not seem to run length validation on hidden inputs, hence the text + display:none -->
|
|
14
|
+
<input
|
|
15
|
+
type="text"
|
|
16
|
+
style="display: none"
|
|
17
|
+
ng-maxlength="63"
|
|
18
|
+
class="form-control input-sm"
|
|
19
|
+
ng-model="loadBalancer.name"
|
|
20
|
+
validate-unique="existingLoadBalancerNames"
|
|
21
|
+
validate-ignore-case="true"
|
|
22
|
+
name="loadBalancerName"
|
|
23
|
+
/>
|
|
24
|
+
<validation-error
|
|
25
|
+
ng-if="form.loadBalancerName.$error.validateUnique"
|
|
26
|
+
message="There is already a load balancer in {{loadBalancer.credentials}} with that name."
|
|
27
|
+
></validation-error>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="form-group">
|
|
31
|
+
<div class="col-md-3 sm-label-right">Account</div>
|
|
32
|
+
<div class="col-md-7">
|
|
33
|
+
<account-select-field
|
|
34
|
+
component="loadBalancer"
|
|
35
|
+
field="credentials"
|
|
36
|
+
accounts="accounts"
|
|
37
|
+
provider="'gce'"
|
|
38
|
+
on-change="ctrl.accountUpdated()"
|
|
39
|
+
></account-select-field>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
<gce-region-select-field
|
|
43
|
+
label-columns="3"
|
|
44
|
+
component="loadBalancer"
|
|
45
|
+
field="region"
|
|
46
|
+
account="loadBalancer.credentials"
|
|
47
|
+
on-change="ctrl.regionUpdated()"
|
|
48
|
+
regions="regions"
|
|
49
|
+
></gce-region-select-field>
|
|
50
|
+
<div class="form-group">
|
|
51
|
+
<div class="col-md-3 sm-label-right">Stack <help-field key="aws.loadBalancer.stack"></help-field></div>
|
|
52
|
+
<div class="col-md-3">
|
|
53
|
+
<input
|
|
54
|
+
type="text"
|
|
55
|
+
class="form-control input-sm"
|
|
56
|
+
ng-model="loadBalancer.stack"
|
|
57
|
+
name="stackName"
|
|
58
|
+
ng-change="ctrl.updateName()"
|
|
59
|
+
ng-pattern="/^[a-zA-Z0-9]*$/"
|
|
60
|
+
/>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="col-md-6 form-inline">
|
|
63
|
+
<label class="sm-label-right"> Detail <help-field key="gce.loadBalancer.detail"></help-field> </label>
|
|
64
|
+
<input
|
|
65
|
+
type="text"
|
|
66
|
+
class="form-control input-sm"
|
|
67
|
+
ng-model="loadBalancer.detail"
|
|
68
|
+
name="detailName"
|
|
69
|
+
ng-change="ctrl.updateName()"
|
|
70
|
+
ng-pattern="/^[a-zA-Z0-9-]*$/"
|
|
71
|
+
/>
|
|
72
|
+
</div>
|
|
73
|
+
<div class="col-md-7 col-md-offset-3" ng-if="form.stackName.$error.pattern">
|
|
74
|
+
<validation-error message="Stack can only contain letters and numbers."></validation-error>
|
|
75
|
+
</div>
|
|
76
|
+
<div class="col-md-7 col-md-offset-3" ng-if="form.detailName.$error.pattern">
|
|
77
|
+
<validation-error message="Detail can only contain letters, numbers, and dashes(-)."></validation-error>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="form-group">
|
|
81
|
+
<div class="col-md-9 col-md-offset-3" ng-if="form.loadBalancerName.$error.maxlength">
|
|
82
|
+
<validation-error message="Load Balancer name can only be 63 characters."></validation-error>
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<v2-modal-wizard
|
|
2
|
+
heading="Edit {{loadBalancer.name}}: {{loadBalancer.region}}: {{loadBalancer.credentials}}"
|
|
3
|
+
task-monitor="taskMonitor"
|
|
4
|
+
dismiss="$dismiss()"
|
|
5
|
+
>
|
|
6
|
+
<v2-wizard-page key="Listener" label="Listener" done="true">
|
|
7
|
+
<ng-include src="pages.listeners"></ng-include>
|
|
8
|
+
</v2-wizard-page>
|
|
9
|
+
<v2-wizard-page key="Health Check" label="Health Check" done="true" render="!!loadBalancer.listeners[0].healthCheck">
|
|
10
|
+
<ng-include src="pages.healthCheck"></ng-include>
|
|
11
|
+
</v2-wizard-page>
|
|
12
|
+
<v2-wizard-page
|
|
13
|
+
key="Advanced Settings"
|
|
14
|
+
label="Advanced Settings"
|
|
15
|
+
done="true"
|
|
16
|
+
render="!!loadBalancer.listeners[0].healthCheck"
|
|
17
|
+
>
|
|
18
|
+
<ng-include src="pages.advancedSettings"></ng-include>
|
|
19
|
+
</v2-wizard-page>
|
|
20
|
+
</v2-modal-wizard>
|
|
21
|
+
<div class="modal-footer">
|
|
22
|
+
<button ng-disabled="taskMonitor.submitting" class="btn btn-default" ng-click="ctrl.cancel()">Cancel</button>
|
|
23
|
+
<submit-button
|
|
24
|
+
is-disabled="form.$invalid || taskMonitor.submitting"
|
|
25
|
+
submitting="taskMonitor.submitting"
|
|
26
|
+
on-click="ctrl.submit()"
|
|
27
|
+
is-new="isNew"
|
|
28
|
+
></submit-button>
|
|
29
|
+
</div>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<div class="container-fluid form-horizontal">
|
|
2
|
+
<div class="col-md-4 sm-label-right">Ping</div>
|
|
3
|
+
<div class="col-md-8">
|
|
4
|
+
<table class="table table-condensed packed">
|
|
5
|
+
<thead>
|
|
6
|
+
<tr>
|
|
7
|
+
<th width="30%">Port</th>
|
|
8
|
+
<th><span ng-if="ctrl.requiresHealthCheckPath()">Path</span></th>
|
|
9
|
+
</tr>
|
|
10
|
+
</thead>
|
|
11
|
+
<tbody>
|
|
12
|
+
<tr>
|
|
13
|
+
<td>
|
|
14
|
+
<input
|
|
15
|
+
class="form-control input-sm"
|
|
16
|
+
type="number"
|
|
17
|
+
ng-model="loadBalancer.healthCheckPort"
|
|
18
|
+
required
|
|
19
|
+
min="0"
|
|
20
|
+
/>
|
|
21
|
+
</td>
|
|
22
|
+
<td>
|
|
23
|
+
<input
|
|
24
|
+
ng-if="ctrl.requiresHealthCheckPath()"
|
|
25
|
+
class="form-control input-sm"
|
|
26
|
+
type="text"
|
|
27
|
+
ng-change="loadBalancer.healthCheckPath = ctrl.prependForwardSlash(loadBalancer.healthCheckPath)"
|
|
28
|
+
ng-model="loadBalancer.healthCheckPath"
|
|
29
|
+
required
|
|
30
|
+
/>
|
|
31
|
+
</td>
|
|
32
|
+
</tr>
|
|
33
|
+
</tbody>
|
|
34
|
+
</table>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<div class="container-fluid form-horizontal">
|
|
2
|
+
<form name="listenerForm">
|
|
3
|
+
<div class="form-group">
|
|
4
|
+
<div class="alert alert-warning" ng-if="listenerForm.protocolSelect.$dirty || listenerForm.portRangeInput.$dirty">
|
|
5
|
+
<p>
|
|
6
|
+
<i class="fa fa-exclamation-triangle"></i>
|
|
7
|
+
Changing your load balancer's protocol or port range will cause the forwarding rule to be destroyed and
|
|
8
|
+
recreated. This will most likely cause the IP address of this load balancer to change. If you want to preserve
|
|
9
|
+
the IP for this load balancer, you need to reserve it and manipulate the forwarding rule in Google Cloud
|
|
10
|
+
Console.
|
|
11
|
+
</p>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="col-md-3 sm-label-right table-offset">Listener</div>
|
|
14
|
+
<div class="col-md-9">
|
|
15
|
+
<table class="table table-condensed packed">
|
|
16
|
+
<thead>
|
|
17
|
+
<tr>
|
|
18
|
+
<th>Protocol</th>
|
|
19
|
+
<th>
|
|
20
|
+
Port Range
|
|
21
|
+
<help-field key="gce.loadBalancer.portRange"></help-field>
|
|
22
|
+
</th>
|
|
23
|
+
</tr>
|
|
24
|
+
</thead>
|
|
25
|
+
<tbody>
|
|
26
|
+
<tr ng-repeat="listener in loadBalancer.listeners">
|
|
27
|
+
<td>
|
|
28
|
+
<select
|
|
29
|
+
class="form-control input-sm"
|
|
30
|
+
ng-model="listener.protocol"
|
|
31
|
+
ng-options="protocol for protocol in ['TCP', 'UDP']"
|
|
32
|
+
name="protocolSelect"
|
|
33
|
+
></select>
|
|
34
|
+
</td>
|
|
35
|
+
<td><input class="form-control input-sm" ng-model="listener.portRange" name="portRangeInput" /></td>
|
|
36
|
+
</tr>
|
|
37
|
+
<tr>
|
|
38
|
+
<td>
|
|
39
|
+
<label
|
|
40
|
+
><input
|
|
41
|
+
type="checkbox"
|
|
42
|
+
ng-model="loadBalancer.listeners[0].healthCheck"
|
|
43
|
+
ng-change="ctrl.setVisibilityHealthCheckTab()"
|
|
44
|
+
/>
|
|
45
|
+
Enable health check?
|
|
46
|
+
<help-field key="gce.loadBalancer.healthCheck"></help-field>
|
|
47
|
+
</label>
|
|
48
|
+
</td>
|
|
49
|
+
</tr>
|
|
50
|
+
</tbody>
|
|
51
|
+
</table>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
</form>
|
|
55
|
+
</div>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<div class="container-fluid form-horizontal">
|
|
2
|
+
<ng-form name="portName">
|
|
3
|
+
<div class="form-group">
|
|
4
|
+
<div class="col-md-4 sm-label-right">
|
|
5
|
+
Port Name
|
|
6
|
+
<help-field key="gce.loadBalancer.portName"></help-field>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="col-md-4">
|
|
9
|
+
<input
|
|
10
|
+
type="text"
|
|
11
|
+
required
|
|
12
|
+
class="form-control input-sm"
|
|
13
|
+
ng-model="ctrl.loadBalancer.backendService.portName"
|
|
14
|
+
/>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="form-group">
|
|
18
|
+
<div class="col-md-4 sm-label-right">
|
|
19
|
+
Connection Draining
|
|
20
|
+
<help-field key="gce.loadBalancer.connectionDraining"></help-field>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="col-md-4">
|
|
23
|
+
<input
|
|
24
|
+
type="number"
|
|
25
|
+
class="form-control input-sm"
|
|
26
|
+
ng-model="ctrl.loadBalancer.backendService.connectionDrainingTimeoutSec"
|
|
27
|
+
/>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</ng-form>
|
|
31
|
+
</div>
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
<div class="container-fluid form-horizontal">
|
|
2
|
+
<ng-form name="locationForm">
|
|
3
|
+
<div class="modal-body">
|
|
4
|
+
<div class="form-group">
|
|
5
|
+
<div
|
|
6
|
+
class="col-md-12 well"
|
|
7
|
+
ng-class="{'alert-danger': locationForm.loadBalancerName.$error.validateUnique, 'alert-info': !locationForm.loadBalancerName.$error.validateUnique}"
|
|
8
|
+
>
|
|
9
|
+
<strong>Your load balancer will be named:</strong>
|
|
10
|
+
<span>{{ctrl.getName(ctrl.loadBalancer, ctrl.application)}}</span>
|
|
11
|
+
<!-- Angular does not seem to run length validation on hidden inputs, hence the text + display:none -->
|
|
12
|
+
<input
|
|
13
|
+
type="text"
|
|
14
|
+
style="display: none"
|
|
15
|
+
ng-maxlength="63"
|
|
16
|
+
class="form-control input-sm"
|
|
17
|
+
ng-model="ctrl.loadBalancer.loadBalancerName"
|
|
18
|
+
validate-unique="ctrl.existingLoadBalancerNames"
|
|
19
|
+
validate-ignore-case="true"
|
|
20
|
+
name="loadBalancerName"
|
|
21
|
+
/>
|
|
22
|
+
<validation-error
|
|
23
|
+
ng-if="locationForm.loadBalancerName.$error.validateUnique"
|
|
24
|
+
message="There is already a load balancer in {{ctrl.loadBalancer.credentials}} with that name."
|
|
25
|
+
>
|
|
26
|
+
</validation-error>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="form-group">
|
|
30
|
+
<div class="col-md-2 sm-label-right">Account</div>
|
|
31
|
+
<div class="col-md-8">
|
|
32
|
+
<account-select-field
|
|
33
|
+
component="ctrl.loadBalancer"
|
|
34
|
+
field="credentials"
|
|
35
|
+
accounts="ctrl.accounts"
|
|
36
|
+
provider="'gce'"
|
|
37
|
+
on-change="ctrl.accountUpdated()"
|
|
38
|
+
></account-select-field>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
|
|
42
|
+
<div class="form-group">
|
|
43
|
+
<div class="col-md-2 sm-label-right">Region</div>
|
|
44
|
+
<div class="col-md-8">
|
|
45
|
+
<input readonly class="form-control input-sm" ng-model="ctrl.loadBalancer.region" />
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
<div class="form-group">
|
|
50
|
+
<div class="col-md-2 sm-label-right">Stack <help-field key="aws.loadBalancer.stack"></help-field></div>
|
|
51
|
+
<div class="col-md-3">
|
|
52
|
+
<input
|
|
53
|
+
type="text"
|
|
54
|
+
class="form-control input-sm"
|
|
55
|
+
ng-model="ctrl.loadBalancer.stack"
|
|
56
|
+
name="stackName"
|
|
57
|
+
ng-change="ctrl.updateName()"
|
|
58
|
+
ng-pattern="/^[a-z0-9]*$/"
|
|
59
|
+
/>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="col-md-2 sm-label-right">Detail<help-field key="gce.loadBalancer.detail"></help-field></div>
|
|
62
|
+
<div class="col-md-3">
|
|
63
|
+
<input
|
|
64
|
+
type="text"
|
|
65
|
+
class="form-control input-sm"
|
|
66
|
+
ng-model="ctrl.loadBalancer.detail"
|
|
67
|
+
name="detailName"
|
|
68
|
+
ng-change="ctrl.updateName()"
|
|
69
|
+
ng-pattern="/^[a-z0-9-]*$/"
|
|
70
|
+
/>
|
|
71
|
+
</div>
|
|
72
|
+
<div class="col-md-7 col-md-offset-3" ng-if="locationForm.stackName.$error.pattern">
|
|
73
|
+
<validation-error message="Stack can only contain letters and numbers."></validation-error>
|
|
74
|
+
</div>
|
|
75
|
+
<div class="col-md-7 col-md-offset-3" ng-if="locationForm.detailName.$error.pattern">
|
|
76
|
+
<validation-error message="Detail can only contain letters, numbers, and dashes(-)."></validation-error>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
<div class="form-group">
|
|
80
|
+
<div class="col-md-9 col-md-offset-3" ng-if="locationForm.loadBalancerName.$error.maxlength">
|
|
81
|
+
<validation-error message="Load Balancer name can only be 63 characters."></validation-error>
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
</ng-form>
|
|
86
|
+
</div>
|