From 3f700f1b266c98bc01a77e9534c5582cb8d628c3 Mon Sep 17 00:00:00 2001 From: fhanportainer <79428273+fhanportainer@users.noreply.github.com> Date: Wed, 9 Jun 2021 15:02:47 +1200 Subject: [PATCH] feat(stack): UI updates in git repo deployment method for k8s EE-640. (#5097) * feat(stack): UI updates in git repo deployment method for k8s EE-640. * feat(stack): supports the combination of GIT + COMPOSE. * feat(stack): rename variable --- app/kubernetes/models/deploy.js | 10 + app/kubernetes/views/deploy/deploy.html | 185 +++++++++++++++--- .../views/deploy/deployController.js | 39 +++- app/portainer/services/api/stackService.js | 13 +- 4 files changed, 201 insertions(+), 46 deletions(-) diff --git a/app/kubernetes/models/deploy.js b/app/kubernetes/models/deploy.js index d9e0d8363..34fe609fe 100644 --- a/app/kubernetes/models/deploy.js +++ b/app/kubernetes/models/deploy.js @@ -2,3 +2,13 @@ export const KubernetesDeployManifestTypes = Object.freeze({ KUBERNETES: 1, COMPOSE: 2, }); + +export const KubernetesDeployBuildMethods = Object.freeze({ + GIT: 1, + WEB_EDITOR: 2, +}); + +export const KubernetesDeployRequestMethods = Object.freeze({ + REPOSITORY: 'repository', + STRING: 'string', +}); diff --git a/app/kubernetes/views/deploy/deploy.html b/app/kubernetes/views/deploy/deploy.html index ceed8c17e..549dc93eb 100644 --- a/app/kubernetes/views/deploy/deploy.html +++ b/app/kubernetes/views/deploy/deploy.html @@ -52,41 +52,162 @@ - + +
- - Portainer uses Kompose to convert your Compose manifest to a Kubernetes compliant manifest. Be wary that not - all the Compose format options are supported by Kompose at the moment. -
-- You can get more information about Compose file format in the - official documentation. -
- - -- - This feature allows you to deploy any kind of Kubernetes resource in this environment (Deployment, Secret, ConfigMap...). -
-- You can get more information about Kubernetes file format in the - official documentation. -
- + +refs/heads/branch_name or tags with refs/tags/tag_name. If not specified, will use the default HEAD reference normally
+ the master branch.
+
+ authentication required error when deploying your stack. In this case, you will need to provide a personal-access token instead of your password.
+
+ + + Portainer uses Kompose to convert your Compose manifest to a Kubernetes compliant manifest. Be wary that + not all the Compose format options are supported by Kompose at the moment. +
++ You can get more information about Compose file format in the + official documentation. +
+ + ++ + This feature allows you to deploy any kind of Kubernetes resource in this environment (Deployment, Secret, ConfigMap...). +
++ You can get more information about Kubernetes file format in the + official documentation. +
+ +