Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KnativeDeployer environment check is breaking the build #28171

Closed
michalvavrik opened this issue Sep 23, 2022 · 1 comment · Fixed by #28172
Closed

KnativeDeployer environment check is breaking the build #28171

michalvavrik opened this issue Sep 23, 2022 · 1 comment · Fixed by #28172
Labels
area/kubernetes kind/bug Something isn't working
Milestone

Comments

@michalvavrik
Copy link
Contributor

michalvavrik commented Sep 23, 2022

Describe the bug

We have apps that use Knative client and now with kubernetes-client dependency has been migrated to 6.1.1, the builds are broken. It might be down to changes descried in migration guide https://github.com/fabric8io/kubernetes-client/blob/master/doc/MIGRATION-v6.md#adapt-changes

Expected behavior

Builds just fine.

Actual behavior

Exception is thrown:

...
12:56:59,665 INFO  mvn: Caused by: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
12:56:59,665 INFO  mvn: 	[error]: Build step io.quarkus.kubernetes.deployment.KnativeDeployer#checkEnvironment threw an exception: java.lang.IllegalStateException: Knative was requested as a deployment, but the target cluster is not a Knative cluster!
12:56:59,665 INFO  mvn: 	at io.quarkus.kubernetes.deployment.KnativeDeployer.lambda$checkEnvironment$0(KnativeDeployer.java:29)
12:56:59,665 INFO  mvn: 	at java.base/java.util.Optional.ifPresent(Optional.java:178)
12:56:59,665 INFO  mvn: 	at io.quarkus.kubernetes.deployment.KnativeDeployer.checkEnvironment(KnativeDeployer.java:21)
12:56:59,665 INFO  mvn: 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:56:59,665 INFO  mvn: 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
12:56:59,666 INFO  mvn: 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
12:56:59,666 INFO  mvn: 	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
12:56:59,666 INFO  mvn: 	at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:909)
12:56:59,666 INFO  mvn: 	at io.quarkus.builder.BuildContext.run(BuildContext.java:281)
12:56:59,666 INFO  mvn: 	at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
12:56:59,666 INFO  mvn: 	at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
12:56:59,666 INFO  mvn: 	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
12:56:59,666 INFO  mvn: 	at java.base/java.lang.Thread.run(Thread.java:833)
12:56:59,666 INFO  mvn: 	at org.jboss.threads.JBossThread.run(JBossThread.java:501)
12:56:59,667 INFO  mvn: 
12:56:59,667 INFO  mvn:     at io.quarkus.builder.Execution.run (Execution.java:123)
12:56:59,667 INFO  mvn:     at io.quarkus.builder.BuildExecutionBuilder.execute (BuildExecutionBuilder.java:79)
...

How to Reproduce?

Reproducer:

Steps to reproduce the behavior:
0. Have OC stuff ready

  1. git clone https://github.com/quarkus-qe/quarkus-test-suite.git
  2. cd http/http-minimum
  3. mvn clean verify -Dit.test=ServerlessExtensionOpenShiftHttpMinimumIT -Dopenshift -Dserverless -Doperator-scenarios

I can provide standalone reproducer if required.

Output of uname -a or ver

Linux fedora 5.19.6-200.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 31 17:58:15 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Output of java -version

openjdk version "17.0.3" 2022-04-19

GraalVM version (if different from Java)

GraalVM CE 22.1.0

Quarkus version or git rev

999-SNAPSHOT

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.8.6

Additional information

No response

@michalvavrik michalvavrik added the kind/bug Something isn't working label Sep 23, 2022
@quarkus-bot
Copy link

quarkus-bot bot commented Sep 23, 2022

/cc @Sgitario, @geoand, @iocanel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kubernetes kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant