You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/07/18 06:57:14 UTC

[GitHub] [camel-k] Hades-888 opened a new issue, #3455: ```--registry-insecure false``` takes no effect when using local dependencies ```-d file:///path/xxx.jar```

Hades-888 opened a new issue, #3455:
URL: https://github.com/apache/camel-k/issues/3455

   Hi Community,
   
   We are running into an issue when using local dependencies option ```-d file:///path/xxx.jar```  in ```--registry-insecure false``` mode on k8s, but it still logs ```(insecure=true)``` during pushing image and throws an error of unexpected status code 503 Service Unavailable. The same task works fine without using local dependencies.
   
   **VERSION**
   
   Camel K Client 1.9.2
   
   **Command to produce the Issue**
   
   kamel install command
   ```
   kamel install \
   --registry-insecure false \
   --registry xxx.com \
   --registry-auth-username xxx \
   --registry-auth-password xxx \
   --organization xxx \
   --maven-settings=configmap:maven-settings/settings.xml \
   --build-timeout 1h \
   --cluster-type kubernetes \
   --build-publish-strategy Spectrum \
   --force \
   -n xxx
   ```
   kamel run command
   ```
   kamel run xxx.java \
   -d file:///path/shopify-camel-k-1.0-SNAPSHOT.jar \
   -n xxx \
   --dev 
   ```
   **Error Log**
   
   **with** local dependencies option ```-d file:///path/shopify-camel-k-1.0-SNAPSHOT.jar``` 
   
   ![camel-insecure-true](https://user-images.githubusercontent.com/97818949/179456257-bcf59e89-fec3-4ebe-bce7-ddc5a0c09a0b.png)
   
   **without** local dependencies option ```-d file:///path/shopify-camel-k-1.0-SNAPSHOT.jar``` 
   
   ![camel-insecure-false](https://user-images.githubusercontent.com/97818949/179456415-00c562dc-fb54-4dcb-b98e-0e0d165bd6ee.png)
   
   **Expected Behavior**
   
   We want use local jar dependencies ```-d file:///path/xxx.jar```and the HTTPS protocol in registry config ```--registry-insecure false``` 
   
   Thanks


-- 
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-unsubscribe@camel.apache.org.apache.org

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


[GitHub] [camel-k] github-actions[bot] commented on issue #3455: Option ```--registry-insecure false``` takes no effect when using local dependencies ```-d file:///path/xxx.jar```

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #3455:
URL: https://github.com/apache/camel-k/issues/3455#issuecomment-1280109506

   This issue has been automatically marked as stale due to 90 days of inactivity. 
   It will be closed if no further activity occurs within 15 days.
   If you think that’s incorrect or the issue should never stale, please simply write any comment.
   Thanks for your contributions!


-- 
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-unsubscribe@camel.apache.org

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


[GitHub] [camel-k] johnpoth commented on issue #3455: Option ```--registry-insecure false``` takes no effect when using local dependencies ```-d file:///path/xxx.jar```

Posted by GitBox <gi...@apache.org>.
johnpoth commented on issue #3455:
URL: https://github.com/apache/camel-k/issues/3455#issuecomment-1187102491

   Ah yes it seems that way :+1: 


-- 
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-unsubscribe@camel.apache.org

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


[GitHub] [camel-k] johnpoth commented on issue #3455: Option ```--registry-insecure false``` takes no effect when using local dependencies ```-d file:///path/xxx.jar```

Posted by GitBox <gi...@apache.org>.
johnpoth commented on issue #3455:
URL: https://github.com/apache/camel-k/issues/3455#issuecomment-1186932879

   Hi @Hades-888, thanks for the feedback!
   
   The insecure option should be taken from the platform CR (default name `camel-k`) Do you mind double checking the insecure option is correctly set by running something like:
   
   `kubectl get integrationplatform camel-k -o=jsonpath='{.spec.build.registry.insecure}' -n xxx`
   
   Thanks !


-- 
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-unsubscribe@camel.apache.org

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


[GitHub] [camel-k] johnpoth commented on issue #3455: Option ```--registry-insecure false``` takes no effect when using local dependencies ```-d file:///path/xxx.jar```

Posted by GitBox <gi...@apache.org>.
johnpoth commented on issue #3455:
URL: https://github.com/apache/camel-k/issues/3455#issuecomment-1187027827

   Hi @Hades-888 ,
   
   It seems the command line parsing library [viper](https://github.com/spf13/viper) we use will set boolean flags to `true` if present regardless of the value passed... so `--boolean-flag-name false` will get set to true... may worth documenting if this works as intended.
   
   In the meantime your can just omit `--registry-insecure false` when installing camel-k. It should be set to it's default value (false) and you should be all set!
   
   We may want to mark this as a bug though and fix this ... i.e setting `--registry-insecure false` should set insecure to `false `-- WDY @squakez  ?
   
   Thanks ! 


-- 
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-unsubscribe@camel.apache.org

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


[GitHub] [camel-k] github-actions[bot] closed issue #3455: Option ```--registry-insecure false``` takes no effect when using local dependencies ```-d file:///path/xxx.jar```

Posted by GitBox <gi...@apache.org>.
github-actions[bot] closed issue #3455: Option ```--registry-insecure false``` takes no effect when using local dependencies ```-d file:///path/xxx.jar``` 
URL: https://github.com/apache/camel-k/issues/3455


-- 
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-unsubscribe@camel.apache.org

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


[GitHub] [camel-k] Hades-888 commented on issue #3455: Option ```--registry-insecure false``` takes no effect when using local dependencies ```-d file:///path/xxx.jar```

Posted by GitBox <gi...@apache.org>.
Hades-888 commented on issue #3455:
URL: https://github.com/apache/camel-k/issues/3455#issuecomment-1187117169

   > Ah yes it seems that way 👍
   
   
   > I think that's the way we parse the boolean flags. Could you try `--registry-insecure=false`?
   
   @squakez tried, it seems return null after set ```--registry-insecure=false```
   <img width="551" alt="null" src="https://user-images.githubusercontent.com/97818949/179500387-caa4fe4a-168b-4396-b2a0-9a214a95951b.png">
   
   


-- 
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-unsubscribe@camel.apache.org

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


[GitHub] [camel-k] squakez commented on issue #3455: Option ```--registry-insecure false``` takes no effect when using local dependencies ```-d file:///path/xxx.jar```

Posted by GitBox <gi...@apache.org>.
squakez commented on issue #3455:
URL: https://github.com/apache/camel-k/issues/3455#issuecomment-1187065798

   I think that's the way we parse the boolean flags. Could you try `--registry-insecure=false`?


-- 
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-unsubscribe@camel.apache.org

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


[GitHub] [camel-k] squakez commented on issue #3455: Option ```--registry-insecure false``` takes no effect when using local dependencies ```-d file:///path/xxx.jar```

Posted by GitBox <gi...@apache.org>.
squakez commented on issue #3455:
URL: https://github.com/apache/camel-k/issues/3455#issuecomment-1186878693

   FYI @johnpoth 


-- 
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-unsubscribe@camel.apache.org

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


[GitHub] [camel-k] johnpoth commented on issue #3455: Option ```--registry-insecure false``` takes no effect when using local dependencies ```-d file:///path/xxx.jar```

Posted by GitBox <gi...@apache.org>.
johnpoth commented on issue #3455:
URL: https://github.com/apache/camel-k/issues/3455#issuecomment-1187249164

   @Hades-888 yes you should be fine because when undefined it gets treated as the default value which is `false`, thanks ! It's interesting to see boolean values getting special treatment though :)


-- 
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-unsubscribe@camel.apache.org

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


[GitHub] [camel-k] Hades-888 commented on issue #3455: Option ```--registry-insecure false``` takes no effect when using local dependencies ```-d file:///path/xxx.jar```

Posted by GitBox <gi...@apache.org>.
Hades-888 commented on issue #3455:
URL: https://github.com/apache/camel-k/issues/3455#issuecomment-1186976502

   > Hi @Hades-888, thanks for the feedback!
   > 
   > The insecure option should be taken from the platform CR (default name `camel-k`) Do you mind double checking the insecure option is correctly set by running something like:
   > 
   > `kubectl get integrationplatform camel-k -o=jsonpath='{.spec.build.registry.insecure}' -n xxx`
   > 
   > Thanks !
   
   
   @johnpoth ,thank you very much for your reply!
   
   I had a query as you said,```--registry-insecure false``` seems to have no effect
   
   <img width="638" alt="always-treu" src="https://user-images.githubusercontent.com/97818949/179483528-90c92f48-542a-4715-ad98-88f5c7a3aec5.png">
   
   


-- 
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-unsubscribe@camel.apache.org

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