1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

add name field for helm install in advance deployments (#10493)

This commit is contained in:
Prabhat Khera 2023-10-18 11:37:03 +13:00 committed by GitHub
parent 776be2e022
commit 56f3bd8417
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 5 deletions

View file

@ -50,12 +50,28 @@
</div>
<div class="form-group">
<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>
<label for="name" class="col-lg-2 col-sm-3 control-label text-left">Name</label>
<div class="col-sm-8" ng-if="ctrl.state.BuildMethod !== ctrl.BuildMethods.HELM"> Resource names specified in the manifest will be used </div>
<div class="col-sm-8" ng-if="ctrl.state.BuildMethod === ctrl.BuildMethods.HELM">
<input
type="text"
class="form-control"
ng-model="ctrl.formValues.Name"
id="name"
name="name"
placeholder="name"
required="ctrl.state.BuildMethod === ctrl.BuildMethods.HELM"
/>
<div class="small text-warning mt-2">
<div ng-messages="ctrl.deploymentForm.name.$error">
<p ng-message="required"> <pr-icon icon="'alert-triangle'" mode="'warning'"></pr-icon> This field is required.</p>
</div>
</div>
</div>
</div>
<kube-stack-name
ng-if="!ctrl.deploymentOptions.hideStacksFunctionality"
ng-if="!ctrl.deploymentOptions.hideStacksFunctionality && ctrl.state.BuildMethod !== ctrl.BuildMethods.HELM"
stack-name="ctrl.formValues.StackName"
set-stack-name="(ctrl.setStackName)"
is-admin="ctrl.currentUser.isAdmin"
@ -180,6 +196,7 @@
endpoint="ctrl.endpoint"
namespace="ctrl.formValues.Namespace"
stack-name="ctrl.formValues.StackName"
name="ctrl.formValues.Name"
></helm-templates-view>
</div>
<!-- !Helm -->

View file

@ -75,6 +75,7 @@ class KubernetesDeployController {
Variables: {},
AutoUpdate: parseAutoUpdateResponse(),
TLSSkipVerify: false,
Name: '',
};
this.ManifestDeployTypes = KubernetesDeployManifestTypes;