claudio4j commented on code in PR #19168:
URL: https://github.com/apache/camel/pull/19168#discussion_r2349063242


##########
dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/MountTrait.java:
##########
@@ -232,14 +240,22 @@ private MountResource parseConfig(String expression, 
MountResource.ContentType c
 
     private MountResource createConfig(
             String expression, MountResource.StorageType storageType, 
MountResource.ContentType contentType) {
+        String name = expression;
+        String key = "";
+        String destPath = "";
         Matcher resourceCoordinates = 
RESOURCE_VALUE_EXPRESSION.matcher(expression);
         if (resourceCoordinates.matches()) {
-            return new MountResource(
-                    storageType, contentType, resourceCoordinates.group(0), 
resourceCoordinates.group(2),
-                    resourceCoordinates.group(4));
-        } else {
-            return new MountResource(storageType, contentType, expression, "", 
"");
+            // for (int i = 0; i < resourceCoordinates.groupCount(); i++) {

Review Comment:
   done. I also added tests in KubernetesRunTest



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to