Skip to content

Instantly share code, notes, and snippets.

@aureamunoz
Last active April 7, 2022 12:59
Show Gist options
  • Save aureamunoz/0929ebe4f540d6216051cff531747695 to your computer and use it in GitHub Desktop.
Save aureamunoz/0929ebe4f540d6216051cff531747695 to your computer and use it in GitHub Desktop.

How to reproduce

  • Get the project [email protected]:quarkus-qe/quarkus-test-suite.git

  • Remove the workaround to make it fail: Comment out the following line in quarkus-test-suite/service-discovery/stork/src/main/resources/application.properties:

#quarkus.native.additional-build-args=--allow-incomplete-classpath, --initialize-at-run-time=io.fabric8.kubernetes.client.internal.CertUtils, --enable-url-protocols=https
  • Run the tests from the root:
 mvn clean verify -Dall-modules -Dnative -pl service-discovery/stork -Dit.test=StorkLoadBalancerIT#storkLoadBalancerByRoundRobin

Solutions:

Workaround:

In quarkus-test-suite/service-discovery/stork/src/main/resources/application.properties add:

quarkus.native.additional-build-args=--allow-incomplete-classpath, --initialize-at-run-time=io.fabric8.kubernetes.client.internal.CertUtils, --enable-url-protocols=https

Add bouncy castle dependencies:

In quarkus-test-suite/service-discovery/stork/pom.xml add:

       <dependency>
            <groupId>org.bouncycastle</groupId>
            <artifactId>bcpkix-jdk15on</artifactId>
        </dependency>
        <dependency>
            <groupId>org.bouncycastle</groupId>
            <artifactId>bcprov-jdk15on</artifactId>
        </dependency>

Add Quarkus Kubernetes Client extension:

In quarkus-test-suite/service-discovery/stork/pom.xml add

     <dependency>
            <groupId>io.quarkus</groupId>
            <artifactId>quarkus-kubernetes-client</artifactId>
        </dependency>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment