Skip to content
This repository was archived by the owner on Dec 20, 2025. It is now read-only.

feat(deploy/blockDevices): Adds a Volume section in the Deploy wizard#8911

Closed
jorgebee65 wants to merge 24 commits intospinnaker:masterfrom
armory-io:blockDeviceTags
Closed

feat(deploy/blockDevices): Adds a Volume section in the Deploy wizard#8911
jorgebee65 wants to merge 24 commits intospinnaker:masterfrom
armory-io:blockDeviceTags

Conversation

@jorgebee65
Copy link
Copy Markdown
Contributor

@jorgebee65 jorgebee65 commented Feb 12, 2021

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

volumes

…, this section allows to add multiple volumes to an instance, and also add Tags.
@jorgebee65 jorgebee65 changed the title Block device tags feat(deploy/blockDevices): Adds a Volume section in the Deploy wizard Feb 12, 2021
@christopherthielen
Copy link
Copy Markdown
Contributor

This PR should use the FormikFormField system for handling form input and managing form state

Copy link
Copy Markdown
Contributor

@christopherthielen christopherthielen left a 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.

Comment on lines +61 to +67
<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>
Copy link
Copy Markdown
Contributor

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

Comment on lines +22 to +31
public validate(
values: IBlockDevicesCommand,
): FormikErrors<IBlockDevicesCommand> {

const errors = {} as any;
const { blockDevices } = values;
console.log(blockDevices)
return errors;
}

Copy link
Copy Markdown
Contributor

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

@dbyron-sf dbyron-sf closed this Oct 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants