@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.
@@ -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 declare type ClassicListenerProtocol = 'HTTP' | 'HTTPS' | 'TCP' | 'SSL';
6
- export declare type ALBListenerProtocol = 'HTTP' | 'HTTPS';
7
- export declare type IListenerActionType = 'forward' | 'authenticate-oidc' | 'redirect';
8
- export declare type NLBListenerProtocol = 'TCP' | 'TLS' | 'UDP';
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 declare type ListenerRuleConditionField = 'path-pattern' | 'host-header' | 'http-request-method';
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 declare type ScalingPolicyAdjustmentType = 'ChangeInCapacity' | 'ExactCapacity' | 'PercentChangeInCapacity';
21
- export declare type MetricAggregationType = 'Minimum' | 'Maximum' | 'Average';
22
- export declare type AlarmComparisonOperator = 'GreaterThanOrEqualToThreshold' | 'GreaterThanThreshold' | 'LessThanThreshold' | 'LessThanOrEqualToThreshold';
23
- export declare type AlarmStatisticType = 'SampleCount' | 'Average' | 'Sum' | 'Minimum' | 'Maximum';
24
- export declare 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';
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 declare type PredefinedMetricType = 'ASGAverageCPUUtilization' | 'ASGAverageNetworkIn' | 'ASGAverageNetworkOut' | 'ALBRequestCountPerTarget';
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) {