tdiesler commented on code in PR #14806:
URL: https://github.com/apache/camel/pull/14806#discussion_r1680561470


##########
dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/KubernetesExport.java:
##########
@@ -141,46 +136,52 @@ public Integer export() throws Exception {
             runtime = RuntimeType.quarkus;
         }
 
-        List<String> exportDependencies = 
Optional.ofNullable(dependencies).map(Arrays::asList).orElseGet(ArrayList::new);
-        exportDependencies.add("camel:cli-connector");
-        exportDependencies.add("io.quarkus:quarkus-kubernetes");
-        // TODO: make configurable to support builders other than 
quarkus-container-image-jib
-        exportDependencies.add("io.quarkus:quarkus-container-image-jib");
-
-        // TODO: remove when fixed kubernetes-client version is part of the 
Quarkus platform
-        // pin kubernetes-client to this version because of 
https://github.com/fabric8io/kubernetes-client/issues/6059
-        exportDependencies.add("io.fabric8:kubernetes-client:6.13.1");
-
-        if (super.dependencies != null) {
-            super.dependencies += "," + String.join(",", exportDependencies);
-        } else {
-            super.dependencies = String.join(",", exportDependencies);
-        }
-
-        additionalProperties = 
Optional.ofNullable(additionalProperties).orElse("");
-
         Map<String, String> exportProps = new HashMap<>();
-
         String resolvedImageRegistry = resolveImageRegistry();
-        if (resolvedImageRegistry != null) {
-            exportProps.put("quarkus.container-image.registry", 
resolvedImageRegistry);
 
-            if (resolvedImageRegistry.startsWith("localhost")) {
-                exportProps.put("quarkus.container-image.insecure", "true");
-            }
-        }
+        // TODO: remove when fixed kubernetes-client version is part of the 
Quarkus platform
+        // pin kubernetes-client to this version because of 
https://github.com/fabric8io/kubernetes-client/issues/6059
+        addDependencies("camel:cli-connector", 
"io.fabric8:kubernetes-client:6.13.1");

Review Comment:
   done



-- 
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: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to