-
Notifications
You must be signed in to change notification settings - Fork 902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(deploy/blockDevices): Adds a Volume section in the Deploy wizard #8911
base: master
Are you sure you want to change the base?
Conversation
…, this section allows to add multiple volumes to an instance, and also add Tags.
This PR should use the |
app/scripts/modules/amazon/src/serverGroup/configure/serverGroupConfiguration.service.ts
Outdated
Show resolved
Hide resolved
…upConfiguration.service.ts Co-authored-by: Ian Delahorne <ian.delahorne@gmail.com>
…mFields and resolving conflicts
…ls, remove serverGroupCommandBuilder.service.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for migrating this to Formik. I have a couple minor requests then I think it's good to go.
<div className="form-group"> | ||
<div className="sm-label-left"> | ||
<b>Tags (optional)</b> | ||
<HelpField id="aws.serverGroup.blockDevice.tags" /> | ||
</div> | ||
<MapEditor model={blockTags as any} allowEmpty={true} onChange={this.tagsChanged} /> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should use a FormikFormField
and a MapEditorInput
which would also make the validate
and `tagsChanged functions unnecessary
public validate( | ||
values: IBlockDevicesCommand, | ||
): FormikErrors<IBlockDevicesCommand> { | ||
|
||
const errors = {} as any; | ||
const { blockDevices } = values; | ||
console.log(blockDevices) | ||
return errors; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this function gets called ever, and it is also a noop, so might as well remove it
This feature adds a Volume section in the Deploy Wizard which allows to add one ore more volumes to an instance and also add Tags which applies to the list of volumes. Dependency on this other PR