KuthumiPepple commented on a change in pull request #3153:
URL: https://github.com/apache/camel-k/pull/3153#discussion_r839030930



##########
File path: pkg/cmd/run_help.go
##########
@@ -43,20 +44,20 @@ func hashFrom(contents ...[]byte) string {
        return fmt.Sprintf("%x", hash.Sum(nil))
 }
 
-func parseConfigAndGenCm(ctx context.Context, c client.Client, config 
*resource.Config, integration *v1.Integration, enableCompression bool) 
(*corev1.ConfigMap, error) {
+func parseConfigAndGenCm(ctx context.Context, cmd *cobra.Command, c 
client.Client, config *resource.Config, integration *v1.Integration, 
enableCompression bool) (*corev1.ConfigMap, error) {
        switch config.StorageType() {
        case resource.StorageTypeConfigmap:
                cm := kubernetes.LookupConfigmap(ctx, c, integration.Namespace, 
config.Name())
                if cm == nil {
-                       fmt.Printf("Warn: %s Configmap not found in %s 
namespace, make sure to provide it before the Integration can run\n",
+                       fmt.Fprintf(cmd.ErrOrStderr(), "Warn: %s Configmap not 
found in %s namespace, make sure to provide it before the Integration can 
run\n",

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: [email protected]

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


Reply via email to