[
https://issues.apache.org/jira/browse/CAMEL-21690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17922668#comment-17922668
]
Christoph Deppisch commented on CAMEL-21690:
--------------------------------------------
I think the image push option should not be part of the container trait config
at all. The container trait is to configure the container spec in the
Kubernetes deployment manifest. The image push option is to configure the JBang
exported Maven project that builds and pushes the container image.
IMO we should remove the container trait push image option.
> camel-jbang - Image push option on Kubernetes run command not working
> ---------------------------------------------------------------------
>
> Key: CAMEL-21690
> URL: https://issues.apache.org/jira/browse/CAMEL-21690
> Project: Camel
> Issue Type: Bug
> Components: camel-jbang
> Affects Versions: 4.9.0
> Reporter: Christoph Deppisch
> Assignee: Christoph Deppisch
> Priority: Major
> Fix For: 4.10.0
>
>
> The Camel JBang Kubernetes run command provides the option to automatically
> push the built container image to the Kubernetes image registry
> (--image-push=true)
> This option has no effect. Even if set to true the exported project has the
> option
> {noformat}
> <jkube.skip.push>true</jkube.skip.push>{noformat}
> and the image push is skipped.
> Also, the --image-push option is set to false as a default value. I'd suggest
> to set this to true by default as almost all Kubernetes run commands need to
> push the container image. Otherwise the Kubernetes Deployment will not be
> able to pull the container image from the registry (on Minikube, Kind,
> OpenShift, etc.) and the deployment is failing.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)