This is an automated email from the ASF dual-hosted git repository.

marat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git


The following commit(s) were added to refs/heads/main by this push:
     new de248b34 Prepare to work in Openshift for #885
de248b34 is described below

commit de248b347d34c4e604a495c0f31c3ae4e4ac162c
Author: Marat Gubaidullin <ma...@talismancloud.io>
AuthorDate: Sun Sep 17 14:33:55 2023 -0400

    Prepare to work in Openshift for #885
---
 .../karavan-app/src/main/resources/snippets/deployment.jkube.yaml     | 4 ++--
 karavan-web/karavan-app/src/main/webui/src/designer/utils/CamelUi.tsx | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/karavan-web/karavan-app/src/main/resources/snippets/deployment.jkube.yaml 
b/karavan-web/karavan-app/src/main/resources/snippets/deployment.jkube.yaml
index 0578527a..2b417169 100644
--- a/karavan-web/karavan-app/src/main/resources/snippets/deployment.jkube.yaml
+++ b/karavan-web/karavan-app/src/main/resources/snippets/deployment.jkube.yaml
@@ -4,6 +4,6 @@ spec:
     spec:
       containers:
           env:
-            - name: FOO
-              value: bar
+            - name: _JAVA_OPTIONS
+              value: "-Duser.home=/app"
       serviceAccount: karavan
\ No newline at end of file
diff --git 
a/karavan-web/karavan-app/src/main/webui/src/designer/utils/CamelUi.tsx 
b/karavan-web/karavan-app/src/main/webui/src/designer/utils/CamelUi.tsx
index 6b3f7093..66e9b1e8 100644
--- a/karavan-web/karavan-app/src/main/webui/src/designer/utils/CamelUi.tsx
+++ b/karavan-web/karavan-app/src/main/webui/src/designer/utils/CamelUi.tsx
@@ -289,7 +289,7 @@ export class CamelUi {
     }
 
     static nameFromTitle = (title: string): string => {
-        return title.replace(/[^a-z0-9+]+/gi, "-").toLowerCase();
+        return title.replace(/[^0-9a-zA-Z.]+/gi, "-").toLowerCase();
     }
 
     static javaNameFromTitle = (title: string): string => {

Reply via email to