@spinnaker/google 0.0.71 → 0.0.76
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 +46 -0
- package/dist/autoscalingPolicy/GceAutoScalingFieldLayout.d.ts +2 -1
- package/dist/domain/autoHealingPolicy.d.ts +1 -1
- package/dist/domain/backendService.d.ts +1 -1
- package/dist/domain/loadBalancer.d.ts +2 -2
- package/dist/domain/serverGroup.d.ts +2 -2
- package/dist/gce.settings.d.ts +1 -1
- package/dist/healthCheck/healthCheck.read.service.d.ts +1 -1
- package/dist/healthCheck/healthCheckUtils.d.ts +1 -1
- package/dist/image/ImageSelect.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/dist/interceptors/iap.interceptor.d.ts +1 -1
- package/dist/loadBalancer/configure/common/commonLoadBalancer.controller.d.ts +5 -5
- package/dist/loadBalancer/configure/common/commonLoadBalancerCommandBuilder.service.d.ts +4 -4
- package/dist/loadBalancer/httpLoadBalancerUtils.service.d.ts +1 -1
- package/dist/loadBalancer/loadBalancer.setTransformer.d.ts +2 -2
- package/dist/securityGroup/securityGroupHelpText.service.d.ts +1 -1
- package/dist/serverGroup/configure/wizard/advancedSettings/GceAcceleratorConfigurer.d.ts +2 -1
- package/dist/serverGroup/details/stateful/MarkDiskStatefulButton.d.ts +3 -2
- package/dist/serverGroup/details/stateful/StatefulMIGService.d.ts +1 -1
- package/dist/serverGroup/details/stateful/UpdateBootImageButton.d.ts +3 -2
- package/package.json +6 -6
- package/src/address/address.reader.ts +2 -1
- package/src/autoscalingPolicy/GceAutoScalingFieldLayout.tsx +1 -1
- package/src/autoscalingPolicy/components/metricSettings/GcePredictiveAutoscaling.tsx +4 -9
- package/src/cache/cacheRefresh.component.ts +4 -2
- package/src/certificate/certificate.reader.ts +2 -1
- package/src/domain/autoHealingPolicy.ts +1 -1
- package/src/domain/backendService.ts +1 -1
- package/src/domain/loadBalancer.ts +2 -2
- package/src/domain/serverGroup.ts +2 -2
- package/src/gce.settings.ts +2 -1
- package/src/healthCheck/healthCheck.read.service.ts +3 -2
- package/src/healthCheck/healthCheckUtils.ts +1 -1
- package/src/image/ImageSelect.tsx +3 -2
- package/src/interceptors/iap.interceptor.ts +2 -1
- package/src/loadBalancer/configure/choice/gceLoadBalancerChoice.modal.ts +6 -7
- package/src/loadBalancer/configure/common/addressSelector.component.ts +3 -2
- package/src/loadBalancer/configure/common/commonLoadBalancer.controller.ts +6 -5
- package/src/loadBalancer/configure/common/commonLoadBalancerCommandBuilder.service.ts +7 -14
- package/src/loadBalancer/configure/common/healthCheck.component.ts +3 -2
- package/src/loadBalancer/configure/internal/gceCreateInternalLoadBalancer.controller.ts +15 -17
- package/src/loadBalancer/configure/internalhttp/createInternalHttpLoadBalancer.controller.ts +8 -5
- package/src/loadBalancer/configure/ssl/gceCreateSslLoadBalancer.controller.ts +9 -12
- package/src/loadBalancer/configure/tcp/gceCreateTcpLoadBalancer.controller.ts +9 -12
- package/src/loadBalancer/details/deleteModal/deleteModal.controller.ts +8 -4
- package/src/loadBalancer/httpLoadBalancerUtils.service.ts +1 -1
- package/src/loadBalancer/loadBalancer.setTransformer.ts +3 -2
- package/src/securityGroup/securityGroupHelpText.service.ts +2 -1
- package/src/serverGroup/configure/wizard/advancedSettings/GceAcceleratorConfigurer.tsx +3 -2
- package/src/serverGroup/configure/wizard/advancedSettings/diskConfigurer.component.ts +2 -1
- package/src/serverGroup/configure/wizard/autoHealingPolicy/autoHealingPolicySelector.component.ts +5 -3
- package/src/serverGroup/configure/wizard/customInstance/CustomInstanceConfigurer.tsx +2 -1
- package/src/serverGroup/configure/wizard/loadBalancingPolicy/loadBalancingPolicySelector.component.ts +3 -2
- package/src/serverGroup/details/ServerGroupDiskDescriptions.tsx +3 -2
- package/src/serverGroup/details/autoHealingPolicy/addAutoHealingPolicyButton.component.ts +4 -3
- package/src/serverGroup/details/autoHealingPolicy/autoHealingPolicy.component.ts +6 -4
- package/src/serverGroup/details/autoHealingPolicy/modal/upsertAutoHealingPolicy.modal.controller.ts +10 -6
- package/src/serverGroup/details/autoscalingPolicy/modal/GceScaleInControls.tsx +2 -1
- package/src/serverGroup/details/stateful/MarkDiskStatefulButton.tsx +3 -2
- package/src/serverGroup/details/stateful/StatefulMIGService.ts +1 -1
- package/src/serverGroup/details/stateful/UpdateBootImageButton.tsx +5 -11
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { StateService } from '@uirouter/angularjs';
|
|
2
|
-
import { IScope } from 'angular';
|
|
3
|
-
import { IModalInstanceService } from 'angular-ui-bootstrap';
|
|
4
|
-
import { Application } from '@spinnaker/core';
|
|
5
|
-
import { IGceLoadBalancer } from '../../../domain/loadBalancer';
|
|
1
|
+
import type { StateService } from '@uirouter/angularjs';
|
|
2
|
+
import type { IScope } from 'angular';
|
|
3
|
+
import type { IModalInstanceService } from 'angular-ui-bootstrap';
|
|
4
|
+
import type { Application } from '@spinnaker/core';
|
|
5
|
+
import type { IGceLoadBalancer } from '../../../domain/loadBalancer';
|
|
6
6
|
export declare class CommonGceLoadBalancerCtrl {
|
|
7
7
|
$scope: IScope;
|
|
8
8
|
application: Application;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { LoadBalancerReader } from '@spinnaker/core';
|
|
2
|
-
import { GceCertificateReader } from '../../../certificate/certificate.reader';
|
|
3
|
-
import { IGceHealthCheck } from '../../../domain/healthCheck';
|
|
4
|
-
import { GceHealthCheckReader } from '../../../healthCheck/healthCheck.read.service';
|
|
1
|
+
import type { LoadBalancerReader } from '@spinnaker/core';
|
|
2
|
+
import type { GceCertificateReader } from '../../../certificate/certificate.reader';
|
|
3
|
+
import type { IGceHealthCheck } from '../../../domain/healthCheck';
|
|
4
|
+
import type { GceHealthCheckReader } from '../../../healthCheck/healthCheck.read.service';
|
|
5
5
|
export declare class GceCommonLoadBalancerCommandBuilder {
|
|
6
6
|
private $q;
|
|
7
7
|
private loadBalancerReader;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IGceHttpLoadBalancer, IGceLoadBalancer } from '../domain/loadBalancer';
|
|
1
|
+
import type { IGceHttpLoadBalancer, IGceLoadBalancer } from '../domain/loadBalancer';
|
|
2
2
|
export declare class GceHttpLoadBalancerUtils {
|
|
3
3
|
static REGION: string;
|
|
4
4
|
isHttpLoadBalancer(lb: IGceLoadBalancer): lb is IGceHttpLoadBalancer;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IGceLoadBalancer } from '../domain/loadBalancer';
|
|
2
|
-
import { GceHttpLoadBalancerUtils } from './httpLoadBalancerUtils.service';
|
|
1
|
+
import type { IGceLoadBalancer } from '../domain/loadBalancer';
|
|
2
|
+
import type { GceHttpLoadBalancerUtils } from './httpLoadBalancerUtils.service';
|
|
3
3
|
export declare class GceLoadBalancerSetTransformer {
|
|
4
4
|
private gceHttpLoadBalancerUtils;
|
|
5
5
|
private static normalizeHttpLoadBalancerGroup;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { Application } from '@spinnaker/core';
|
|
3
|
+
import type { IGceServerGroup } from '../../../domain';
|
|
3
4
|
interface IMarkDiskStatefulButtonProps {
|
|
4
5
|
application: Application;
|
|
5
6
|
deviceName: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IGceServerGroup } from '../../../domain';
|
|
1
|
+
import type { IGceServerGroup } from '../../../domain';
|
|
2
2
|
export declare class StatefulMIGService {
|
|
3
3
|
static markDiskStateful(applicationName: string, deviceName: string, serverGroup: IGceServerGroup): PromiseLike<import("@spinnaker/core").ITask>;
|
|
4
4
|
static statefullyUpdateBootDisk(applicationName: string, bootImage: string, serverGroup: IGceServerGroup): PromiseLike<import("@spinnaker/core").ITask>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { Application } from '@spinnaker/core';
|
|
3
|
+
import type { IGceServerGroup } from '../../../domain';
|
|
3
4
|
interface IUpdateBootImageButtonProps {
|
|
4
5
|
application: Application;
|
|
5
6
|
bootImage: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spinnaker/google",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.76",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"lib": "npm run build"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@spinnaker/core": "^0.
|
|
16
|
+
"@spinnaker/core": "^0.14.1",
|
|
17
17
|
"@uirouter/angularjs": "1.0.26",
|
|
18
18
|
"angular": "1.6.10",
|
|
19
19
|
"angular-ui-bootstrap": "2.5.0",
|
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
"ui-select": "0.19.8"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@spinnaker/eslint-plugin": "^
|
|
30
|
-
"@spinnaker/scripts": "^0.
|
|
29
|
+
"@spinnaker/eslint-plugin": "^3.0.0",
|
|
30
|
+
"@spinnaker/scripts": "^0.2.2",
|
|
31
31
|
"@types/angular": "1.6.26",
|
|
32
32
|
"@types/angular-mocks": "1.5.10",
|
|
33
33
|
"@types/angular-ui-bootstrap": "0.13.41",
|
|
34
34
|
"@types/lodash": "4.14.64",
|
|
35
|
-
"@types/react": "16.
|
|
35
|
+
"@types/react": "16.14.10",
|
|
36
36
|
"@types/react-select": "1.3.4",
|
|
37
37
|
"shx": "0.3.3",
|
|
38
38
|
"typescript": "4.3.5"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "b36e5fa30e23cd60007e6839b0dab5e41bd410d5"
|
|
41
41
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { module } from 'angular';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import type { ISearchResults } from '@spinnaker/core';
|
|
4
|
+
import { InfrastructureCaches, SearchService } from '@spinnaker/core';
|
|
4
5
|
|
|
5
6
|
interface IAddressSearchResults {
|
|
6
7
|
account: string;
|
|
@@ -2,17 +2,12 @@ import { module } from 'angular';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { react2angular } from 'react2angular';
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
FormField,
|
|
8
|
-
HelpField,
|
|
9
|
-
IFormInputProps,
|
|
10
|
-
LayoutProvider,
|
|
11
|
-
withErrorBoundary,
|
|
12
|
-
} from '@spinnaker/core';
|
|
5
|
+
import type { IFormInputProps } from '@spinnaker/core';
|
|
6
|
+
import { CheckboxInput, FormField, HelpField, LayoutProvider, withErrorBoundary } from '@spinnaker/core';
|
|
13
7
|
|
|
14
8
|
import { GceAutoScalingFieldLayout } from '../../GceAutoScalingFieldLayout';
|
|
15
|
-
import {
|
|
9
|
+
import type { IGceAutoscalingPolicy } from '../../IGceAutoscalingPolicy';
|
|
10
|
+
import { GcePredictiveMethod } from '../../IGceAutoscalingPolicy';
|
|
16
11
|
import { GCEProviderSettings } from '../../../gce.settings';
|
|
17
12
|
|
|
18
13
|
interface IGcePredictiveAutoscalingProps {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { IComponentOptions, IController
|
|
1
|
+
import type { IComponentOptions, IController } from 'angular';
|
|
2
|
+
import { module } from 'angular';
|
|
2
3
|
|
|
3
|
-
import {
|
|
4
|
+
import type { CacheInitializerService } from '@spinnaker/core';
|
|
5
|
+
import { CACHE_INITIALIZER_SERVICE, InfrastructureCaches } from '@spinnaker/core';
|
|
4
6
|
|
|
5
7
|
class GceCacheRefreshCtrl implements IController {
|
|
6
8
|
public capitalizedKey: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { module } from 'angular';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import type { ISearchResults } from '@spinnaker/core';
|
|
4
|
+
import { InfrastructureCaches, SearchService } from '@spinnaker/core';
|
|
4
5
|
|
|
5
6
|
export interface IGceCertificate {
|
|
6
7
|
account: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ILoadBalancer } from '@spinnaker/core';
|
|
1
|
+
import type { ILoadBalancer } from '@spinnaker/core';
|
|
2
2
|
|
|
3
|
-
import { IGceBackendService } from './backendService';
|
|
3
|
+
import type { IGceBackendService } from './backendService';
|
|
4
4
|
|
|
5
5
|
export interface IGceLoadBalancer extends ILoadBalancer {
|
|
6
6
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IServerGroup } from '@spinnaker/core';
|
|
1
|
+
import type { IServerGroup } from '@spinnaker/core';
|
|
2
2
|
|
|
3
|
-
import { IGceAutoHealingPolicy } from './autoHealingPolicy';
|
|
3
|
+
import type { IGceAutoHealingPolicy } from './autoHealingPolicy';
|
|
4
4
|
|
|
5
5
|
// TODO(dpeach): fill in the remaining GCE specific properties.
|
|
6
6
|
export interface IGceServerGroup extends IServerGroup {
|
package/src/gce.settings.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defaults } from 'lodash';
|
|
2
2
|
|
|
3
|
-
import { IInstanceStorage, IProviderSettings
|
|
3
|
+
import type { IInstanceStorage, IProviderSettings } from '@spinnaker/core';
|
|
4
|
+
import { SETTINGS } from '@spinnaker/core';
|
|
4
5
|
|
|
5
6
|
export interface IGCEProviderSettings extends IProviderSettings {
|
|
6
7
|
defaults: {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { module } from 'angular';
|
|
2
2
|
import { uniqWith } from 'lodash';
|
|
3
3
|
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import type { ISearchResults } from '@spinnaker/core';
|
|
5
|
+
import { InfrastructureCaches, SearchService } from '@spinnaker/core';
|
|
6
|
+
import type { IGceHealthCheck } from '../domain';
|
|
6
7
|
|
|
7
8
|
interface IHealthCheckSearchResults {
|
|
8
9
|
name: string;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { module } from 'angular';
|
|
2
2
|
import { chain } from 'lodash';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import type { AutocompleteResult, Option } from 'react-select';
|
|
5
|
+
import { Async } from 'react-select';
|
|
5
6
|
import { react2angular } from 'react2angular';
|
|
6
7
|
|
|
7
8
|
import { withErrorBoundary } from '@spinnaker/core';
|
|
8
9
|
|
|
9
|
-
import { IGceImage } from '../image';
|
|
10
|
+
import type { IGceImage } from '../image';
|
|
10
11
|
|
|
11
12
|
interface IImageSelectProps {
|
|
12
13
|
availableImages: IGceImage[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { IHttpInterceptor, IHttpPromiseCallbackArg, IHttpProvider
|
|
1
|
+
import type { IHttpInterceptor, IHttpPromiseCallbackArg, IHttpProvider } from 'angular';
|
|
2
|
+
import { module } from 'angular';
|
|
2
3
|
import { $http, $q } from 'ngimport';
|
|
3
4
|
import { SETTINGS } from '@spinnaker/core';
|
|
4
5
|
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { IController
|
|
2
|
-
import {
|
|
1
|
+
import type { IController } from 'angular';
|
|
2
|
+
import { module } from 'angular';
|
|
3
|
+
import type { IModalInstanceService, IModalService } from 'angular-ui-bootstrap';
|
|
3
4
|
import { find, map } from 'lodash';
|
|
4
5
|
|
|
5
|
-
import { Application } from '@spinnaker/core';
|
|
6
|
+
import type { Application } from '@spinnaker/core';
|
|
6
7
|
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
IGceLoadBalancerToWizardMap,
|
|
10
|
-
} from './loadBalancerTypeToWizardMap.constant';
|
|
8
|
+
import type { IGceLoadBalancerToWizardMap } from './loadBalancerTypeToWizardMap.constant';
|
|
9
|
+
import { GCE_LOAD_BALANCER_TYPE_TO_WIZARD_CONSTANT } from './loadBalancerTypeToWizardMap.constant';
|
|
11
10
|
|
|
12
11
|
class GceLoadBalancerChoiceCtrl implements IController {
|
|
13
12
|
public choices: string[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { IComponentOptions, IController
|
|
2
|
-
import {
|
|
1
|
+
import type { IComponentOptions, IController } from 'angular';
|
|
2
|
+
import { module } from 'angular';
|
|
3
|
+
import type { IGceAddress } from '../../../address/address.reader';
|
|
3
4
|
|
|
4
5
|
class GceAddressSelectorCtrl implements IController {
|
|
5
6
|
public selectedAddress: IGceAddress;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { StateService } from '@uirouter/angularjs';
|
|
2
|
-
import { IScope } from 'angular';
|
|
3
|
-
import { IModalInstanceService } from 'angular-ui-bootstrap';
|
|
1
|
+
import type { StateService } from '@uirouter/angularjs';
|
|
2
|
+
import type { IScope } from 'angular';
|
|
3
|
+
import type { IModalInstanceService } from 'angular-ui-bootstrap';
|
|
4
4
|
import { trimEnd } from 'lodash';
|
|
5
5
|
|
|
6
|
-
import { Application
|
|
7
|
-
import {
|
|
6
|
+
import type { Application } from '@spinnaker/core';
|
|
7
|
+
import { InfrastructureCaches } from '@spinnaker/core';
|
|
8
|
+
import type { IGceLoadBalancer } from '../../../domain/loadBalancer';
|
|
8
9
|
|
|
9
10
|
export class CommonGceLoadBalancerCtrl {
|
|
10
11
|
public static $inject = ['$scope', 'application', '$uibModalInstance', '$state'];
|
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
import { module } from 'angular';
|
|
2
2
|
import _ from 'lodash';
|
|
3
3
|
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
LoadBalancerReader,
|
|
12
|
-
NetworkReader,
|
|
13
|
-
SubnetReader,
|
|
14
|
-
} from '@spinnaker/core';
|
|
15
|
-
import { GCE_CERTIFICATE_READER, GceCertificateReader, IGceCertificate } from '../../../certificate/certificate.reader';
|
|
16
|
-
import { IGceHealthCheck } from '../../../domain/healthCheck';
|
|
17
|
-
import { GCE_HEALTH_CHECK_READER, GceHealthCheckReader } from '../../../healthCheck/healthCheck.read.service';
|
|
4
|
+
import type { IAccount, ILoadBalancersByAccount, INetwork, ISubnet, LoadBalancerReader } from '@spinnaker/core';
|
|
5
|
+
import { AccountService, LOAD_BALANCER_READ_SERVICE, NetworkReader, SubnetReader } from '@spinnaker/core';
|
|
6
|
+
import type { GceCertificateReader, IGceCertificate } from '../../../certificate/certificate.reader';
|
|
7
|
+
import { GCE_CERTIFICATE_READER } from '../../../certificate/certificate.reader';
|
|
8
|
+
import type { IGceHealthCheck } from '../../../domain/healthCheck';
|
|
9
|
+
import type { GceHealthCheckReader } from '../../../healthCheck/healthCheck.read.service';
|
|
10
|
+
import { GCE_HEALTH_CHECK_READER } from '../../../healthCheck/healthCheck.read.service';
|
|
18
11
|
|
|
19
12
|
export class GceCommonLoadBalancerCommandBuilder {
|
|
20
13
|
private dataFetchers: { [key: string]: Function } = {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { IController
|
|
1
|
+
import type { IController } from 'angular';
|
|
2
|
+
import { module } from 'angular';
|
|
2
3
|
import { get } from 'lodash';
|
|
3
4
|
|
|
4
|
-
import { IGceHealthCheck } from '../../../domain/index';
|
|
5
|
+
import type { IGceHealthCheck } from '../../../domain/index';
|
|
5
6
|
|
|
6
7
|
class HealthCheckCreateCtrl implements IController {
|
|
7
8
|
public healthCheck: IGceHealthCheck;
|
|
@@ -1,26 +1,24 @@
|
|
|
1
|
-
import { StateService } from '@uirouter/angularjs';
|
|
2
|
-
import { IController, IScope
|
|
3
|
-
import {
|
|
1
|
+
import type { StateService } from '@uirouter/angularjs';
|
|
2
|
+
import type { IController, IScope } from 'angular';
|
|
3
|
+
import { module } from 'angular';
|
|
4
|
+
import type { IModalInstanceService } from 'angular-ui-bootstrap';
|
|
4
5
|
import _ from 'lodash';
|
|
5
6
|
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
Application,
|
|
9
|
-
IAccount,
|
|
10
|
-
ICredentials,
|
|
11
|
-
IRegion,
|
|
12
|
-
LoadBalancerWriter,
|
|
13
|
-
TaskMonitor,
|
|
14
|
-
} from '@spinnaker/core';
|
|
7
|
+
import type { Application, IAccount, ICredentials, IRegion } from '@spinnaker/core';
|
|
8
|
+
import { AccountService, LoadBalancerWriter, TaskMonitor } from '@spinnaker/core';
|
|
15
9
|
|
|
16
10
|
import { CommonGceLoadBalancerCtrl } from '../common/commonLoadBalancer.controller';
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
GceCommonLoadBalancerCommandBuilder,
|
|
20
|
-
} from '../common/commonLoadBalancerCommandBuilder.service';
|
|
11
|
+
import type { GceCommonLoadBalancerCommandBuilder } from '../common/commonLoadBalancerCommandBuilder.service';
|
|
12
|
+
import { GCE_COMMON_LOAD_BALANCER_COMMAND_BUILDER } from '../common/commonLoadBalancerCommandBuilder.service';
|
|
21
13
|
import { GCE_HEALTH_CHECK_SELECTOR_COMPONENT } from '../common/healthCheck.component';
|
|
22
14
|
import { GOOGLE_COMMON_XPNNAMING_GCE_SERVICE } from '../../../common/xpnNaming.gce.service';
|
|
23
|
-
import {
|
|
15
|
+
import type {
|
|
16
|
+
IGceBackendService,
|
|
17
|
+
IGceHealthCheck,
|
|
18
|
+
IGceLoadBalancer,
|
|
19
|
+
IGceNetwork,
|
|
20
|
+
IGceSubnet,
|
|
21
|
+
} from '../../../domain/index';
|
|
24
22
|
import { GCEProviderSettings } from '../../../gce.settings';
|
|
25
23
|
|
|
26
24
|
class ViewState {
|
package/src/loadBalancer/configure/internalhttp/createInternalHttpLoadBalancer.controller.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import type { StateService } from '@uirouter/angularjs';
|
|
2
|
+
import UIROUTER_ANGULARJS from '@uirouter/angularjs';
|
|
3
|
+
import type { IScope } from 'angular';
|
|
4
|
+
import { module } from 'angular';
|
|
5
|
+
import type { IModalInstanceService } from 'angular-ui-bootstrap';
|
|
4
6
|
|
|
5
|
-
import { Application
|
|
7
|
+
import type { Application } from '@spinnaker/core';
|
|
8
|
+
import { TaskMonitor } from '@spinnaker/core';
|
|
6
9
|
|
|
7
10
|
import { GCE_CACHE_REFRESH } from '../../../cache/cacheRefresh.component';
|
|
8
11
|
import { GOOGLE_LOADBALANCER_DETAILS_HOSTANDPATHRULES_HOSTANDPATHRULESBUTTON_COMPONENT } from '../../details/hostAndPathRules/hostAndPathRulesButton.component';
|
|
9
|
-
import { IGceHttpLoadBalancer } from '../../../domain';
|
|
12
|
+
import type { IGceHttpLoadBalancer } from '../../../domain';
|
|
10
13
|
import { GOOGLE_LOADBALANCER_CONFIGURE_HTTP_BACKENDSERVICE_BACKENDSERVICE_COMPONENT } from '../http/backendService/backendService.component';
|
|
11
14
|
import { GOOGLE_LOADBALANCER_CONFIGURE_HTTP_BASICSETTINGS_BASICSETTINGS_COMPONENT } from '../http/basicSettings/basicSettings.component';
|
|
12
15
|
import { GOOGLE_LOADBALANCER_CONFIGURE_HTTP_COMMANDBUILDER_SERVICE } from '../http/commandBuilder.service';
|
|
@@ -1,27 +1,24 @@
|
|
|
1
|
-
import { StateService } from '@uirouter/angularjs';
|
|
2
|
-
import { IController, IScope
|
|
3
|
-
import {
|
|
1
|
+
import type { StateService } from '@uirouter/angularjs';
|
|
2
|
+
import type { IController, IScope } from 'angular';
|
|
3
|
+
import { module } from 'angular';
|
|
4
|
+
import type { IModalInstanceService } from 'angular-ui-bootstrap';
|
|
4
5
|
import _ from 'lodash';
|
|
5
6
|
|
|
6
|
-
import {
|
|
7
|
-
AccountService,
|
|
7
|
+
import type {
|
|
8
8
|
Application,
|
|
9
9
|
IAccount,
|
|
10
10
|
ICredentials,
|
|
11
11
|
IInstance,
|
|
12
12
|
ILoadBalancerUpsertCommand,
|
|
13
13
|
IRegion,
|
|
14
|
-
LoadBalancerWriter,
|
|
15
|
-
TaskMonitor,
|
|
16
14
|
} from '@spinnaker/core';
|
|
15
|
+
import { AccountService, LoadBalancerWriter, TaskMonitor } from '@spinnaker/core';
|
|
17
16
|
|
|
18
17
|
import { CommonGceLoadBalancerCtrl } from '../common/commonLoadBalancer.controller';
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
GceCommonLoadBalancerCommandBuilder,
|
|
22
|
-
} from '../common/commonLoadBalancerCommandBuilder.service';
|
|
18
|
+
import type { GceCommonLoadBalancerCommandBuilder } from '../common/commonLoadBalancerCommandBuilder.service';
|
|
19
|
+
import { GCE_COMMON_LOAD_BALANCER_COMMAND_BUILDER } from '../common/commonLoadBalancerCommandBuilder.service';
|
|
23
20
|
import { GCE_HEALTH_CHECK_SELECTOR_COMPONENT } from '../common/healthCheck.component';
|
|
24
|
-
import { IGceBackendService, IGceHealthCheck, IGceLoadBalancer } from '../../../domain/index';
|
|
21
|
+
import type { IGceBackendService, IGceHealthCheck, IGceLoadBalancer } from '../../../domain/index';
|
|
25
22
|
import { GCEProviderSettings } from '../../../gce.settings';
|
|
26
23
|
|
|
27
24
|
class ViewState {
|
|
@@ -1,27 +1,24 @@
|
|
|
1
|
-
import { StateService } from '@uirouter/angularjs';
|
|
2
|
-
import { IScope
|
|
3
|
-
import {
|
|
1
|
+
import type { StateService } from '@uirouter/angularjs';
|
|
2
|
+
import type { IScope } from 'angular';
|
|
3
|
+
import { module } from 'angular';
|
|
4
|
+
import type { IModalInstanceService } from 'angular-ui-bootstrap';
|
|
4
5
|
import _ from 'lodash';
|
|
5
6
|
|
|
6
|
-
import {
|
|
7
|
-
AccountService,
|
|
7
|
+
import type {
|
|
8
8
|
Application,
|
|
9
9
|
IAccount,
|
|
10
10
|
ICredentials,
|
|
11
11
|
IInstance,
|
|
12
12
|
ILoadBalancerUpsertCommand,
|
|
13
13
|
IRegion,
|
|
14
|
-
LoadBalancerWriter,
|
|
15
|
-
TaskMonitor,
|
|
16
14
|
} from '@spinnaker/core';
|
|
15
|
+
import { AccountService, LoadBalancerWriter, TaskMonitor } from '@spinnaker/core';
|
|
17
16
|
|
|
18
17
|
import { CommonGceLoadBalancerCtrl } from '../common/commonLoadBalancer.controller';
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
GceCommonLoadBalancerCommandBuilder,
|
|
22
|
-
} from '../common/commonLoadBalancerCommandBuilder.service';
|
|
18
|
+
import type { GceCommonLoadBalancerCommandBuilder } from '../common/commonLoadBalancerCommandBuilder.service';
|
|
19
|
+
import { GCE_COMMON_LOAD_BALANCER_COMMAND_BUILDER } from '../common/commonLoadBalancerCommandBuilder.service';
|
|
23
20
|
import { GCE_HEALTH_CHECK_SELECTOR_COMPONENT } from '../common/healthCheck.component';
|
|
24
|
-
import { IGceBackendService, IGceHealthCheck, IGceLoadBalancer } from '../../../domain/index';
|
|
21
|
+
import type { IGceBackendService, IGceHealthCheck, IGceLoadBalancer } from '../../../domain/index';
|
|
25
22
|
import { GCEProviderSettings } from '../../../gce.settings';
|
|
26
23
|
|
|
27
24
|
class ViewState {
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { IController
|
|
2
|
-
import
|
|
1
|
+
import type { IController } from 'angular';
|
|
2
|
+
import { module } from 'angular';
|
|
3
|
+
import type { IModalInstanceService } from 'angular-ui-bootstrap';
|
|
4
|
+
import ANGULAR_UI_BOOTSTRAP from 'angular-ui-bootstrap';
|
|
3
5
|
|
|
4
|
-
import { Application, ILoadBalancerDeleteCommand
|
|
6
|
+
import type { Application, ILoadBalancerDeleteCommand } from '@spinnaker/core';
|
|
7
|
+
import { LoadBalancerWriter, TaskMonitor } from '@spinnaker/core';
|
|
5
8
|
|
|
6
9
|
import { GOOGLE_LOADBALANCER_CONFIGURE_HTTP_HTTPLOADBALANCER_WRITE_SERVICE } from '../../configure/http/httpLoadBalancer.write.service';
|
|
7
|
-
import {
|
|
10
|
+
import type { GceHttpLoadBalancerUtils } from '../../httpLoadBalancerUtils.service';
|
|
11
|
+
import { GCE_HTTP_LOAD_BALANCER_UTILS } from '../../httpLoadBalancerUtils.service';
|
|
8
12
|
|
|
9
13
|
class Verification {
|
|
10
14
|
public verified = false;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { module } from 'angular';
|
|
2
2
|
import { uniq } from 'lodash';
|
|
3
3
|
|
|
4
|
-
import { IGceHttpLoadBalancer, IGceLoadBalancer } from '../domain/loadBalancer';
|
|
4
|
+
import type { IGceHttpLoadBalancer, IGceLoadBalancer } from '../domain/loadBalancer';
|
|
5
5
|
|
|
6
6
|
export class GceHttpLoadBalancerUtils {
|
|
7
7
|
public static REGION = 'global';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { module } from 'angular';
|
|
2
2
|
import { cloneDeep, groupBy, map, partition } from 'lodash';
|
|
3
3
|
|
|
4
|
-
import { IGceHttpLoadBalancer, IGceLoadBalancer } from '../domain/loadBalancer';
|
|
4
|
+
import type { IGceHttpLoadBalancer, IGceLoadBalancer } from '../domain/loadBalancer';
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import type { GceHttpLoadBalancerUtils } from './httpLoadBalancerUtils.service';
|
|
7
|
+
import { GCE_HTTP_LOAD_BALANCER_UTILS } from './httpLoadBalancerUtils.service';
|
|
7
8
|
|
|
8
9
|
export class GceLoadBalancerSetTransformer {
|
|
9
10
|
private static normalizeHttpLoadBalancerGroup(group: IGceHttpLoadBalancer[]): IGceHttpLoadBalancer {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { module } from 'angular';
|
|
2
2
|
import { has } from 'lodash';
|
|
3
3
|
|
|
4
|
-
import { Application,
|
|
4
|
+
import type { Application, IServerGroup } from '@spinnaker/core';
|
|
5
|
+
import { FirewallLabels } from '@spinnaker/core';
|
|
5
6
|
|
|
6
7
|
export class GceSecurityGroupHelpTextService {
|
|
7
8
|
private serverGroupsIndexedByTag: Map<string, Set<string>>;
|
|
@@ -2,12 +2,13 @@ import { module } from 'angular';
|
|
|
2
2
|
|
|
3
3
|
import { get, isEmpty } from 'lodash';
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import
|
|
5
|
+
import type { Option } from 'react-select';
|
|
6
|
+
import Select from 'react-select';
|
|
6
7
|
import { react2angular } from 'react2angular';
|
|
7
8
|
|
|
8
9
|
import { HelpField, withErrorBoundary } from '@spinnaker/core';
|
|
9
10
|
|
|
10
|
-
import { IGceAcceleratorType } from './gceAccelerator.service';
|
|
11
|
+
import type { IGceAcceleratorType } from './gceAccelerator.service';
|
|
11
12
|
|
|
12
13
|
interface IGceAcceleratorConfig {
|
|
13
14
|
acceleratorType: string;
|
package/src/serverGroup/configure/wizard/autoHealingPolicy/autoHealingPolicySelector.component.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { IComponentOptions, IController
|
|
1
|
+
import type { IComponentOptions, IController } from 'angular';
|
|
2
|
+
import { module } from 'angular';
|
|
2
3
|
import { set } from 'lodash';
|
|
3
4
|
|
|
4
|
-
import { IGceAutoHealingPolicy } from '../../../../domain/autoHealingPolicy';
|
|
5
|
-
import { IGceHealthCheckOption
|
|
5
|
+
import type { IGceAutoHealingPolicy } from '../../../../domain/autoHealingPolicy';
|
|
6
|
+
import type { IGceHealthCheckOption } from '../../../../healthCheck/healthCheckUtils';
|
|
7
|
+
import { parseHealthCheckUrl } from '../../../../healthCheck/healthCheckUtils';
|
|
6
8
|
|
|
7
9
|
class GceAutoHealingPolicySelector implements IController {
|
|
8
10
|
public healthChecks: string[];
|