Shu Muto fa57cda20c Add parameters for cluster creation
This patch adds 'image_driver', 'image_pull_policy' and
'restart_policy' parameters into cluster creation action.

Change-Id: I479e85787b0a2518968e8bb774159073b1573162
2017-06-14 10:44:15 +09:00

46 lines
2.2 KiB
HTML

<div ng-controller="createContainerSpecController as ctrl">
<div class="row">
<div class="col-xs-12">
<div class="form-group">
<label class="control-label" for="container-cpu" translate>CPU</label>
<input name="container-cpu" type="number" id="container-cpu" min="0" step="0.1"
class="form-control" ng-model="model.newContainerSpec.cpu"
placeholder="{$ 'The number of virtual cpu for this container.'|translate $}">
</div>
</div>
<div class="col-xs-12">
<div class="form-group">
<label class="control-label" for="container-memory" translate>Memory Size</label>
<input name="container-memory" type="number" min="1"
class="form-control" ng-model="model.newContainerSpec.memory"
placeholder="{$ 'The container memory size in MiB.'|translate $}"
id="container-memory">
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label class="control-label" for="container-restart" translate>Restart Policy</label>
<select name="container-restart" class="form-control" id="container-memory"
ng-model="model.newContainerSpec.restart_policy"
ng-change="ctrl.onChangeRestartPolicy()">
<option value="" selected=selected translate>Select policy.</option>
<option value="no" translate>No</option>
<option value="on-failure" translate>On failure</option>
<option value="always" translate>Always</option>
<option value="unless-stopped" translate>Unless Stopped</option>
</select>
</div>
</div>
<div class="col-xs-6">
<div class="form-group">
<label class="control-label" for="container-restart-max-retry" translate>Max Retry</label>
<input name="container-restart-max-retry" type="number" min="1"
class="form-control" ng-model="model.newContainerSpec.restart_policy_max_retry"
id="container-restart-max-retry"
placeholder="{$ 'Retry times for \'On failure\' policy.'|translate $}"
ng-disabled="model.newContainerSpec.restart_policy!=='on-failure'">
</div>
</div>
</div>
</div>