diff --git a/app/kubernetes/views/deploy/deploy.html b/app/kubernetes/views/deploy/deploy.html
index 26bd22e5e..135a5be00 100644
--- a/app/kubernetes/views/deploy/deploy.html
+++ b/app/kubernetes/views/deploy/deploy.html
@@ -45,7 +45,13 @@
Deployment type
-
+
@@ -58,6 +64,7 @@
show-auth-explanation="true"
path-text-title="Manifest path"
path-placeholder="deployment.yml"
+ deploy-method="{{ ctrl.DeployMethod }}"
>
diff --git a/app/kubernetes/views/deploy/deployController.js b/app/kubernetes/views/deploy/deployController.js
index d5d1855a3..b7d41c87b 100644
--- a/app/kubernetes/views/deploy/deployController.js
+++ b/app/kubernetes/views/deploy/deployController.js
@@ -32,6 +32,7 @@ class KubernetesDeployController {
this.StackService = StackService;
this.WebhookHelper = WebhookHelper;
this.CustomTemplateService = CustomTemplateService;
+ this.DeployMethod = 'manifest';
this.deployOptions = [
buildOption('method_kubernetes', 'fa fa-cubes', 'Kubernetes', 'Kubernetes manifest format', KubernetesDeployManifestTypes.KUBERNETES),
@@ -79,6 +80,7 @@ class KubernetesDeployController {
this.getNamespacesAsync = this.getNamespacesAsync.bind(this);
this.onChangeFormValues = this.onChangeFormValues.bind(this);
this.buildAnalyticsProperties = this.buildAnalyticsProperties.bind(this);
+ this.onDeployTypeChange = this.onDeployTypeChange.bind(this);
}
buildAnalyticsProperties() {
@@ -280,6 +282,14 @@ class KubernetesDeployController {
return this.$async(this.getNamespacesAsync);
}
+ onDeployTypeChange(value) {
+ if (value == this.ManifestDeployTypes.COMPOSE) {
+ this.DeployMethod = 'compose';
+ } else {
+ this.DeployMethod = 'manifest';
+ }
+ }
+
async uiCanExit() {
if (this.formValues.EditorContent && this.state.isEditorDirty) {
return this.ModalService.confirmWebEditorDiscard();