mirror of
https://github.com/portainer/portainer.git
synced 2025-08-06 22:35:23 +02:00
feature(kubernetes): stack name made optional & add toggle to disable stack in kubernetes [EE-6170] (#10436)
This commit is contained in:
parent
44d66cc633
commit
7840e0bfe1
29 changed files with 305 additions and 47 deletions
|
@ -32,11 +32,13 @@
|
|||
<label for="target_node" class="col-lg-2 col-sm-3 control-label text-left">Namespace</label>
|
||||
<div class="col-sm-8">
|
||||
<select
|
||||
ng-if="!ctrl.formValues.namespace_toggle"
|
||||
ng-disabled="ctrl.formValues.namespace_toggle"
|
||||
class="form-control"
|
||||
ng-model="ctrl.formValues.Namespace"
|
||||
ng-options="namespace.Name as namespace.Name for namespace in ctrl.namespaces"
|
||||
></select>
|
||||
<span ng-if="ctrl.formValues.namespace_toggle">Namespaces specified in the manifest will be used</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -48,12 +50,17 @@
|
|||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="stack_name" class="col-lg-2 col-sm-3 control-label required text-left">Name</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" class="form-control" ng-model="ctrl.formValues.StackName" id="stack_name" placeholder="my-app" auto-focus />
|
||||
</div>
|
||||
<label for="stack_name" class="col-lg-2 col-sm-3 control-label text-left">Name</label>
|
||||
<div class="col-sm-8"> Resource names specified in the manifest will be used </div>
|
||||
</div>
|
||||
|
||||
<kube-stack-name
|
||||
ng-if="!ctrl.deploymentOptions.hideStacksFunctionality"
|
||||
stack-name="ctrl.formValues.StackName"
|
||||
set-stack-name="(ctrl.setStackName)"
|
||||
is-admin="ctrl.currentUser.isAdmin"
|
||||
></kube-stack-name>
|
||||
|
||||
<div class="col-sm-12 form-section-title"> Deploy from </div>
|
||||
<box-selector
|
||||
slim="true"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue