From b08e0b023524ed7544ebbc243f46917de51dd8a8 Mon Sep 17 00:00:00 2001 From: fhanportainer <79428273+fhanportainer@users.noreply.github.com> Date: Wed, 13 Apr 2022 21:57:39 +1200 Subject: [PATCH] feat(git): added regex to validate compose file extension (#6731) * feat(git): added regex to validate compose file extension * feat(git): copy change * feat(git): updated icon --- app/kubernetes/views/deploy/deploy.html | 4 +- .../git-form-additional-file-item.html | 11 ++++- .../git-form-compose-path-field.html | 41 +++++++++++-------- 3 files changed, 36 insertions(+), 20 deletions(-) diff --git a/app/kubernetes/views/deploy/deploy.html b/app/kubernetes/views/deploy/deploy.html index 8ebfd70c5..7531e8a88 100644 --- a/app/kubernetes/views/deploy/deploy.html +++ b/app/kubernetes/views/deploy/deploy.html @@ -13,7 +13,7 @@ Deploy
Namespace
-
+
@@ -161,7 +161,7 @@
diff --git a/app/portainer/components/forms/git-form/git-form-compose-path-field/git-form-compose-path-field.html b/app/portainer/components/forms/git-form/git-form-compose-path-field/git-form-compose-path-field.html index bce200564..dd8c7577b 100644 --- a/app/portainer/components/forms/git-form/git-form-compose-path-field/git-form-compose-path-field.html +++ b/app/portainer/components/forms/git-form/git-form-compose-path-field/git-form-compose-path-field.html @@ -1,18 +1,25 @@ -
- Indicate the path to the {{ $ctrl.deployMethod == 'compose' ? 'Compose' : 'Manifest' }} file from the root of your repository. -
-
- -
- + +
+ Indicate the path to the {{ $ctrl.deployMethod == 'compose' ? 'Compose' : 'Manifest' }} file from + the root of your repository (requires a yaml, yml, json, or hcl file extension) +
-
+
+ +
+ +

Invalid file path

+
+
+