deploy.html 2.2 KB
Newer Older
B
bryk 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<!--
Copyright 2015 Google Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<div layout="column" layout-padding layout-align="center center">
  <md-whiteframe class="kd-deploy-whiteframe md-whiteframe-5dp" flex flex-gt-md>
    <h3 class="md-headline">Deploy a Containerized App</h3>
20
    <form name="ctrl.deployForm" ng-submit="ctrl.deployBySelection()">
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42

      <kd-help-section>
        <md-input-container class="md-block" ng-model-options="{ updateOn: 'blur' }">
          <label>App name</label>
          <input ng-model="ctrl.name" required>
        </md-input-container>
        <kd-user-help>
          An 'app' label with this value will be added to the Replica Set and Service that get deployed.
        </kd-user-help>
      </kd-help-section>

      <kd-help-section>
        <md-radio-group ng-model="ctrl.selection">
          <md-radio-button value="Settings" class="md-primary">
            Specify app details below
          </md-radio-button>
          <md-radio-button value="File" class="md-primary">
            Upload a YAML or JSON file
          </md-radio-button>
        </md-radio-group>
      </kd-help-section>

U
urcan 已提交
43
      <div ng-switch="ctrl.selection">
44
        <deploy-from-settings ng-switch-when="Settings" name="ctrl.name" namespaces="ctrl.namespaces" detail="ctrl.detail">
U
urcan 已提交
45
        </deploy-from-settings>
46
        <deploy-from-file ng-switch-when="File" name="ctrl.name" detail="ctrl.detail">
U
urcan 已提交
47 48
        </deploy-from-file>
      </div>
49

50 51 52 53
      <md-button class="md-raised md-primary" type="submit" ng-disabled="ctrl.isDeployDisabled()">
        Deploy
      </md-button>
      <md-button class="md-raised" ng-click="ctrl.cancel()">Cancel</md-button>
54

55
    </form>
B
bryk 已提交
56 57
  </md-whiteframe>
</div>