@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,261 @@
|
|
|
1
|
+
// Duplicated from https://github.com/spinnaker/clouddriver/blob/master/clouddriver-web/config/clouddriver.yml
|
|
2
|
+
// TODO(mneterval): remove after resolution of https://github.com/spinnaker/spinnaker/issues/4859
|
|
3
|
+
export const GCE_INSTANCE_TYPE_DISK_DEFAULTS = Object.freeze([
|
|
4
|
+
{
|
|
5
|
+
instanceType: 'n1-standard-1',
|
|
6
|
+
disks: [
|
|
7
|
+
{
|
|
8
|
+
type: 'pd-ssd',
|
|
9
|
+
sizeGb: 10,
|
|
10
|
+
},
|
|
11
|
+
],
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
instanceType: 'n1-standard-2',
|
|
15
|
+
disks: [
|
|
16
|
+
{
|
|
17
|
+
type: 'pd-ssd',
|
|
18
|
+
sizeGb: 10,
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
instanceType: 'n1-standard-4',
|
|
24
|
+
disks: [
|
|
25
|
+
{
|
|
26
|
+
type: 'pd-ssd',
|
|
27
|
+
sizeGb: 10,
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
instanceType: 'n1-standard-8',
|
|
33
|
+
disks: [
|
|
34
|
+
{
|
|
35
|
+
type: 'pd-ssd',
|
|
36
|
+
sizeGb: 10,
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
instanceType: 'n1-standard-16',
|
|
42
|
+
disks: [
|
|
43
|
+
{
|
|
44
|
+
type: 'pd-ssd',
|
|
45
|
+
sizeGb: 10,
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
instanceType: 'n1-standard-32',
|
|
51
|
+
disks: [
|
|
52
|
+
{
|
|
53
|
+
type: 'pd-ssd',
|
|
54
|
+
sizeGb: 10,
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
instanceType: 'n1-standard-64',
|
|
60
|
+
disks: [
|
|
61
|
+
{
|
|
62
|
+
type: 'pd-ssd',
|
|
63
|
+
sizeGb: 10,
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
instanceType: 'n1-standard-96',
|
|
69
|
+
disks: [
|
|
70
|
+
{
|
|
71
|
+
type: 'pd-ssd',
|
|
72
|
+
sizeGb: 10,
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
instanceType: 'f1-micro',
|
|
78
|
+
supportsLocalSSD: false,
|
|
79
|
+
disks: [
|
|
80
|
+
{
|
|
81
|
+
type: 'pd-standard',
|
|
82
|
+
sizeGb: 10,
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
instanceType: 'g1-small',
|
|
88
|
+
supportsLocalSSD: false,
|
|
89
|
+
disks: [
|
|
90
|
+
{
|
|
91
|
+
type: 'pd-standard',
|
|
92
|
+
sizeGb: 10,
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
instanceType: 'e2-small',
|
|
98
|
+
supportsLocalSSD: false,
|
|
99
|
+
disks: [
|
|
100
|
+
{
|
|
101
|
+
type: 'pd-standard',
|
|
102
|
+
sizeGb: 10,
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
instanceType: 'e2-micro',
|
|
108
|
+
supportsLocalSSD: false,
|
|
109
|
+
disks: [
|
|
110
|
+
{
|
|
111
|
+
type: 'pd-standard',
|
|
112
|
+
sizeGb: 10,
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
instanceType: 'e2-medium',
|
|
118
|
+
supportsLocalSSD: false,
|
|
119
|
+
disks: [
|
|
120
|
+
{
|
|
121
|
+
type: 'pd-standard',
|
|
122
|
+
sizeGb: 10,
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
instanceType: 'n1-highmem-2',
|
|
128
|
+
disks: [
|
|
129
|
+
{
|
|
130
|
+
type: 'pd-ssd',
|
|
131
|
+
sizeGb: 10,
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
instanceType: 'n1-highmem-4',
|
|
137
|
+
disks: [
|
|
138
|
+
{
|
|
139
|
+
type: 'pd-ssd',
|
|
140
|
+
sizeGb: 10,
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
instanceType: 'n1-highmem-8',
|
|
146
|
+
disks: [
|
|
147
|
+
{
|
|
148
|
+
type: 'pd-ssd',
|
|
149
|
+
sizeGb: 10,
|
|
150
|
+
},
|
|
151
|
+
],
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
instanceType: 'n1-highmem-16',
|
|
155
|
+
disks: [
|
|
156
|
+
{
|
|
157
|
+
type: 'pd-ssd',
|
|
158
|
+
sizeGb: 10,
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
instanceType: 'n1-highmem-32',
|
|
164
|
+
disks: [
|
|
165
|
+
{
|
|
166
|
+
type: 'pd-ssd',
|
|
167
|
+
sizeGb: 10,
|
|
168
|
+
},
|
|
169
|
+
],
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
instanceType: 'n1-highmem-64',
|
|
173
|
+
disks: [
|
|
174
|
+
{
|
|
175
|
+
type: 'pd-ssd',
|
|
176
|
+
sizeGb: 10,
|
|
177
|
+
},
|
|
178
|
+
],
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
instanceType: 'n1-highmem-96',
|
|
182
|
+
disks: [
|
|
183
|
+
{
|
|
184
|
+
type: 'pd-ssd',
|
|
185
|
+
sizeGb: 10,
|
|
186
|
+
},
|
|
187
|
+
],
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
instanceType: 'n1-highcpu-2',
|
|
191
|
+
disks: [
|
|
192
|
+
{
|
|
193
|
+
type: 'pd-ssd',
|
|
194
|
+
sizeGb: 10,
|
|
195
|
+
},
|
|
196
|
+
],
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
instanceType: 'n1-highcpu-4',
|
|
200
|
+
disks: [
|
|
201
|
+
{
|
|
202
|
+
type: 'pd-ssd',
|
|
203
|
+
sizeGb: 10,
|
|
204
|
+
},
|
|
205
|
+
],
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
instanceType: 'n1-highcpu-8',
|
|
209
|
+
disks: [
|
|
210
|
+
{
|
|
211
|
+
type: 'pd-ssd',
|
|
212
|
+
sizeGb: 10,
|
|
213
|
+
},
|
|
214
|
+
],
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
instanceType: 'n1-highcpu-16',
|
|
218
|
+
disks: [
|
|
219
|
+
{
|
|
220
|
+
type: 'pd-ssd',
|
|
221
|
+
sizeGb: 10,
|
|
222
|
+
},
|
|
223
|
+
],
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
instanceType: 'n1-highcpu-32',
|
|
227
|
+
disks: [
|
|
228
|
+
{
|
|
229
|
+
type: 'pd-ssd',
|
|
230
|
+
sizeGb: 10,
|
|
231
|
+
},
|
|
232
|
+
],
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
instanceType: 'n1-highcpu-64',
|
|
236
|
+
disks: [
|
|
237
|
+
{
|
|
238
|
+
type: 'pd-ssd',
|
|
239
|
+
sizeGb: 10,
|
|
240
|
+
},
|
|
241
|
+
],
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
instanceType: 'n1-highcpu-96',
|
|
245
|
+
disks: [
|
|
246
|
+
{
|
|
247
|
+
type: 'pd-ssd',
|
|
248
|
+
sizeGb: 10,
|
|
249
|
+
},
|
|
250
|
+
],
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
instanceType: 'default',
|
|
254
|
+
disks: [
|
|
255
|
+
{
|
|
256
|
+
type: 'pd-ssd',
|
|
257
|
+
sizeGb: 10,
|
|
258
|
+
},
|
|
259
|
+
],
|
|
260
|
+
},
|
|
261
|
+
]);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import { module } from 'angular';
|
|
4
|
+
|
|
5
|
+
export const GOOGLE_INSTANCE_GCEMULTIINSTANCETASK_TRANSFORMER =
|
|
6
|
+
'spinnaker.google.instance.multiInstance.task.transformer';
|
|
7
|
+
export const name = GOOGLE_INSTANCE_GCEMULTIINSTANCETASK_TRANSFORMER; // for backwards compatibility
|
|
8
|
+
module(GOOGLE_INSTANCE_GCEMULTIINSTANCETASK_TRANSFORMER, []).factory('gceMultiInstanceTaskTransformer', function () {
|
|
9
|
+
// custom transformers for specific tasks,
|
|
10
|
+
// e.g. "rebootInstances" needs an empty "interestingHealthProviderNames" array
|
|
11
|
+
const transformers = {
|
|
12
|
+
rebootInstances: (job) => {
|
|
13
|
+
job.interestingHealthProviderNames = [];
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
// adds the "zone" field to all jobs
|
|
18
|
+
const transformAll = (instanceGroup, job) => {
|
|
19
|
+
job.zone = instanceGroup.instances[0].availabilityZone;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const transformJob = (instanceGroup, job) => {
|
|
23
|
+
transformAll(instanceGroup, job);
|
|
24
|
+
if (transformers[job.type]) {
|
|
25
|
+
transformers[job.type](job);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
return {
|
|
30
|
+
transform: transformJob,
|
|
31
|
+
};
|
|
32
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { IHttpInterceptor, IHttpPromiseCallbackArg, IHttpProvider } from 'angular';
|
|
2
|
+
import { module } from 'angular';
|
|
3
|
+
import { $http, $q } from 'ngimport';
|
|
4
|
+
import { SETTINGS } from '@spinnaker/core';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* When a Cloud IAP (if enabled) session expires, refreshes session.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
export class IapInterceptor implements IHttpInterceptor {
|
|
11
|
+
public responseError = <T>(response: IHttpPromiseCallbackArg<T>): PromiseLike<T> => {
|
|
12
|
+
const { config, status } = response;
|
|
13
|
+
|
|
14
|
+
if (status === 401 && SETTINGS.feature.iapRefresherEnabled) {
|
|
15
|
+
return $http.get('/_gcp_iap/do_session_refresh').then(
|
|
16
|
+
() => {
|
|
17
|
+
return $http.get(config.url, config).then((result: T) => result);
|
|
18
|
+
},
|
|
19
|
+
// Reject with original response
|
|
20
|
+
() => $q.reject(response),
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return $q.reject(response);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export const IAP_INTERCEPTOR = 'spinnaker.gce.iap.interceptor';
|
|
29
|
+
module(IAP_INTERCEPTOR, [])
|
|
30
|
+
.service('iapInterceptor', IapInterceptor)
|
|
31
|
+
.config([
|
|
32
|
+
'$httpProvider',
|
|
33
|
+
($httpProvider: IHttpProvider) => {
|
|
34
|
+
$httpProvider.interceptors.push('iapInterceptor');
|
|
35
|
+
},
|
|
36
|
+
]);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<div modal-page>
|
|
2
|
+
<modal-close dismiss="$dismiss()"></modal-close>
|
|
3
|
+
<div class="modal-header">
|
|
4
|
+
<h4 class="modal-title">Load Balancer Type Selection</h4>
|
|
5
|
+
</div>
|
|
6
|
+
<div class="modal-body">
|
|
7
|
+
<form class="form-horizontal">
|
|
8
|
+
<div class="form-group">
|
|
9
|
+
<div class="col-md-4 col-md-offset-1 sm-label-left">
|
|
10
|
+
<b>Choose load balancer type:</b>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="form-group">
|
|
14
|
+
<div class="col-md-6 col-md-offset-1">
|
|
15
|
+
<ui-select ng-model="ctrl.choice" class="form-control input-sm">
|
|
16
|
+
<ui-select-match placeholder="Select...">
|
|
17
|
+
<span>{{$select.selected}}</span>
|
|
18
|
+
</ui-select-match>
|
|
19
|
+
<ui-select-choices repeat="choice in ctrl.choices">
|
|
20
|
+
<span>{{choice}}<help-field key="gce.loadBalancerType.{{choice}}"></help-field></span>
|
|
21
|
+
</ui-select-choices>
|
|
22
|
+
</ui-select>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</form>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="modal-footer">
|
|
28
|
+
<button class="btn btn-primary" ng-click="ctrl.choose(ctrl.choice)">
|
|
29
|
+
<span>Create {{ ctrl.choice }} load balancer</span>
|
|
30
|
+
<span class="glyphicon glyphicon-chevron-right"></span>
|
|
31
|
+
</button>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { IController } from 'angular';
|
|
2
|
+
import { module } from 'angular';
|
|
3
|
+
import type { IModalInstanceService, IModalService } from 'angular-ui-bootstrap';
|
|
4
|
+
import { find, map } from 'lodash';
|
|
5
|
+
|
|
6
|
+
import type { Application } from '@spinnaker/core';
|
|
7
|
+
|
|
8
|
+
import type { IGceLoadBalancerToWizardMap } from './loadBalancerTypeToWizardMap.constant';
|
|
9
|
+
import { GCE_LOAD_BALANCER_TYPE_TO_WIZARD_CONSTANT } from './loadBalancerTypeToWizardMap.constant';
|
|
10
|
+
|
|
11
|
+
class GceLoadBalancerChoiceCtrl implements IController {
|
|
12
|
+
public choices: string[];
|
|
13
|
+
public choice = 'Network';
|
|
14
|
+
|
|
15
|
+
public static $inject = ['$uibModal', '$uibModalInstance', 'application', 'loadBalancerTypeToWizardMap'];
|
|
16
|
+
constructor(
|
|
17
|
+
public $uibModal: IModalService,
|
|
18
|
+
public $uibModalInstance: IModalInstanceService,
|
|
19
|
+
private application: Application,
|
|
20
|
+
private loadBalancerTypeToWizardMap: IGceLoadBalancerToWizardMap,
|
|
21
|
+
) {}
|
|
22
|
+
|
|
23
|
+
public $onInit(): void {
|
|
24
|
+
this.choices = map(this.loadBalancerTypeToWizardMap, (wizardConfig) => wizardConfig.label);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
public choose(choice: string): void {
|
|
28
|
+
const wizard = find(this.loadBalancerTypeToWizardMap, (wizardConfig) => wizardConfig.label === choice);
|
|
29
|
+
this.$uibModalInstance.dismiss();
|
|
30
|
+
this.$uibModal.open({
|
|
31
|
+
templateUrl: wizard.createTemplateUrl,
|
|
32
|
+
controller: `${wizard.controller} as ctrl`,
|
|
33
|
+
size: 'lg',
|
|
34
|
+
resolve: {
|
|
35
|
+
application: () => this.application,
|
|
36
|
+
loadBalancer: (): null => null,
|
|
37
|
+
isNew: () => true,
|
|
38
|
+
forPipelineConfig: () => false,
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export const GCE_LOAD_BALANCER_CHOICE_MODAL = 'spinnaker.gce.loadBalancerChoice.modal.controller';
|
|
45
|
+
|
|
46
|
+
module(GCE_LOAD_BALANCER_CHOICE_MODAL, [GCE_LOAD_BALANCER_TYPE_TO_WIZARD_CONSTANT]).controller(
|
|
47
|
+
'gceLoadBalancerChoiceCtrl',
|
|
48
|
+
GceLoadBalancerChoiceCtrl,
|
|
49
|
+
);
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { module } from 'angular';
|
|
2
|
+
|
|
3
|
+
export interface IGceLoadBalancerWizardConfig {
|
|
4
|
+
label: string;
|
|
5
|
+
createTemplateUrl: string;
|
|
6
|
+
editTemplateUrl: string;
|
|
7
|
+
controller: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface IGceLoadBalancerToWizardMap {
|
|
11
|
+
[loadBalancerType: string]: IGceLoadBalancerWizardConfig;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const loadBalancerTypeToWizardMap: IGceLoadBalancerToWizardMap = {
|
|
15
|
+
NETWORK: {
|
|
16
|
+
label: 'Network',
|
|
17
|
+
createTemplateUrl: require('../network/createLoadBalancer.html'),
|
|
18
|
+
editTemplateUrl: require('../network/editLoadBalancer.html'),
|
|
19
|
+
controller: 'gceCreateLoadBalancerCtrl',
|
|
20
|
+
},
|
|
21
|
+
HTTP: {
|
|
22
|
+
label: 'HTTP(S)',
|
|
23
|
+
createTemplateUrl: require('../http/createHttpLoadBalancer.html'),
|
|
24
|
+
editTemplateUrl: require('../http/editHttpLoadBalancer.html'),
|
|
25
|
+
controller: 'gceCreateHttpLoadBalancerCtrl',
|
|
26
|
+
},
|
|
27
|
+
INTERNAL_MANAGED: {
|
|
28
|
+
label: 'Internal HTTP(S)',
|
|
29
|
+
createTemplateUrl: require('../http/createHttpLoadBalancer.html'),
|
|
30
|
+
editTemplateUrl: require('../http/editHttpLoadBalancer.html'),
|
|
31
|
+
controller: 'gceCreateInternalHttpLoadBalancerCtrl',
|
|
32
|
+
},
|
|
33
|
+
INTERNAL: {
|
|
34
|
+
label: 'Internal',
|
|
35
|
+
createTemplateUrl: require('../common/commonCreateLoadBalancer.html'),
|
|
36
|
+
editTemplateUrl: require('../common/commonEditLoadBalancer.html'),
|
|
37
|
+
controller: 'gceInternalLoadBalancerCtrl',
|
|
38
|
+
},
|
|
39
|
+
SSL: {
|
|
40
|
+
label: 'SSL',
|
|
41
|
+
createTemplateUrl: require('../common/commonCreateLoadBalancer.html'),
|
|
42
|
+
editTemplateUrl: require('../common/commonEditLoadBalancer.html'),
|
|
43
|
+
controller: 'gceSslLoadBalancerCtrl',
|
|
44
|
+
},
|
|
45
|
+
TCP: {
|
|
46
|
+
label: 'TCP',
|
|
47
|
+
createTemplateUrl: require('../common/commonCreateLoadBalancer.html'),
|
|
48
|
+
editTemplateUrl: require('../common/commonEditLoadBalancer.html'),
|
|
49
|
+
controller: 'gceTcpLoadBalancerCtrl',
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export const GCE_LOAD_BALANCER_TYPE_TO_WIZARD_CONSTANT = 'spinnaker.gce.loadBalancerTypeToWizard.constant';
|
|
54
|
+
|
|
55
|
+
module(GCE_LOAD_BALANCER_TYPE_TO_WIZARD_CONSTANT, []).constant(
|
|
56
|
+
'loadBalancerTypeToWizardMap',
|
|
57
|
+
loadBalancerTypeToWizardMap,
|
|
58
|
+
);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { IComponentOptions, IController } from 'angular';
|
|
2
|
+
import { module } from 'angular';
|
|
3
|
+
import type { IGceAddress } from '../../../address/address.reader';
|
|
4
|
+
|
|
5
|
+
class GceAddressSelectorCtrl implements IController {
|
|
6
|
+
public selectedAddress: IGceAddress;
|
|
7
|
+
public addressList: IGceAddress[];
|
|
8
|
+
public account: string;
|
|
9
|
+
// The IP address string is the only piece that we can expect a parent resource to keep track of.
|
|
10
|
+
// We'll try to match this IP to a full address map.
|
|
11
|
+
private initialIpAddress: string;
|
|
12
|
+
|
|
13
|
+
public $onInit(): void {
|
|
14
|
+
this.selectedAddress = this.addressList.find((address) => address.address === this.initialIpAddress);
|
|
15
|
+
if (!this.selectedAddress) {
|
|
16
|
+
this.selectedAddress = { address: this.initialIpAddress, account: this.account };
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const gceAddressSelector: IComponentOptions = {
|
|
22
|
+
bindings: {
|
|
23
|
+
initialIpAddress: '<',
|
|
24
|
+
addressList: '<',
|
|
25
|
+
readOnly: '<',
|
|
26
|
+
onAddressSelect: '&',
|
|
27
|
+
account: '<',
|
|
28
|
+
},
|
|
29
|
+
template: `
|
|
30
|
+
<ui-select on-select="$ctrl.onAddressSelect({address: $ctrl.selectedAddress})"
|
|
31
|
+
ng-disabled="$ctrl.readOnly"
|
|
32
|
+
ng-model="$ctrl.selectedAddress"
|
|
33
|
+
class="form-control input-sm">
|
|
34
|
+
<ui-select-match allow-clear>
|
|
35
|
+
{{$ctrl.selectedAddress.address}} <span ng-if="$ctrl.selectedAddress.name">({{$ctrl.selectedAddress.name}})</span>
|
|
36
|
+
</ui-select-match>
|
|
37
|
+
<ui-select-choices repeat="address in $ctrl.addressList | filter: {name: $select.search, account: $ctrl.account}">
|
|
38
|
+
<span>
|
|
39
|
+
{{address.address}} <span ng-if="address.name">({{address.name}})</span> <br>
|
|
40
|
+
</span>
|
|
41
|
+
</ui-select-choices>
|
|
42
|
+
</ui-select>`,
|
|
43
|
+
controller: GceAddressSelectorCtrl,
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export const GCE_ADDRESS_SELECTOR = 'spinnaker.gce.addressSelector.component';
|
|
47
|
+
module(GCE_ADDRESS_SELECTOR, []).component('gceAddressSelector', gceAddressSelector);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<ng-form name="advancedSettingsForm">
|
|
2
|
+
<div class="container-fluid form-horizontal">
|
|
3
|
+
<div class="form-group">
|
|
4
|
+
<div class="col-md-4 sm-label-right">Session Affinity</div>
|
|
5
|
+
<div class="col-md-4">
|
|
6
|
+
<select
|
|
7
|
+
class="form-control input-sm"
|
|
8
|
+
ng-disabled="ctrl.loadBalancer.ipProtocol === 'UDP'"
|
|
9
|
+
ng-model="ctrl.viewState.sessionAffinity"
|
|
10
|
+
ng-change="ctrl.setSessionAffinity(ctrl.viewState)"
|
|
11
|
+
ng-options="view for (model, view) in ctrl.sessionAffinityModelToViewMap"
|
|
12
|
+
></select>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="form-group" ng-if="ctrl.viewState.sessionAffinity === 'Generated Cookie'">
|
|
16
|
+
<div class="col-md-4 sm-label-right">
|
|
17
|
+
<b>Affinity Cookie TTL Seconds</b>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="col-md-4">
|
|
20
|
+
<input
|
|
21
|
+
ng-model="ctrl.loadBalancer.backendService.affinityCookieTtlSec"
|
|
22
|
+
required
|
|
23
|
+
type="number"
|
|
24
|
+
name="cookieTtl"
|
|
25
|
+
min="0"
|
|
26
|
+
max="{{ctrl.maxCookieTtl}}"
|
|
27
|
+
class="form-control input-sm"
|
|
28
|
+
/>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</ng-form>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<form name="form" class="form-horizontal">
|
|
2
|
+
<div ng-if="!ctrl.accounts" style="height: 200px" class="horizontal center middle">
|
|
3
|
+
<loading-spinner size="'small'"></loading-spinner>
|
|
4
|
+
</div>
|
|
5
|
+
<v2-modal-wizard
|
|
6
|
+
heading="Create New Load Balancer"
|
|
7
|
+
ng-if="ctrl.accounts"
|
|
8
|
+
task-monitor="ctrl.taskMonitor"
|
|
9
|
+
dismiss="$dismiss()"
|
|
10
|
+
>
|
|
11
|
+
<v2-wizard-page key="location" label="Location" mark-complete-on-view="false">
|
|
12
|
+
<ng-include src="ctrl.pages.location"></ng-include>
|
|
13
|
+
</v2-wizard-page>
|
|
14
|
+
<v2-wizard-page key="listener" label="Listener" mark-complete-on-view="false">
|
|
15
|
+
<ng-include src="ctrl.pages.listener"></ng-include>
|
|
16
|
+
</v2-wizard-page>
|
|
17
|
+
<v2-wizard-page
|
|
18
|
+
key="backendService"
|
|
19
|
+
label="Backend Service"
|
|
20
|
+
ng-if="ctrl.hasBackendService"
|
|
21
|
+
mark-complete-on-view="false"
|
|
22
|
+
>
|
|
23
|
+
<ng-include src="ctrl.pages.backendService"></ng-include>
|
|
24
|
+
</v2-wizard-page>
|
|
25
|
+
<v2-wizard-page key="healthCheck" label="Health Check" mark-complete-on-view="false">
|
|
26
|
+
<ng-include src="ctrl.pages.healthCheck"></ng-include>
|
|
27
|
+
</v2-wizard-page>
|
|
28
|
+
<v2-wizard-page key="advancedSettings" label="Advanced Settings" mark-complete-on-view="false">
|
|
29
|
+
<ng-include src="ctrl.pages.advancedSettings"></ng-include>
|
|
30
|
+
</v2-wizard-page>
|
|
31
|
+
</v2-modal-wizard>
|
|
32
|
+
<div class="modal-footer">
|
|
33
|
+
<button ng-disabled="ctrl.taskMonitor.submitting" class="btn btn-default" ng-click="ctrl.cancel()">Cancel</button>
|
|
34
|
+
<submit-button
|
|
35
|
+
is-disabled="form.$invalid || ctrl.taskMonitor.submitting"
|
|
36
|
+
submitting="ctrl.taskMonitor.submitting"
|
|
37
|
+
on-click="ctrl.submit()"
|
|
38
|
+
is-new="ctrl.isNew"
|
|
39
|
+
></submit-button>
|
|
40
|
+
</div>
|
|
41
|
+
</form>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<form name="form" class="form-horizontal">
|
|
2
|
+
<div ng-if="!ctrl.accounts" style="height: 200px" class="horizontal center middle">
|
|
3
|
+
<loading-spinner size="'small'"></loading-spinner>
|
|
4
|
+
</div>
|
|
5
|
+
<v2-modal-wizard
|
|
6
|
+
heading="Edit {{ctrl.loadBalancer.name}}: {{ctrl.loadBalancer.region}}: {{ctrl.loadBalancer.credentials}}"
|
|
7
|
+
ng-if="ctrl.accounts"
|
|
8
|
+
task-monitor="ctrl.taskMonitor"
|
|
9
|
+
dismiss="$dismiss()"
|
|
10
|
+
>
|
|
11
|
+
<v2-wizard-page key="listener" label="Listener" mark-complete-on-view="false">
|
|
12
|
+
<ng-include src="ctrl.pages.listener"></ng-include>
|
|
13
|
+
</v2-wizard-page>
|
|
14
|
+
<v2-wizard-page
|
|
15
|
+
key="backendService"
|
|
16
|
+
label="Backend Service"
|
|
17
|
+
ng-if="ctrl.hasBackendService"
|
|
18
|
+
mark-complete-on-view="false"
|
|
19
|
+
>
|
|
20
|
+
<ng-include src="ctrl.pages.backendService"></ng-include>
|
|
21
|
+
</v2-wizard-page>
|
|
22
|
+
<v2-wizard-page key="healthCheck" label="Health Check" mark-complete-on-view="false">
|
|
23
|
+
<ng-include src="ctrl.pages.healthCheck"></ng-include>
|
|
24
|
+
</v2-wizard-page>
|
|
25
|
+
<v2-wizard-page key="advancedSettings" label="Advanced Settings" mark-complete-on-view="false">
|
|
26
|
+
<ng-include src="ctrl.pages.advancedSettings"></ng-include>
|
|
27
|
+
</v2-wizard-page>
|
|
28
|
+
</v2-modal-wizard>
|
|
29
|
+
<div class="modal-footer">
|
|
30
|
+
<button ng-disabled="taskMonitor.submitting" class="btn btn-default" ng-click="ctrl.cancel()">Cancel</button>
|
|
31
|
+
<submit-button
|
|
32
|
+
is-disabled="form.$invalid || ctrl.taskMonitor.submitting"
|
|
33
|
+
submitting="ctrl.taskMonitor.submitting"
|
|
34
|
+
on-click="ctrl.submit()"
|
|
35
|
+
is-new="ctrl.isNew"
|
|
36
|
+
></submit-button>
|
|
37
|
+
</div>
|
|
38
|
+
</form>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<gce-health-check-selector
|
|
2
|
+
health-checks-by-account-and-type="ctrl.healthChecksByAccountAndType"
|
|
3
|
+
existing-health-check-names="ctrl.existingHealthCheckNames"
|
|
4
|
+
credentials="ctrl.loadBalancer.credentials"
|
|
5
|
+
health-check="ctrl.loadBalancer.backendService.healthCheck"
|
|
6
|
+
></gce-health-check-selector>
|
|
7
|
+
|
|
8
|
+
<div class="form-group small" style="margin-top: 20px">
|
|
9
|
+
<div class="col-md-offset-2 col-md-6">
|
|
10
|
+
<gce-cache-refresh
|
|
11
|
+
cache-key="healthChecks"
|
|
12
|
+
cache-key-alias="health checks"
|
|
13
|
+
on-refresh="ctrl.onHealthCheckRefresh()"
|
|
14
|
+
></gce-cache-refresh>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|