import React from 'react'; import type { IDeploymentStrategyAdditionalFieldsProps } from '@spinnaker/core'; import { HelpField } from '@spinnaker/core'; import { AWSProviderSettings } from '../aws.settings'; import type { IRollingPushCommand } from './rollingPush.strategy'; export interface IRollingPushStrategyAdditionalFieldsProps extends IDeploymentStrategyAdditionalFieldsProps { command: IRollingPushCommand; } export class AdditionalFields extends React.Component { private handleChange = (key: string, value: any) => { this.props.command.termination[key] = value; this.forceUpdate(); }; public render() { const { command } = this.props; return (
Note: a rolling push only updates the{' '} launch {Boolean(AWSProviderSettings.serverGroups?.enableLaunchTemplates) ? 'template' : 'configuration'} {' '} for the auto scaling group.
Changes to the following fields will be ignored:
  • Account, Region, Subnet Type
  • Capacity
  • Load Balancers
  • Health Check Configuration
  • Termination Policies, Enable Traffic flag
{!command.termination.relaunchAllInstances && (
Total relaunches
this.handleChange('totalRelaunches', e.target.value)} min="0" />
)} {(command.termination.totalRelaunches > 0 || command.termination.relaunchAllInstances) && (
Concurrent relaunches
this.handleChange('concurrentRelaunches', e.target.value)} min="1" />
)} {(command.termination.totalRelaunches > 0 || command.termination.relaunchAllInstances) && (
Order
)}
); } }