@spinnaker/amazon 0.14.2 → 0.14.3

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@spinnaker/amazon",
3
3
  "license": "Apache-2.0",
4
- "version": "0.14.2",
4
+ "version": "0.14.3",
5
5
  "module": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
7
7
  "publishConfig": {
@@ -16,7 +16,7 @@
16
16
  "lib": "npm run build"
17
17
  },
18
18
  "dependencies": {
19
- "@spinnaker/core": "^0.27.0",
19
+ "@spinnaker/core": "^0.28.0",
20
20
  "@uirouter/angularjs": "1.0.26",
21
21
  "@uirouter/core": "6.0.8",
22
22
  "@uirouter/react": "1.0.7",
@@ -44,7 +44,7 @@
44
44
  "devDependencies": {
45
45
  "@spinnaker/eslint-plugin": "^3.0.2",
46
46
  "@spinnaker/mocks": "1.0.7",
47
- "@spinnaker/scripts": "^0.3.1",
47
+ "@spinnaker/scripts": "^0.4.0",
48
48
  "@types/angular": "1.6.26",
49
49
  "@types/angular-ui-bootstrap": "0.13.41",
50
50
  "@types/classnames": "2.2.0",
@@ -58,5 +58,5 @@
58
58
  "shx": "0.3.3",
59
59
  "typescript": "4.3.5"
60
60
  },
61
- "gitHead": "217b75396c5ec25d9b2019a849593b0b8d52e916"
61
+ "gitHead": "20d6ca89f39a5f44a802a1ccaffd669587450d76"
62
62
  }
@@ -19,22 +19,7 @@ import { s3BucketNameValidator } from '../../aws.validators';
19
19
  import type { IAmazonFunction } from '../../domain';
20
20
  import type { IAmazonFunctionUpsertCommand } from '../../index';
21
21
 
22
- const availableRuntimes = [
23
- 'nodejs10.x',
24
- 'nodejs12.x',
25
- 'java8',
26
- 'java11',
27
- 'python2.7',
28
- 'python3.6',
29
- 'python3.7',
30
- 'python3.8',
31
- 'dotnetcore2.1',
32
- 'dotnetcore3.1',
33
- 'go1.x',
34
- 'ruby2.5',
35
- 'ruby2.7',
36
- 'provided',
37
- ];
22
+ import { availableRuntimes } from '../../pipeline/stages/deployLambda/components/function.constants';
38
23
 
39
24
  export interface IFunctionProps {
40
25
  app: Application;
@@ -13,7 +13,7 @@ export interface ICloudFormationChangeSetInfoProps {
13
13
  export const CloudFormationChangeSetInfo = (props: ICloudFormationChangeSetInfoProps) => {
14
14
  const { stage, stageconfig } = props;
15
15
  const [changeSetName, setChangeSetName] = useState(
16
- (stage as any).changeSetName ? (stage as any).changeSetName : "ChangeSet-${ execution['id']}",
16
+ (stage as any).changeSetName ? (stage as any).changeSetName : "ChangeSet-${execution['id']}",
17
17
  );
18
18
  const [executeChangeSet, setExecuteChangeSet] = useState((stage as any).executeChangeSet);
19
19
  const [actionOnReplacement, setActionOnReplacement] = useState((stage as any).actionOnReplacement);
@@ -106,6 +106,7 @@ export const StepPolicyAction = ({
106
106
  <NumberInput
107
107
  value={step.metricIntervalLowerBound}
108
108
  max={step.metricIntervalUpperBound}
109
+ step={0.1}
109
110
  onChange={(e) =>
110
111
  updateStep({ ...step, metricIntervalLowerBound: Number.parseFloat(e.target.value) }, index)
111
112
  }
@@ -121,6 +122,7 @@ export const StepPolicyAction = ({
121
122
  <NumberInput
122
123
  value={step.metricIntervalUpperBound}
123
124
  min={step.metricIntervalLowerBound}
125
+ step={0.1}
124
126
  onChange={(e) =>
125
127
  updateStep({ ...step, metricIntervalUpperBound: Number.parseFloat(e.target.value) }, index)
126
128
  }
@@ -169,6 +169,17 @@ describe('awsServerGroupTransformer', () => {
169
169
  [0, 10, -5],
170
170
  );
171
171
  });
172
+
173
+ it('verify float adjustments work within the range', function () {
174
+ this.test(
175
+ [
176
+ { id: 1, scalingAdjustment: 10, metricIntervalLowerBound: 3.5, metricIntervalUpperBound: 5.5 },
177
+ { id: 2, scalingAdjustment: 0, metricIntervalLowerBound: 5.5 },
178
+ { id: 3, scalingAdjustment: -5, metricIntervalLowerBound: 1.2, metricIntervalUpperBound: 3.5 },
179
+ ],
180
+ [-5, 10, 0],
181
+ );
182
+ });
172
183
  });
173
184
  });
174
185
  });