@spinnaker/amazon 2025.0.5 → 2025.1.0
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/dist/domain/IAmazonLoadBalancer.d.ts +5 -5
- package/dist/domain/IScalingPolicy.d.ts +5 -5
- package/dist/domain/ITargetTrackingPolicy.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/instance/details/InstanceStatus.d.ts +1 -1
- package/dist/serverGroup/configure/serverGroupConfiguration.service.d.ts +1 -1
- package/dist/serverGroup/details/scalingPolicy/chart/DateLineChart.d.ts +1 -1
- package/dist/serverGroup/details/scalingPolicy/targetTracking/TargetMetricFields.d.ts +1 -1
- package/dist/serverGroup/details/scalingPolicy/upsert/ScalingPolicyCommandBuilderService.d.ts +1 -1
- package/dist/serverGroup/details/scalingPolicy/upsert/simple/SimplePolicyAction.d.ts +2 -2
- package/dist/serverGroup/details/scalingPolicy/upsert/step/StepPolicyAction.d.ts +2 -2
- package/package.json +3 -3
- package/src/serverGroup/configure/wizard/pages/ServerGroupCapacity.tsx +6 -1
- package/src/serverGroup/configure/wizard/pages/ServerGroupInstanceType.tsx +2 -1
|
@@ -2,10 +2,10 @@ import type { IInstance, IInstanceCounts, ILoadBalancer, ILoadBalancerDeleteComm
|
|
|
2
2
|
import type { IAmazonLoadBalancerSourceData } from './IAmazonLoadBalancerSourceData';
|
|
3
3
|
import type { IAmazonServerGroup } from './IAmazonServerGroup';
|
|
4
4
|
import type { IAuthenticateOidcActionConfig } from '../loadBalancer/OidcConfigReader';
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
5
|
+
export type ClassicListenerProtocol = 'HTTP' | 'HTTPS' | 'TCP' | 'SSL';
|
|
6
|
+
export type ALBListenerProtocol = 'HTTP' | 'HTTPS';
|
|
7
|
+
export type IListenerActionType = 'forward' | 'authenticate-oidc' | 'redirect';
|
|
8
|
+
export type NLBListenerProtocol = 'TCP' | 'TLS' | 'UDP';
|
|
9
9
|
export interface IAmazonLoadBalancer extends ILoadBalancer {
|
|
10
10
|
availabilityZones?: string[];
|
|
11
11
|
credentials?: string;
|
|
@@ -95,7 +95,7 @@ export interface IListenerRule {
|
|
|
95
95
|
conditions: IListenerRuleCondition[];
|
|
96
96
|
priority: number | 'default';
|
|
97
97
|
}
|
|
98
|
-
export
|
|
98
|
+
export type ListenerRuleConditionField = 'path-pattern' | 'host-header' | 'http-request-method';
|
|
99
99
|
export interface IListenerRuleCondition {
|
|
100
100
|
field: ListenerRuleConditionField;
|
|
101
101
|
httpRequestMethodConfig?: {
|
|
@@ -17,11 +17,11 @@ export interface IScalingPolicyAlarm {
|
|
|
17
17
|
alarmDescription?: string;
|
|
18
18
|
unit?: StandardUnitType;
|
|
19
19
|
}
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
export
|
|
20
|
+
export type ScalingPolicyAdjustmentType = 'ChangeInCapacity' | 'ExactCapacity' | 'PercentChangeInCapacity';
|
|
21
|
+
export type MetricAggregationType = 'Minimum' | 'Maximum' | 'Average';
|
|
22
|
+
export type AlarmComparisonOperator = 'GreaterThanOrEqualToThreshold' | 'GreaterThanThreshold' | 'LessThanThreshold' | 'LessThanOrEqualToThreshold';
|
|
23
|
+
export type AlarmStatisticType = 'SampleCount' | 'Average' | 'Sum' | 'Minimum' | 'Maximum';
|
|
24
|
+
export type StandardUnitType = 'Seconds' | 'Microseconds' | 'Milliseconds' | 'Bytes' | 'Kilobytes' | 'Megabytes' | 'Gigabytes' | 'Terabytes' | 'Bits' | 'Kilobits' | 'Megabits' | 'Gigabits' | 'Terabits' | 'Percent' | 'Count' | 'BytesSecond' | 'KilobytesSecond' | 'MegabytesSecond' | 'GigabytesSecond' | 'TerabytesSecond' | 'BitsSecond' | 'KilobitsSecond' | 'MegabitsSecond' | 'GigabitsSecond' | 'TerabitsSecond' | 'CountSecond' | 'None';
|
|
25
25
|
export interface IStepAdjustment {
|
|
26
26
|
metricIntervalLowerBound?: number;
|
|
27
27
|
metricIntervalUpperBound?: number;
|
|
@@ -19,4 +19,4 @@ export interface IPredefinedMetricSpecification {
|
|
|
19
19
|
predefinedMetricType: PredefinedMetricType;
|
|
20
20
|
resourceLabel?: string;
|
|
21
21
|
}
|
|
22
|
-
export
|
|
22
|
+
export type PredefinedMetricType = 'ASGAverageCPUUtilization' | 'ASGAverageNetworkIn' | 'ASGAverageNetworkOut' | 'ALBRequestCountPerTarget';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as angular from 'angular';
|
|
2
2
|
import { module } from 'angular';
|
|
3
|
-
import { SETTINGS, HelpField, DeploymentStrategyRegistry, FormValidator, FormikFormField, TextInput, AccountService, ReactSelectInput, CheckboxInput, MapEditorInput, NumberInput, NetworkReader, SubnetReader, ReactInjector, TetheredSelect, TaskMonitor, FunctionWriter, ReactModal, WizardModal, WizardPage, noop, ConfirmationModalService, ApplicationReader, AddEntityTagLinks, ReactInject, Details, AccountTag, Overrides, CollapsibleSection, HelpContentsRegistry, REST, LabeledValue, timestamp, useData, SubnetTag, withErrorBoundary, InstanceWriter, TaskExecutor, CloudProviderRegistry, FirewallLabels, RecentHistoryService, InstanceReader, LabeledValueList, LinkWithClipboard, robotToHuman, Tooltip, InstanceLoadBalancerHealth, LoadBalancerServerGroup, HealthCounts, LoadBalancerInstances, LoadBalancerClusterContainer, logger, LoadBalancerDataUtils, Spinner, HoverablePopover, NameUtils, Overridable, relativeTime, SpinFormik, ModalClose, SubmitButton, SelectInput, CertificateReader, ValidationMessage, CustomLabels, Validators, spelNumberCheck, SpInput, SpelNumberInput, ChecklistInput, useDeepObjectDiff, useMountStatusRef, createFakeReactSyntheticEvent, Markdown, AccountSelectInput, RegionSelectField, InfrastructureCaches, LoadBalancerWriter, ManagedMenuItem, SECURITY_GROUP_READER, LOAD_BALANCER_READ_SERVICE, MANAGED_RESOURCE_DETAILS_INDICATOR, APPLICATION_STATE_PROVIDER, Registry, BakeExecutionLabel, AuthenticationService, PipelineTemplates, BakeryReader, StageConstants, AppListExtractor, ExecutionDetailsSection, StageFailureMessage, ExecutionDetailsTasks, FormikStageConfig, StageConfigField, yamlDocumentsToString, ExecutionStepDetails, NgGenericArtifactDelegate, ExpectedArtifactSelectorViewController, ExecutionBarLabel, ExpectedArtifactService, ArtifactReferenceService, EXECUTION_SERVICE, TetheredCreatable, excludeAllTypesExcept, ArtifactTypePatterns, StageArtifactSelectorDelegate, PipelineConfigService, ModalWizard, SecurityGroupWriter, filterObjectValues, CACHE_INITIALIZER_SERVICE, confirmNotManaged, DeployInitializer, DeployingIntoManagedClusterWarning, ServerGroupDetailsField, DeploymentStrategySelector, ServerGroupNamePreview, TaskReason, ToggleButtonGroup, ToggleSize, usePrevious, NgReact, PlatformHealthOverride, MapEditor, UserVerification, TaskMonitorWrapper, MinMaxDesiredChanges, ServerGroupWarningMessageService, ModalInjector, ClusterTargetBuilder, ServerGroupReader, CloudMetricsReader, TaskMonitorModal, EntitySource, ViewChangesLink, CapacityDetailsSection, ViewScalingActivitiesLink, ShowUserData, SERVER_GROUP_COMMAND_REGISTRY_PROVIDER, setMatchingResourceSummary, INSTANCE_TYPE_SERVICE, SERVER_GROUP_WRITER, ApplicationNameValidator } from '@spinnaker/core';
|
|
3
|
+
import { SETTINGS, HelpField, DeploymentStrategyRegistry, FormValidator, FormikFormField, TextInput, AccountService, ReactSelectInput, CheckboxInput, MapEditorInput, NumberInput, NetworkReader, SubnetReader, ReactInjector, TetheredSelect, TaskMonitor, FunctionWriter, ReactModal, WizardModal, WizardPage, noop, ConfirmationModalService, ApplicationReader, AddEntityTagLinks, ReactInject, Details, AccountTag, Overrides, CollapsibleSection, HelpContentsRegistry, REST, LabeledValue, timestamp, useData, SubnetTag, withErrorBoundary, InstanceWriter, TaskExecutor, CloudProviderRegistry, FirewallLabels, RecentHistoryService, InstanceReader, LabeledValueList, LinkWithClipboard, robotToHuman, Tooltip, InstanceLoadBalancerHealth, LoadBalancerServerGroup, HealthCounts, LoadBalancerInstances, LoadBalancerClusterContainer, logger, LoadBalancerDataUtils, Spinner, HoverablePopover, NameUtils, Overridable, relativeTime, SpinFormik, ModalClose, SubmitButton, SelectInput, CertificateReader, ValidationMessage, CustomLabels, Validators, spelNumberCheck, SpInput, SpelNumberInput, ChecklistInput, useDeepObjectDiff, useMountStatusRef, createFakeReactSyntheticEvent, Markdown, AccountSelectInput, RegionSelectField, InfrastructureCaches, LoadBalancerWriter, ManagedMenuItem, SECURITY_GROUP_READER, LOAD_BALANCER_READ_SERVICE, MANAGED_RESOURCE_DETAILS_INDICATOR, APPLICATION_STATE_PROVIDER, Registry, BakeExecutionLabel, AuthenticationService, PipelineTemplates, BakeryReader, StageConstants, AppListExtractor, ExecutionDetailsSection, StageFailureMessage, ExecutionDetailsTasks, FormikStageConfig, StageConfigField, yamlDocumentsToString, ExecutionStepDetails, NgGenericArtifactDelegate, ExpectedArtifactSelectorViewController, ExecutionBarLabel, ExpectedArtifactService, ArtifactReferenceService, EXECUTION_SERVICE, TetheredCreatable, excludeAllTypesExcept, ArtifactTypePatterns, StageArtifactSelectorDelegate, PipelineConfigService, ModalWizard, SecurityGroupWriter, filterObjectValues, CACHE_INITIALIZER_SERVICE, confirmNotManaged, DeployInitializer, DeployingIntoManagedClusterWarning, ServerGroupDetailsField, DeploymentStrategySelector, ServerGroupNamePreview, TaskReason, parseNum, ToggleButtonGroup, ToggleSize, usePrevious, NgReact, PlatformHealthOverride, MapEditor, UserVerification, TaskMonitorWrapper, MinMaxDesiredChanges, ServerGroupWarningMessageService, ModalInjector, ClusterTargetBuilder, ServerGroupReader, CloudMetricsReader, TaskMonitorModal, EntitySource, ViewChangesLink, CapacityDetailsSection, ViewScalingActivitiesLink, ShowUserData, SERVER_GROUP_COMMAND_REGISTRY_PROVIDER, setMatchingResourceSummary, INSTANCE_TYPE_SERVICE, SERVER_GROUP_WRITER, ApplicationNameValidator } from '@spinnaker/core';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import React__default, { useState, useEffect } from 'react';
|
|
6
6
|
import _, { isEmpty, forOwn, uniqBy, cloneDeep, flatten, isNil, orderBy, isEqual, sortBy, filter, chain, map as map$1, pickBy, groupBy, get, uniq, difference, some, isNumber, set, partition, every, values, head, extend, isString, intersection, keyBy, find, flatMap, has, clone, keys, xor } from 'lodash';
|
|
@@ -13518,7 +13518,7 @@ class MinMaxDesired extends React__default.Component {
|
|
|
13518
13518
|
class ServerGroupCapacity extends React__default.Component {
|
|
13519
13519
|
validate(values) {
|
|
13520
13520
|
const errors = {};
|
|
13521
|
-
if (values.capacity.min < 0 || values.capacity.max < 0 || values.capacity.desired < 0) {
|
|
13521
|
+
if (parseNum(values.capacity.min) < 0 || parseNum(values.capacity.max) < 0 || parseNum(values.capacity.desired) < 0) {
|
|
13522
13522
|
errors.capacity = "Capacity min, max, and desired all have to be non-negative values.";
|
|
13523
13523
|
}
|
|
13524
13524
|
const amazonValues = values;
|
|
@@ -14363,7 +14363,7 @@ class ServerGroupInstanceType extends React__default.Component {
|
|
|
14363
14363
|
if (values.onDemandBaseCapacity < 0) {
|
|
14364
14364
|
errors.onDemandBaseCapacity = "On-Demand base capacity must be non-negative.";
|
|
14365
14365
|
}
|
|
14366
|
-
if (values.onDemandBaseCapacity > values.capacity.max) {
|
|
14366
|
+
if (values.onDemandBaseCapacity > parseNum(values.capacity.max)) {
|
|
14367
14367
|
errors.onDemandBaseCapacity = "On-Demand base capacity must be less than or equal to max capacity.";
|
|
14368
14368
|
}
|
|
14369
14369
|
if (values.onDemandPercentageAboveBaseCapacity < 0 || values.onDemandPercentageAboveBaseCapacity > 100) {
|