提交 a94361c5 编写于 作者: P Piotr Bryk 提交者: GitHub

Merge pull request #1051 from bryk/zero-replicas

Allow replication controller to have zero replicas
......@@ -514,4 +514,6 @@
<translation id="6463616657349920914" key="MSG_TIME_NOT_YET_LABEL" source="/usr/local/google/home/bryk/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label for relative time that did not happened yet.">-</translation>
<translation id="8437089550135561673" key="MSG_NODE_LIST_STATUS_LABEL" source="/Users/eddy/GitHub/dashboard/.tmp/serve/app-dev.js" desc="Label 'Status' which appears as a column label in the table of nodes (node list view).">Status</translation>
<translation id="6987669710926523285" key="MSG_NODE_LIST_READY_LABEL" source="/home/maciaszczykm/workspace/dashboard/.tmp/serve/app-dev.js" desc="Label 'Ready' which appears as a column label in the table of nodes (node list view).">Ready</translation>
<translation id="6987669710926523285" key="MSG_NODE_LIST_READY_LABEL" source="/usr/local/google/home/bryk/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Ready' which appears as a column label in the table of nodes (node list view).">Ready</translation>
<translation id="394136829343605455" key="MSG_RC_DETAIL_NUMBER_OF_PODS_INTEGER_WARNING" source="/usr/local/google/home/bryk/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="This warning appears when the specified pods count on the &quot;update number of pods&quot; dialog is not positive or non-integer.">Number of replicas must be equal to or greater than zero</translation>
</translationbundle>
\ No newline at end of file
......@@ -703,4 +703,6 @@
<translation id="6463616657349920914" key="MSG_TIME_NOT_YET_LABEL" source="/usr/local/google/home/bryk/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label for relative time that did not happened yet.">-</translation>
<translation id="8437089550135561673" key="MSG_NODE_LIST_STATUS_LABEL" source="/Users/eddy/GitHub/dashboard/.tmp/serve/app-dev.js" desc="Label 'Status' which appears as a column label in the table of nodes (node list view).">Status</translation>
<translation id="6987669710926523285" key="MSG_NODE_LIST_READY_LABEL" source="/home/maciaszczykm/workspace/dashboard/.tmp/serve/app-dev.js" desc="Label 'Ready' which appears as a column label in the table of nodes (node list view).">Ready</translation>
<translation id="6987669710926523285" key="MSG_NODE_LIST_READY_LABEL" source="/usr/local/google/home/bryk/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Ready' which appears as a column label in the table of nodes (node list view).">Ready</translation>
<translation id="394136829343605455" key="MSG_RC_DETAIL_NUMBER_OF_PODS_INTEGER_WARNING" source="/usr/local/google/home/bryk/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="This warning appears when the specified pods count on the &quot;update number of pods&quot; dialog is not positive or non-integer.">Number of replicas must be equal to or greater than zero</translation>
</translationbundle>
\ No newline at end of file
......@@ -26,7 +26,7 @@ limitations under the License.
<form name="ctrl.updateReplicasForm" ng-submit="ctrl.updateReplicas()" novalidate>
<md-input-container class="md-block">
<label>{{::ctrl.i18n.MSG_RC_DETAIL_NUMBER_OF_PODS_LABEL}}</label>
<input name="podCount" type="number" kd-validate="integer" min="1" ng-model="ctrl.replicas"
<input name="podCount" type="number" kd-validate="integer" min="0" ng-model="ctrl.replicas"
required kd-warn-threshold="100" kd-warn-threshold-bind="showWarning">
<ng-messages for="ctrl.updateReplicasForm.podCount.$error" role="alert">
<ng-message when="required">{{::ctrl.i18n.MSG_RC_DETAIL_NUMBER_OF_PODS_REQUIRED_WARNING}}</ng-message>
......
......@@ -146,7 +146,8 @@ function i18n(replicationController, currentPods, desiredPods) {
MSG_RC_DETAIL_NUMBER_OF_PODS_REQUIRED_WARNING: goog.getMsg('Number of pods is required'),
/** @export {string} @desc This warning appears when the specified pods count on
the "update number of pods" dialog is not positive or non-integer.*/
MSG_RC_DETAIL_NUMBER_OF_PODS_INTEGER_WARNING: goog.getMsg('Must be a positive integer'),
MSG_RC_DETAIL_NUMBER_OF_PODS_INTEGER_WARNING:
goog.getMsg('Number of replicas must be equal to or greater than zero'),
/** @export {string} @desc This warning appears when the specified pods count (on the "update
number of pods" dialog) is very high. */
MSG_RC_DETAIL_NUMBER_OF_PODS_HIGH_WARNING: goog.getMsg(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册