@spinnaker/google 0.0.0-main-2
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,202 @@
|
|
|
1
|
+
<div class="details-panel">
|
|
2
|
+
<div ng-if="state.loading" class="header">
|
|
3
|
+
<div class="close-button">
|
|
4
|
+
<a class="btn btn-link" ui-sref="^">
|
|
5
|
+
<span class="glyphicon glyphicon-remove"></span>
|
|
6
|
+
</a>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="horizontal center middle">
|
|
9
|
+
<loading-spinner size="'small'"></loading-spinner>
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
<div ng-if="!state.loading" class="header">
|
|
14
|
+
<div class="close-button">
|
|
15
|
+
<a class="btn btn-link" ui-sref="^">
|
|
16
|
+
<span class="glyphicon glyphicon-remove"></span>
|
|
17
|
+
</a>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="header-text horizontal middle">
|
|
20
|
+
<span class="fa icon-sitemap"></span>
|
|
21
|
+
<h3 class="horizontal middle space-between flex-1" select-on-dbl-click>
|
|
22
|
+
{{loadBalancer.name}}
|
|
23
|
+
<render-if-feature feature="entityTags">
|
|
24
|
+
<entity-notifications
|
|
25
|
+
entity="loadBalancer"
|
|
26
|
+
application="ctrl.application"
|
|
27
|
+
placement="bottom"
|
|
28
|
+
h-offset-percent="90%"
|
|
29
|
+
entity-type="loadBalancer"
|
|
30
|
+
page-location="details"
|
|
31
|
+
on-update="ctrl.application.loadBalancers.refresh()"
|
|
32
|
+
></entity-notifications>
|
|
33
|
+
</render-if-feature>
|
|
34
|
+
</h3>
|
|
35
|
+
</div>
|
|
36
|
+
<div>
|
|
37
|
+
<div class="actions">
|
|
38
|
+
<div class="dropdown" uib-dropdown dropdown-append-to-body>
|
|
39
|
+
<button type="button" class="btn btn-sm btn-primary dropdown-toggle" uib-dropdown-toggle>
|
|
40
|
+
Load Balancer Actions <span class="caret"></span>
|
|
41
|
+
</button>
|
|
42
|
+
<ul class="dropdown-menu" uib-dropdown-menu role="menu">
|
|
43
|
+
<li><a href ng-click="ctrl.editLoadBalancer()">Edit Load Balancer</a></li>
|
|
44
|
+
<li ng-if="!loadBalancer.instances.length">
|
|
45
|
+
<a href ng-click="ctrl.deleteLoadBalancer()">Delete Load Balancer</a>
|
|
46
|
+
</li>
|
|
47
|
+
<li
|
|
48
|
+
ng-if="loadBalancer.instances.length"
|
|
49
|
+
class="disabled"
|
|
50
|
+
uib-tooltip="You must detach all instances before you can delete this load balancer."
|
|
51
|
+
>
|
|
52
|
+
<a href ng-click="ctrl.deleteLoadBalancer()">Delete Load Balancer</a>
|
|
53
|
+
</li>
|
|
54
|
+
<render-if-feature feature="entityTags">
|
|
55
|
+
<add-entity-tag-links
|
|
56
|
+
component="loadBalancer"
|
|
57
|
+
application="ctrl.application"
|
|
58
|
+
entity-type="loadBalancer"
|
|
59
|
+
on-update="ctrl.application.loadBalancers.refresh"
|
|
60
|
+
></add-entity-tag-links>
|
|
61
|
+
</render-if-feature>
|
|
62
|
+
</ul>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
<div ng-if="!state.loading" class="content">
|
|
68
|
+
<collapsible-section heading="Load Balancer Details" expanded="true">
|
|
69
|
+
<dl class="dl-horizontal dl-narrow">
|
|
70
|
+
<dt>Created</dt>
|
|
71
|
+
<dd>{{loadBalancer.elb.createdTime | timestamp}}</dd>
|
|
72
|
+
<dt>In</dt>
|
|
73
|
+
<dd><account-tag account="loadBalancer.account" pad="right"></account-tag></dd>
|
|
74
|
+
<dt>Region</dt>
|
|
75
|
+
<dd>{{loadBalancer.region}}</dd>
|
|
76
|
+
<dt>Type</dt>
|
|
77
|
+
<dd>
|
|
78
|
+
<gce-load-balancer-type load-balancer="loadBalancer"></gce-load-balancer-type>
|
|
79
|
+
</dd>
|
|
80
|
+
<dt ng-if="loadBalancer.network">Network</dt>
|
|
81
|
+
<dd ng-if="loadBalancer.network">{{ctrl.getNetworkId(loadBalancer)}}</dd>
|
|
82
|
+
<dt ng-if="loadBalancer.subnet">Subnet</dt>
|
|
83
|
+
<dd ng-if="loadBalancer.subnet">{{ctrl.getSubnetId(loadBalancer)}}</dd>
|
|
84
|
+
<dt ng-if="loadBalancer.serverGroups.length">Server Groups</dt>
|
|
85
|
+
<dd ng-if="loadBalancer.serverGroups.length">
|
|
86
|
+
<ul>
|
|
87
|
+
<li ng-repeat="serverGroup in loadBalancer.serverGroups | orderBy: ['isDisabled', '-name']">
|
|
88
|
+
<a
|
|
89
|
+
ui-sref="^.serverGroup({region: serverGroup.region,
|
|
90
|
+
accountId: serverGroup.account,
|
|
91
|
+
serverGroup: serverGroup.name,
|
|
92
|
+
provider: 'gce'})"
|
|
93
|
+
>
|
|
94
|
+
{{serverGroup.name}}
|
|
95
|
+
</a>
|
|
96
|
+
</li>
|
|
97
|
+
</ul>
|
|
98
|
+
</dd>
|
|
99
|
+
<div ng-if="!ctrl.isHttpLoadBalancer(loadBalancer) && loadBalancer.elb.dnsname">
|
|
100
|
+
<dt>DNS Name</dt>
|
|
101
|
+
<dd>
|
|
102
|
+
<a target="_blank" href="{{loadBalancer.elb.dns.protocol}}//{{loadBalancer.elb.dns.dnsname}}"
|
|
103
|
+
>{{loadBalancer.elb.dns.dnsname}}</a
|
|
104
|
+
>
|
|
105
|
+
<copy-to-clipboard
|
|
106
|
+
class="copy-to-clipboard copy-to-clipboard-sm"
|
|
107
|
+
text="loadBalancer.elb.dns.dnsname"
|
|
108
|
+
tool-tip="'Copy DNS Name to clipboard'"
|
|
109
|
+
>
|
|
110
|
+
</copy-to-clipboard>
|
|
111
|
+
</dd>
|
|
112
|
+
</div>
|
|
113
|
+
<div ng-if="ctrl.loadBalancer.loadBalancerType === 'HTTP'">
|
|
114
|
+
<dt>DNS Names</dt>
|
|
115
|
+
<dd>
|
|
116
|
+
<ul>
|
|
117
|
+
<li ng-repeat="dns in loadBalancer.elb.dns">
|
|
118
|
+
<a target="_blank" href="{{dns.protocol}}//{{dns.dnsname}}">{{dns.dnsname}}</a>
|
|
119
|
+
<copy-to-clipboard
|
|
120
|
+
class="copy-to-clipboard copy-to-clipboard-sm"
|
|
121
|
+
text="dns.dnsname"
|
|
122
|
+
tool-tip="'Copy DNS Name to clipboard'"
|
|
123
|
+
>
|
|
124
|
+
</copy-to-clipboard>
|
|
125
|
+
</li>
|
|
126
|
+
</ul>
|
|
127
|
+
</dd>
|
|
128
|
+
</div>
|
|
129
|
+
<div ng-if="ctrl.isHttpLoadBalancer(loadBalancer)">
|
|
130
|
+
<gce-host-and-path-rules-button
|
|
131
|
+
default-service="loadBalancer.defaultService"
|
|
132
|
+
load-balancer-name="loadBalancer.name"
|
|
133
|
+
host-rules="loadBalancer.hostRules"
|
|
134
|
+
>
|
|
135
|
+
</gce-host-and-path-rules-button>
|
|
136
|
+
</div>
|
|
137
|
+
</dl>
|
|
138
|
+
</collapsible-section>
|
|
139
|
+
<collapsible-section heading="Status" expanded="true">
|
|
140
|
+
<health-counts class="pull-left" container="loadBalancer.instanceCounts"></health-counts>
|
|
141
|
+
</collapsible-section>
|
|
142
|
+
<collapsible-section heading="Listeners">
|
|
143
|
+
<dl>
|
|
144
|
+
<dt>
|
|
145
|
+
Load Balancer → Instance
|
|
146
|
+
<help-field
|
|
147
|
+
ng-if="ctrl.isHttpLoadBalancer(loadBalancer) || loadBalancer.loadBalancerType === 'SSL' || loadBalancer.loadBalancerType === 'TCP'"
|
|
148
|
+
key="gce.httpLoadBalancer.namedPort"
|
|
149
|
+
></help-field>
|
|
150
|
+
</dt>
|
|
151
|
+
<dd ng-repeat="listener in loadBalancer.elb.listenerDescriptions">
|
|
152
|
+
{{listener.listener.protocol}}:{{listener.listener.loadBalancerPort}} →
|
|
153
|
+
{{listener.listener.instanceProtocol}}:{{listener.listener.instancePort}}
|
|
154
|
+
</dd>
|
|
155
|
+
</dl>
|
|
156
|
+
</collapsible-section>
|
|
157
|
+
<collapsible-section
|
|
158
|
+
heading="Backend Services"
|
|
159
|
+
ng-if="ctrl.isHttpLoadBalancer(loadBalancer) || loadBalancer.backendService"
|
|
160
|
+
>
|
|
161
|
+
<dl class="horizontal-when-filters-collapsed" ng-switch on="loadBalancer.loadBalancerType">
|
|
162
|
+
<div ng-repeat="service in loadBalancer.elb.backendServices" ng-switch-when="HTTP">
|
|
163
|
+
<hr ng-if="$index > 0" />
|
|
164
|
+
<gce-backend-service-details backend-service="service"></gce-backend-service-details>
|
|
165
|
+
</div>
|
|
166
|
+
|
|
167
|
+
<gce-backend-service-details
|
|
168
|
+
backend-service="loadBalancer.backendService"
|
|
169
|
+
ng-switch-default
|
|
170
|
+
></gce-backend-service-details>
|
|
171
|
+
</dl>
|
|
172
|
+
</collapsible-section>
|
|
173
|
+
<collapsible-section
|
|
174
|
+
ng-if="ctrl.isHttpLoadBalancer(loadBalancer) || loadBalancer.healthCheck || loadBalancer.backendService.healthCheck"
|
|
175
|
+
heading="Health Checks"
|
|
176
|
+
>
|
|
177
|
+
<dl class="horizontal-when-filters-collapsed" ng-switch on="loadBalancer.loadBalancerType">
|
|
178
|
+
<gce-health-check ng-switch-when="NETWORK" health-check="loadBalancer.healthCheck"></gce-health-check>
|
|
179
|
+
|
|
180
|
+
<div ng-switch-when="HTTP" ng-repeat="healthCheck in loadBalancer.elb.healthChecks">
|
|
181
|
+
<hr ng-if="$index > 0" />
|
|
182
|
+
<gce-health-check health-check="healthCheck"></gce-health-check>
|
|
183
|
+
</div>
|
|
184
|
+
|
|
185
|
+
<gce-health-check ng-switch-default health-check="loadBalancer.backendService.healthCheck"></gce-health-check>
|
|
186
|
+
</dl>
|
|
187
|
+
</collapsible-section>
|
|
188
|
+
<collapsible-section heading="Logs">
|
|
189
|
+
<ul>
|
|
190
|
+
<li ng-if="loadBalancer.logsLink">
|
|
191
|
+
<a href="{{loadBalancer.logsLink}}" target="_blank">Cloud Console Logs</a>
|
|
192
|
+
<copy-to-clipboard
|
|
193
|
+
class="copy-to-clipboard copy-to-clipboard-sm"
|
|
194
|
+
text="loadBalancer.logsLink"
|
|
195
|
+
tool-tip="'Copy to clipboard'"
|
|
196
|
+
>
|
|
197
|
+
</copy-to-clipboard>
|
|
198
|
+
</li>
|
|
199
|
+
</ul>
|
|
200
|
+
</collapsible-section>
|
|
201
|
+
</div>
|
|
202
|
+
</div>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import { module } from 'angular';
|
|
4
|
+
import _ from 'lodash';
|
|
5
|
+
|
|
6
|
+
export const GOOGLE_LOADBALANCER_DETAILS_LOADBALANCERTYPE_LOADBALANCERTYPE_COMPONENT =
|
|
7
|
+
'spinnaker.deck.gce.loadBalancer.loadBalancerType';
|
|
8
|
+
export const name = GOOGLE_LOADBALANCER_DETAILS_LOADBALANCERTYPE_LOADBALANCERTYPE_COMPONENT; // for backwards compatibility
|
|
9
|
+
module(GOOGLE_LOADBALANCER_DETAILS_LOADBALANCERTYPE_LOADBALANCERTYPE_COMPONENT, []).component('gceLoadBalancerType', {
|
|
10
|
+
template: '<span>{{ $ctrl.type }}</span>',
|
|
11
|
+
bindings: {
|
|
12
|
+
loadBalancer: '=',
|
|
13
|
+
},
|
|
14
|
+
controller: function () {
|
|
15
|
+
this.$onInit = () => {
|
|
16
|
+
this.type = (function (lb) {
|
|
17
|
+
if (lb.loadBalancerType === 'HTTP') {
|
|
18
|
+
if (_.isString(lb.certificate)) {
|
|
19
|
+
return 'HTTPS';
|
|
20
|
+
} else {
|
|
21
|
+
return 'HTTP';
|
|
22
|
+
}
|
|
23
|
+
} else {
|
|
24
|
+
return lb.loadBalancerType;
|
|
25
|
+
}
|
|
26
|
+
})(this.loadBalancer);
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { module } from 'angular';
|
|
2
|
+
import { uniq } from 'lodash';
|
|
3
|
+
|
|
4
|
+
import type { IGceHttpLoadBalancer, IGceLoadBalancer } from '../domain/loadBalancer';
|
|
5
|
+
|
|
6
|
+
export class GceHttpLoadBalancerUtils {
|
|
7
|
+
public static REGION = 'global';
|
|
8
|
+
|
|
9
|
+
public isHttpLoadBalancer(lb: IGceLoadBalancer): lb is IGceHttpLoadBalancer {
|
|
10
|
+
return (
|
|
11
|
+
(lb.provider === 'gce' || lb.type === 'gce') &&
|
|
12
|
+
(lb.loadBalancerType === 'HTTP' || lb.loadBalancerType === 'INTERNAL_MANAGED')
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
public normalizeLoadBalancerNamesForAccount(
|
|
17
|
+
loadBalancerNames: string[],
|
|
18
|
+
account: string,
|
|
19
|
+
loadBalancers: IGceLoadBalancer[],
|
|
20
|
+
): string[] {
|
|
21
|
+
// Assume that loadBalancers is a list of all GCE load balancers in an application
|
|
22
|
+
// (but possibly from several accounts), and has already been normalized (listener names mapped to URL map names).
|
|
23
|
+
const normalizedLoadBalancerNames: string[] = [];
|
|
24
|
+
loadBalancerNames.forEach((loadBalancerName) => {
|
|
25
|
+
const matchingUrlMap = loadBalancers.find((loadBalancer) => {
|
|
26
|
+
return (
|
|
27
|
+
account === loadBalancer.account &&
|
|
28
|
+
this.isHttpLoadBalancer(loadBalancer) &&
|
|
29
|
+
loadBalancer.listeners.map((listener) => listener.name).includes(loadBalancerName)
|
|
30
|
+
);
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
matchingUrlMap
|
|
34
|
+
? normalizedLoadBalancerNames.push(matchingUrlMap.name)
|
|
35
|
+
: normalizedLoadBalancerNames.push(loadBalancerName);
|
|
36
|
+
});
|
|
37
|
+
return uniq(normalizedLoadBalancerNames);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export const GCE_HTTP_LOAD_BALANCER_UTILS = 'spinnaker.gce.httpLoadBalancerUtils.service';
|
|
42
|
+
module(GCE_HTTP_LOAD_BALANCER_UTILS, []).service('gceHttpLoadBalancerUtils', GceHttpLoadBalancerUtils);
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { module } from 'angular';
|
|
2
|
+
import { cloneDeep, groupBy, map, partition } from 'lodash';
|
|
3
|
+
|
|
4
|
+
import type { IGceHttpLoadBalancer, IGceLoadBalancer } from '../domain/loadBalancer';
|
|
5
|
+
|
|
6
|
+
import type { GceHttpLoadBalancerUtils } from './httpLoadBalancerUtils.service';
|
|
7
|
+
import { GCE_HTTP_LOAD_BALANCER_UTILS } from './httpLoadBalancerUtils.service';
|
|
8
|
+
|
|
9
|
+
export class GceLoadBalancerSetTransformer {
|
|
10
|
+
private static normalizeHttpLoadBalancerGroup(group: IGceHttpLoadBalancer[]): IGceHttpLoadBalancer {
|
|
11
|
+
const normalized = cloneDeep(group[0]);
|
|
12
|
+
|
|
13
|
+
normalized.listeners = group.map((loadBalancer) => {
|
|
14
|
+
const port = loadBalancer.portRange ? GceLoadBalancerSetTransformer.parsePortRange(loadBalancer.portRange) : null;
|
|
15
|
+
return {
|
|
16
|
+
port,
|
|
17
|
+
name: loadBalancer.name,
|
|
18
|
+
certificate: loadBalancer.certificate,
|
|
19
|
+
ipAddress: loadBalancer.ipAddress,
|
|
20
|
+
subnet: loadBalancer.subnet,
|
|
21
|
+
};
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
normalized.name = normalized.urlMapName;
|
|
25
|
+
delete normalized.subnet;
|
|
26
|
+
return normalized;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
private static parsePortRange(portRange: string): string {
|
|
30
|
+
return portRange.split('-')[0];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public static $inject = ['gceHttpLoadBalancerUtils'];
|
|
34
|
+
constructor(private gceHttpLoadBalancerUtils: GceHttpLoadBalancerUtils) {}
|
|
35
|
+
|
|
36
|
+
public normalizeLoadBalancerSet = (loadBalancers: IGceLoadBalancer[]): IGceLoadBalancer[] => {
|
|
37
|
+
const [httpLoadBalancers, otherLoadBalancers] = partition(loadBalancers, (lb) =>
|
|
38
|
+
this.gceHttpLoadBalancerUtils.isHttpLoadBalancer(lb),
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
const groupedByUrlMap = groupBy(httpLoadBalancers, 'urlMapName');
|
|
42
|
+
const normalizedElSevenLoadBalancers = map(
|
|
43
|
+
groupedByUrlMap,
|
|
44
|
+
GceLoadBalancerSetTransformer.normalizeHttpLoadBalancerGroup,
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
return (normalizedElSevenLoadBalancers as IGceLoadBalancer[]).concat(otherLoadBalancers);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export const LOAD_BALANCER_SET_TRANSFORMER = 'spinnaker.gce.loadBalancer.setTransformer.service';
|
|
52
|
+
module(LOAD_BALANCER_SET_TRANSFORMER, [GCE_HTTP_LOAD_BALANCER_UTILS]).service(
|
|
53
|
+
'gceLoadBalancerSetTransformer',
|
|
54
|
+
GceLoadBalancerSetTransformer,
|
|
55
|
+
);
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import { module } from 'angular';
|
|
4
|
+
import _ from 'lodash';
|
|
5
|
+
|
|
6
|
+
import { GCEProviderSettings } from '../gce.settings';
|
|
7
|
+
|
|
8
|
+
export const GOOGLE_LOADBALANCER_LOADBALANCER_TRANSFORMER = 'spinnaker.gce.loadBalancer.transformer';
|
|
9
|
+
export const name = GOOGLE_LOADBALANCER_LOADBALANCER_TRANSFORMER; // for backwards compatibility
|
|
10
|
+
module(GOOGLE_LOADBALANCER_LOADBALANCER_TRANSFORMER, []).factory('gceLoadBalancerTransformer', [
|
|
11
|
+
'$q',
|
|
12
|
+
function ($q) {
|
|
13
|
+
function updateHealthCounts(container) {
|
|
14
|
+
const instances = container.instances;
|
|
15
|
+
const serverGroups = container.serverGroups || [container];
|
|
16
|
+
container.instanceCounts = {
|
|
17
|
+
up: instances.filter((instance) => {
|
|
18
|
+
return instance.health[0].state === 'InService';
|
|
19
|
+
}).length,
|
|
20
|
+
down: instances.filter((instance) => {
|
|
21
|
+
return instance.health[0].state === 'OutOfService';
|
|
22
|
+
}).length,
|
|
23
|
+
outOfService: serverGroups.reduce((acc, serverGroup) => {
|
|
24
|
+
return (
|
|
25
|
+
serverGroup.instances.filter((instance) => {
|
|
26
|
+
return instance.healthState === 'OutOfService';
|
|
27
|
+
}).length + acc
|
|
28
|
+
);
|
|
29
|
+
}, 0),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function transformInstance(instance, loadBalancer) {
|
|
34
|
+
instance.health = instance.health || {};
|
|
35
|
+
instance.provider = loadBalancer.type;
|
|
36
|
+
instance.account = loadBalancer.account;
|
|
37
|
+
instance.region = loadBalancer.region;
|
|
38
|
+
instance.health.type = 'LoadBalancer';
|
|
39
|
+
instance.healthState = instance.health.state
|
|
40
|
+
? instance.health.state === 'InService'
|
|
41
|
+
? 'Up'
|
|
42
|
+
: 'Down'
|
|
43
|
+
: 'OutOfService';
|
|
44
|
+
instance.health = [instance.health];
|
|
45
|
+
instance.loadBalancers = [loadBalancer.name];
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function normalizeLoadBalancer(loadBalancer) {
|
|
49
|
+
loadBalancer.serverGroups.forEach(function (serverGroup) {
|
|
50
|
+
serverGroup.account = loadBalancer.account;
|
|
51
|
+
if (serverGroup.detachedInstances) {
|
|
52
|
+
serverGroup.detachedInstances = serverGroup.detachedInstances.map(function (instanceId) {
|
|
53
|
+
return { id: instanceId };
|
|
54
|
+
});
|
|
55
|
+
serverGroup.instances = serverGroup.instances.concat(serverGroup.detachedInstances);
|
|
56
|
+
} else {
|
|
57
|
+
serverGroup.detachedInstances = [];
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
serverGroup.instances.forEach(function (instance) {
|
|
61
|
+
transformInstance(instance, loadBalancer);
|
|
62
|
+
});
|
|
63
|
+
updateHealthCounts(serverGroup);
|
|
64
|
+
});
|
|
65
|
+
const activeServerGroups = _.filter(loadBalancer.serverGroups, { isDisabled: false });
|
|
66
|
+
loadBalancer.provider = loadBalancer.type;
|
|
67
|
+
loadBalancer.instances = _.chain(activeServerGroups).map('instances').flatten().value();
|
|
68
|
+
loadBalancer.detachedInstances = _.chain(activeServerGroups).map('detachedInstances').flatten().value();
|
|
69
|
+
if (_.get(loadBalancer, 'backendService.healthCheck')) {
|
|
70
|
+
loadBalancer.backendService.healthCheck.timeout = loadBalancer.backendService.healthCheck.timeoutSec;
|
|
71
|
+
loadBalancer.backendService.healthCheck.interval = loadBalancer.backendService.healthCheck.checkIntervalSec;
|
|
72
|
+
}
|
|
73
|
+
updateHealthCounts(loadBalancer);
|
|
74
|
+
return $q.when(loadBalancer);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function convertLoadBalancerForEditing(loadBalancer) {
|
|
78
|
+
const toEdit = {
|
|
79
|
+
provider: 'gce',
|
|
80
|
+
region: loadBalancer.region,
|
|
81
|
+
credentials: loadBalancer.account,
|
|
82
|
+
listeners: [],
|
|
83
|
+
name: loadBalancer.name,
|
|
84
|
+
regionZones: loadBalancer.availabilityZones,
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
if (loadBalancer.elb) {
|
|
88
|
+
const elb = loadBalancer.elb;
|
|
89
|
+
|
|
90
|
+
toEdit.vpcId = elb.vpcid;
|
|
91
|
+
|
|
92
|
+
if (elb.listenerDescriptions) {
|
|
93
|
+
toEdit.listeners = elb.listenerDescriptions.map(function (description) {
|
|
94
|
+
const listener = description.listener;
|
|
95
|
+
return {
|
|
96
|
+
protocol: listener.protocol,
|
|
97
|
+
portRange: listener.loadBalancerPort,
|
|
98
|
+
healthCheck: elb.healthCheck !== undefined,
|
|
99
|
+
};
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
if (elb.healthCheck && elb.healthCheck.target) {
|
|
104
|
+
toEdit.healthTimeout = elb.healthCheck.timeout;
|
|
105
|
+
toEdit.healthInterval = elb.healthCheck.interval;
|
|
106
|
+
toEdit.healthyThreshold = elb.healthCheck.healthyThreshold;
|
|
107
|
+
toEdit.unhealthyThreshold = elb.healthCheck.unhealthyThreshold;
|
|
108
|
+
|
|
109
|
+
const healthCheck = loadBalancer.elb.healthCheck.target;
|
|
110
|
+
const protocolIndex = healthCheck.indexOf(':');
|
|
111
|
+
const pathIndex = healthCheck.indexOf('/');
|
|
112
|
+
|
|
113
|
+
if (protocolIndex !== -1 && pathIndex !== -1) {
|
|
114
|
+
toEdit.healthCheckProtocol = healthCheck.substring(0, protocolIndex);
|
|
115
|
+
toEdit.healthCheckPort = healthCheck.substring(protocolIndex + 1, pathIndex);
|
|
116
|
+
toEdit.healthCheckPath = healthCheck.substring(pathIndex);
|
|
117
|
+
if (!isNaN(toEdit.healthCheckPort)) {
|
|
118
|
+
toEdit.healthCheckPort = Number(toEdit.healthCheckPort);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
} else {
|
|
122
|
+
toEdit.healthCheckProtocol = 'HTTP';
|
|
123
|
+
toEdit.healthCheckPort = 80;
|
|
124
|
+
toEdit.healthCheckPath = '/';
|
|
125
|
+
toEdit.healthTimeout = 5;
|
|
126
|
+
toEdit.healthInterval = 10;
|
|
127
|
+
toEdit.healthyThreshold = 10;
|
|
128
|
+
toEdit.unhealthyThreshold = 2;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
toEdit.sessionAffinity = loadBalancer.sessionAffinity || 'None';
|
|
132
|
+
}
|
|
133
|
+
return toEdit;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
function constructNewLoadBalancerTemplate() {
|
|
137
|
+
return {
|
|
138
|
+
provider: 'gce',
|
|
139
|
+
stack: '',
|
|
140
|
+
detail: '',
|
|
141
|
+
credentials: GCEProviderSettings.defaults.account,
|
|
142
|
+
region: GCEProviderSettings.defaults.region,
|
|
143
|
+
healthCheckProtocol: 'HTTP',
|
|
144
|
+
healthCheckPort: 80,
|
|
145
|
+
healthCheckPath: '/',
|
|
146
|
+
healthTimeout: 5,
|
|
147
|
+
healthInterval: 10,
|
|
148
|
+
healthyThreshold: 10,
|
|
149
|
+
unhealthyThreshold: 2,
|
|
150
|
+
sessionAffinity: 'NONE',
|
|
151
|
+
regionZones: [],
|
|
152
|
+
listeners: [
|
|
153
|
+
{
|
|
154
|
+
protocol: 'TCP',
|
|
155
|
+
portRange: '8080',
|
|
156
|
+
healthCheck: true,
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
return {
|
|
163
|
+
normalizeLoadBalancer: normalizeLoadBalancer,
|
|
164
|
+
convertLoadBalancerForEditing: convertLoadBalancerForEditing,
|
|
165
|
+
constructNewLoadBalancerTemplate: constructNewLoadBalancerTemplate,
|
|
166
|
+
};
|
|
167
|
+
},
|
|
168
|
+
]);
|
|
Binary file
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<svg width="32px" height="32px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
|
|
3
|
+
<!-- Generator: Sketch 3.4.1 (15681) - http://www.bohemiancoding.com/sketch -->
|
|
4
|
+
<title>shaded-32/compute-engine</title>
|
|
5
|
+
<desc>Created with Sketch.</desc>
|
|
6
|
+
<defs></defs>
|
|
7
|
+
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
|
|
8
|
+
<g id="shaded-32/compute-engine" sketch:type="MSArtboardGroup">
|
|
9
|
+
<rect id="Container" sketch:type="MSShapeGroup" x="0" y="0" width="32" height="32"></rect>
|
|
10
|
+
<g id="shape" sketch:type="MSLayerGroup" transform="translate(1.000000, 1.000000)">
|
|
11
|
+
<rect id="Rectangle-path" fill="#616161" sketch:type="MSShapeGroup" x="0" y="8" width="4" height="3"></rect>
|
|
12
|
+
<rect id="Rectangle-path" fill="#616161" sketch:type="MSShapeGroup" x="0" y="13" width="4" height="3"></rect>
|
|
13
|
+
<rect id="Rectangle-path" fill="#616161" sketch:type="MSShapeGroup" x="0" y="18" width="4" height="3"></rect>
|
|
14
|
+
<rect id="Rectangle-path" fill="#616161" sketch:type="MSShapeGroup" x="25" y="8" width="4" height="3"></rect>
|
|
15
|
+
<rect id="Rectangle-path" fill="#616161" sketch:type="MSShapeGroup" x="25" y="13" width="4" height="3"></rect>
|
|
16
|
+
<rect id="Rectangle-path" fill="#616161" sketch:type="MSShapeGroup" x="25" y="18" width="4" height="3"></rect>
|
|
17
|
+
<rect id="Rectangle-path" fill="#616161" sketch:type="MSShapeGroup" x="18" y="0" width="3" height="4"></rect>
|
|
18
|
+
<rect id="Rectangle-path" fill="#616161" sketch:type="MSShapeGroup" x="13" y="0" width="3" height="4"></rect>
|
|
19
|
+
<rect id="Rectangle-path" fill="#616161" sketch:type="MSShapeGroup" x="8" y="0" width="3" height="4"></rect>
|
|
20
|
+
<rect id="Rectangle-path" fill="#616161" sketch:type="MSShapeGroup" x="18" y="25" width="3" height="4"></rect>
|
|
21
|
+
<rect id="Rectangle-path" fill="#616161" sketch:type="MSShapeGroup" x="13" y="25" width="3" height="4"></rect>
|
|
22
|
+
<rect id="Rectangle-path" fill="#616161" sketch:type="MSShapeGroup" x="8" y="25" width="3" height="4"></rect>
|
|
23
|
+
<path d="M4,4 L4,25 L25,25 L25,4 L4,4 L4,4 Z M22,22 L7,22 L7,7 L22,7 L22,22 L22,22 Z" id="Shape" fill="#757575" sketch:type="MSShapeGroup"></path>
|
|
24
|
+
<rect id="Rectangle-path" fill="#757575" sketch:type="MSShapeGroup" x="10" y="10" width="9" height="9"></rect>
|
|
25
|
+
<path d="M19,19 L14.5,19 L14.5,14.4998 L19,9.9997 L19,19 Z" id="Shape" fill="#424242" sketch:type="MSShapeGroup"></path>
|
|
26
|
+
<path d="M19,19 L10,19 L14.5,14.4998 L19,19 Z" id="Shape" fill="#616161" sketch:type="MSShapeGroup"></path>
|
|
27
|
+
</g>
|
|
28
|
+
</g>
|
|
29
|
+
</g>
|
|
30
|
+
</svg>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<div class="form-group">
|
|
2
|
+
<div class="col-md-{{labelColumns}} sm-label-right">
|
|
3
|
+
Network <help-field ng-if="helpKey" key="{{helpKey}}"></help-field>
|
|
4
|
+
</div>
|
|
5
|
+
<div class="col-md-{{fieldColumns || 7}}" ng-if="!account">(Select an account)</div>
|
|
6
|
+
<div class="col-md-{{fieldColumns || 7}}">
|
|
7
|
+
<select class="form-control input-sm" ng-if="account" ng-model="component.network" ng-change="onChange()" required>
|
|
8
|
+
<option ng-repeat="network in networks" value="{{network}}" ng-selected="component[field] === network">
|
|
9
|
+
{{network}}
|
|
10
|
+
</option>
|
|
11
|
+
</select>
|
|
12
|
+
<p ng-if="readOnly" class="form-control-static">{{component[field]}}</p>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import UIROUTER_ANGULARJS from '@uirouter/angularjs';
|
|
4
|
+
import { module } from 'angular';
|
|
5
|
+
|
|
6
|
+
import { SETTINGS } from '@spinnaker/core';
|
|
7
|
+
|
|
8
|
+
export const GOOGLE_PIPELINE_STAGES_BAKE_BAKEEXECUTIONDETAILS_CONTROLLER =
|
|
9
|
+
'spinnaker.gce.pipeline.stage.bake.executionDetails.controller';
|
|
10
|
+
export const name = GOOGLE_PIPELINE_STAGES_BAKE_BAKEEXECUTIONDETAILS_CONTROLLER; // for backwards compatibility
|
|
11
|
+
module(GOOGLE_PIPELINE_STAGES_BAKE_BAKEEXECUTIONDETAILS_CONTROLLER, [UIROUTER_ANGULARJS]).controller(
|
|
12
|
+
'gceBakeExecutionDetailsCtrl',
|
|
13
|
+
[
|
|
14
|
+
'$scope',
|
|
15
|
+
'$stateParams',
|
|
16
|
+
'executionDetailsSectionService',
|
|
17
|
+
'$interpolate',
|
|
18
|
+
function ($scope, $stateParams, executionDetailsSectionService, $interpolate) {
|
|
19
|
+
$scope.configSections = ['bakeConfig', 'taskStatus', 'artifactStatus'];
|
|
20
|
+
|
|
21
|
+
const initialized = () => {
|
|
22
|
+
$scope.detailsSection = $stateParams.details;
|
|
23
|
+
$scope.provider = $scope.stage.context.cloudProviderType || 'gce';
|
|
24
|
+
$scope.roscoMode =
|
|
25
|
+
SETTINGS.feature.roscoMode ||
|
|
26
|
+
(typeof SETTINGS.feature.roscoSelector === 'function' &&
|
|
27
|
+
SETTINGS.feature.roscoSelector($scope.stage.context));
|
|
28
|
+
$scope.bakeryDetailUrl = $interpolate(
|
|
29
|
+
$scope.roscoMode && SETTINGS.roscoDetailUrl ? SETTINGS.roscoDetailUrl : SETTINGS.bakeryDetailUrl,
|
|
30
|
+
);
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const initialize = () => executionDetailsSectionService.synchronizeSection($scope.configSections, initialized);
|
|
34
|
+
|
|
35
|
+
initialize();
|
|
36
|
+
|
|
37
|
+
$scope.$on('$stateChangeSuccess', initialize);
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
);
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<div ng-controller="gceBakeExecutionDetailsCtrl">
|
|
2
|
+
<execution-details-section-nav sections="configSections"></execution-details-section-nav>
|
|
3
|
+
<div class="step-section-details" ng-if="detailsSection === 'bakeConfig'">
|
|
4
|
+
<div class="row">
|
|
5
|
+
<div class="col-md-6">
|
|
6
|
+
<dl class="dl-narrow dl-horizontal">
|
|
7
|
+
<dt if-multiple-providers>Provider</dt>
|
|
8
|
+
<dd if-multiple-providers>Google</dd>
|
|
9
|
+
<dt>Image</dt>
|
|
10
|
+
<dd>{{stage.context.ami}}</dd>
|
|
11
|
+
<dt>Region</dt>
|
|
12
|
+
<dd>{{stage.context.region}}</dd>
|
|
13
|
+
<dt>Package</dt>
|
|
14
|
+
<dd>{{stage.context.package}}</dd>
|
|
15
|
+
</dl>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="col-md-6">
|
|
18
|
+
<dl class="dl-narrow dl-horizontal">
|
|
19
|
+
<dt>Base OS</dt>
|
|
20
|
+
<dd>{{stage.context.baseOs}}</dd>
|
|
21
|
+
<dt>Label</dt>
|
|
22
|
+
<dd>{{stage.context.baseLabel}}</dd>
|
|
23
|
+
<dt ng-if="roscoMode || execution.trigger.rebake || stage.context.rebake">Rebake</dt>
|
|
24
|
+
<dd ng-if="roscoMode || execution.trigger.rebake || stage.context.rebake">
|
|
25
|
+
{{execution.trigger.rebake || stage.context.rebake || false}}
|
|
26
|
+
</dd>
|
|
27
|
+
<dt ng-if="stage.context.templateFileName">Template</dt>
|
|
28
|
+
<dd ng-if="stage.context.templateFileName">{{stage.context.templateFileName}}</dd>
|
|
29
|
+
<dt ng-if="stage.context.accountName">Account Name</dt>
|
|
30
|
+
<dd ng-if="stage.context.accountName">{{stage.context.accountName}}</dd>
|
|
31
|
+
<dt ng-if="stage.context.varFileName">Var File</dt>
|
|
32
|
+
<dd ng-if="stage.context.varFileName">{{stage.context.varFileName}}</dd>
|
|
33
|
+
</dl>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
<stage-failure-message stage="stage" message="stage.failureMessage"></stage-failure-message>
|
|
37
|
+
|
|
38
|
+
<div class="row" ng-if="stage.context.region && stage.context.status.resourceId">
|
|
39
|
+
<div class="col-md-12">
|
|
40
|
+
<div class="alert alert-{{stage.isFailed ? 'danger' : 'info'}}">
|
|
41
|
+
<div ng-if="stage.context.previouslyBaked">No changes detected; reused existing bake</div>
|
|
42
|
+
<div ng-if="stage.context.imageName">
|
|
43
|
+
<strong>Image:</strong>
|
|
44
|
+
<div select-on-dbl-click>{{stage.context.imageName}}</div>
|
|
45
|
+
</div>
|
|
46
|
+
<a target="_blank" href="{{ bakeryDetailUrl(stage) }}"> View Bakery Details </a>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
<div class="step-section-details" ng-if="detailsSection === 'taskStatus'">
|
|
52
|
+
<div class="row">
|
|
53
|
+
<execution-step-details item="stage"></execution-step-details>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
<div class="step-section-details" ng-if="detailsSection === 'artifactStatus'">
|
|
58
|
+
<execution-artifact-tab stage="stage" execution="execution" config="config"></execution-artifact-tab>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|