@spinnaker/ecs 0.0.356 → 0.0.364
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/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spinnaker/ecs",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.364",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
9
|
+
},
|
|
7
10
|
"scripts": {
|
|
8
11
|
"clean": "shx rm -rf dist",
|
|
9
12
|
"prepublishOnly": "npm run build",
|
|
@@ -13,9 +16,9 @@
|
|
|
13
16
|
"lib": "npm run build"
|
|
14
17
|
},
|
|
15
18
|
"dependencies": {
|
|
16
|
-
"@spinnaker/amazon": "^0.
|
|
17
|
-
"@spinnaker/core": "^0.
|
|
18
|
-
"@spinnaker/docker": "^0.0.
|
|
19
|
+
"@spinnaker/amazon": "^0.14.3",
|
|
20
|
+
"@spinnaker/core": "^0.28.0",
|
|
21
|
+
"@spinnaker/docker": "^0.0.145",
|
|
19
22
|
"@uirouter/angularjs": "1.0.26",
|
|
20
23
|
"@uirouter/react": "1.0.7",
|
|
21
24
|
"angular": "1.6.10",
|
|
@@ -28,8 +31,8 @@
|
|
|
28
31
|
"react2angular": "3.2.1"
|
|
29
32
|
},
|
|
30
33
|
"devDependencies": {
|
|
31
|
-
"@spinnaker/eslint-plugin": "^3.0.
|
|
32
|
-
"@spinnaker/scripts": "^0.
|
|
34
|
+
"@spinnaker/eslint-plugin": "^3.0.2",
|
|
35
|
+
"@spinnaker/scripts": "^0.4.0",
|
|
33
36
|
"@types/angular": "1.6.26",
|
|
34
37
|
"@types/angular-ui-bootstrap": "0.13.41",
|
|
35
38
|
"@types/lodash": "4.14.64",
|
|
@@ -39,5 +42,5 @@
|
|
|
39
42
|
"shx": "0.3.3",
|
|
40
43
|
"typescript": "4.3.5"
|
|
41
44
|
},
|
|
42
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "20d6ca89f39a5f44a802a1ccaffd669587450d76"
|
|
43
46
|
}
|
|
@@ -80,8 +80,15 @@ export class EcsNetworking extends React.Component<IEcsNetworkingProps, IEcsNetw
|
|
|
80
80
|
|
|
81
81
|
private updateNetworkMode = (newNetworkMode: Option<string>) => {
|
|
82
82
|
const updatedNetworkMode = newNetworkMode.value;
|
|
83
|
+
const cmd = this.props.command;
|
|
83
84
|
this.props.notifyAngular('networkMode', updatedNetworkMode);
|
|
84
|
-
this.setState({
|
|
85
|
+
this.setState({
|
|
86
|
+
networkMode: updatedNetworkMode,
|
|
87
|
+
subnetTypesAvailable:
|
|
88
|
+
cmd.backingData && cmd.backingData.filtered && cmd.backingData.filtered.subnetTypes
|
|
89
|
+
? cmd.backingData.filtered.subnetTypes
|
|
90
|
+
: [],
|
|
91
|
+
});
|
|
85
92
|
};
|
|
86
93
|
|
|
87
94
|
private updateSecurityGroups = (newSecurityGroups: Option<string>) => {
|
|
@@ -159,7 +159,16 @@ describe('ecsServerGroupTransformer', () => {
|
|
|
159
159
|
[-5, 10, 0],
|
|
160
160
|
);
|
|
161
161
|
});
|
|
162
|
-
|
|
162
|
+
it('verify float adjustments work within the range', function () {
|
|
163
|
+
this.test(
|
|
164
|
+
[
|
|
165
|
+
{ id: 1, scalingAdjustment: 10, metricIntervalLowerBound: 3.5, metricIntervalUpperBound: 5.5 },
|
|
166
|
+
{ id: 2, scalingAdjustment: 0, metricIntervalLowerBound: 5.5 },
|
|
167
|
+
{ id: 3, scalingAdjustment: -5, metricIntervalLowerBound: 1.2, metricIntervalUpperBound: 3.5 },
|
|
168
|
+
],
|
|
169
|
+
[-5, 10, 0],
|
|
170
|
+
);
|
|
171
|
+
});
|
|
163
172
|
it('reverse sorts step adjustments by upper bound when all have an upper bound defined', function () {
|
|
164
173
|
this.test(
|
|
165
174
|
[
|