Deployment to OpenShift 4.6 not working using login parameters instead of oc login
See original GitHub issueDescription
Info
-
f-m-p version :
-
Maven version (
mvn -v
) : 3.6.3 -
Kubernetes / OpenShift setup and version : OpenShift 4.6.9
-
If it’s a bug, how to reproduce 👍
- Ensure that you are nto logged in locally
oc logout
- Create a project in an OpenShift 4.6.x instance, fo risntance named
78
- clone https://github.com/apupier/fabric8-maven-plugin-not-working-example
cd ose-78
mvn clean install fabric8:deploy -Dkubernetes.master=https://api.crc.testing:6443 -Dkubernetes.namespace=78 -Dkubernetes.auth.basic.username=developer -Dkubernetes.auth.basic.password=developer -Dfabric8.mode=openshift -Dkubernetes.trust.certificates=true -Dfabric8.build.strategy=s2i -Dkubernetes.auth.tryServiceAccount=false -Dfabric8.generator.from=registry.access.redhat.com/fuse7/fuse-java-openshift -Dfabric8.generator.fromMode=docker -Dkubernetes.auth.tryKubeConfig=false
- Ensure that you are nto logged in locally
the error is:
INFO] --- fabric8-maven-plugin:7.8.0.fuse-sb2-780038-redhat-00001:build (default) @ camel-ose-springboot-xml ---
[INFO] F8: Running in OpenShift mode
[INFO] F8: Using OpenShift build with strategy S2I
[INFO] F8: Running generator spring-boot
[INFO] F8: spring-boot: Using Container image registry.access.redhat.com/fuse7/fuse-java-openshift as base / builder
[ERROR] F8: Failed to execute the build: java.lang.IllegalStateException: Openshift platform has been specified but Openshift has not been detected!
I tried several variations but this one is working for sure with OpenShift 3.11. With same project, when logged in through oc, it is workign fine deployign on OpenShift 4.6.
- Sample project : [GitHub Clone URL] https://github.com/apupier/fabric8-maven-plugin-not-working-example
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Deployment to OpenShift 4.6 not working using login ... - GitHub
Info · Ensure that you are nto logged in locally oc logout · Create a project in an OpenShift 4.6.x instance, fo risntance...
Read more >Chapter 3. Logging in to the cluster OpenShift Container ...
You can log in to your cluster as a default system user by exporting the cluster kubeconfig file. The kubeconfig file contains information...
Read more >Troubleshooting installations | OpenShift Container Platform 4.6
If the API is not functional, review the logs using SSH instead. ... bootstrap node's console, monitor the console until the node reaches...
Read more >OpenShift CLI developer command reference
Run oc help to list all commands or run oc <command> --help to get additional details for a specific command. OpenShift CLI (oc)...
Read more >Troubleshooting Guide for OpenShift Container Platform
These values being set incorrectly have implications when deploying your Docker registry. Intermittent Login issues (htpasswd). Using htpasswd, it is possible ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
fixed with openshift-maven-plugin
This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!