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

Primaza build is broken #464

Open
aureamunoz opened this issue Feb 28, 2024 · 0 comments
Open

Primaza build is broken #464

aureamunoz opened this issue Feb 28, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@aureamunoz
Copy link
Contributor

aureamunoz commented Feb 28, 2024

Primaza project is not compiling any more with following error:

When mvn clean compile -X -DskipTests
We get:

Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
    at io.sundr.utils.Strings.camelCase (Strings.java:258)
    at io.sundr.builder.internal.checks.DublicatePropertyCheck.visit (DublicatePropertyCheck.java:19)
    at io.sundr.builder.internal.checks.DublicatePropertyCheck.visit (DublicatePropertyCheck.java:11)
    at io.sundr.builder.Visitor.visit (Visitor.java:30)
    at io.sundr.builder.VisitorWiretap.visit (VisitorWiretap.java:79)
    at io.sundr.builder.Visitable.accept (Visitable.java:67)
    at io.sundr.builder.Visitable.lambda$accept$1 (Visitable.java:81)
    at java.util.Optional.ifPresent (Optional.java:178)
    at io.sundr.builder.Visitable.accept (Visitable.java:73)
    at io.sundr.builder.Visitable.accept (Visitable.java:53)
    at io.sundr.builder.Visitable.accept (Visitable.java:30)
    at io.sundr.builder.internal.processor.BuildableProcessor.process (BuildableProcessor.java:82)
    at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor (JavacProcessingEnvironment.java:1021)
    at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs (JavacProcessingEnvironment.java:937)
    at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run (JavacProcessingEnvironment.java:1265)
    at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing (JavacProcessingEnvironment.java:1380)
    at com.sun.tools.javac.main.JavaCompiler.processAnnotations (JavaCompiler.java:1272)
    at com.sun.tools.javac.main.JavaCompiler.compile (JavaCompiler.java:946)
    at com.sun.tools.javac.api.JavacTaskImpl.lambda$doCall$0 (JavacTaskImpl.java:104)
    at com.sun.tools.javac.api.JavacTaskImpl.invocationHelper (JavacTaskImpl.java:152)
    at com.sun.tools.javac.api.JavacTaskImpl.doCall (JavacTaskImpl.java:100)
    at com.sun.tools.javac.api.JavacTaskImpl.call (JavacTaskImpl.java:94)
    at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess (JavaxToolsCompiler.java:136)
    at org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile (JavacCompiler.java:183)
    at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:1140)
    at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:193)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:299)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:193)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:106)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:963)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:296)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:199)
    at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:103)
    at java.lang.reflect.Method.invoke (Method.java:580)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)

Sundrio is complaining because something has change in the crossplane CRD
https://raw.githubusercontent.com/crossplane-contrib/provider-helm/master/package/crds/helm.crossplane.io_releases.yaml

aureamunoz added a commit to aureamunoz/servicebox-poc that referenced this issue Feb 28, 2024
@aureamunoz aureamunoz assigned aureamunoz and unassigned cmoulliard Feb 29, 2024
aureamunoz added a commit to aureamunoz/servicebox-poc that referenced this issue Apr 30, 2024
@cmoulliard cmoulliard added the bug Something isn't working label May 2, 2024
aureamunoz added a commit to aureamunoz/servicebox-poc that referenced this issue May 3, 2024
aureamunoz added a commit to aureamunoz/servicebox-poc that referenced this issue May 3, 2024
aureamunoz added a commit that referenced this issue May 3, 2024
aureamunoz added a commit that referenced this issue May 3, 2024
aureamunoz added a commit to aureamunoz/servicebox-poc that referenced this issue May 3, 2024
aureamunoz added a commit to aureamunoz/servicebox-poc that referenced this issue May 3, 2024
cmoulliard added a commit that referenced this issue May 3, 2024
…l the crossplane providers (#475)

* Use the latest sundrio version

Related #464

* Use the latest sundrio version

Related #464

* Switch to the new repository: xpkg.upbound.io/crossplane-contrib. #474

Signed-off-by: cmoulliard <cmoulliard@redhat.com>

* Add new script installing the container registry

* Revert to 0.14 as next releases intriduced the ManagementPolicies which is generating the error: String cannot be cast to class io.crossplane.helm.v1beta1.ReleaseSpec

Signed-off-by: cmoulliard <cmoulliard@redhat.com>

* Add parameter to disable the script execution which requires locally to click on enter key

Signed-off-by: cmoulliard <cmoulliard@redhat.com>

* Align the instructions with the github flow

Signed-off-by: cmoulliard <cmoulliard@redhat.com>

* Remove non needed text

Signed-off-by: cmoulliard <cmoulliard@redhat.com>

* Use helm-provider 0.18.1 which supports ManagementPolicies

Signed-off-by: cmoulliard <cmoulliard@redhat.com>

* Export TIME_WAIT property

Signed-off-by: cmoulliard <cmoulliard@redhat.com>

* Use url pointing to the CRD released with 0.18.1

Signed-off-by: cmoulliard <cmoulliard@redhat.com>

* Define the managementPolicies

Signed-off-by: cmoulliard <cmoulliard@redhat.com>

* Reformated the KubernetesClientService class and Crossplane DSL

Signed-off-by: cmoulliard <cmoulliard@redhat.com>

* Log primaza pod too as we don't get it when error HTTP 500 occurs during the binding

Signed-off-by: cmoulliard <cmoulliard@redhat.com>

* Log primaza pod too as we don't get it when error HTTP 500 occurs during the binding

Signed-off-by: cmoulliard <cmoulliard@redhat.com>

* Added CRDs under src/main/crds

Signed-off-by: cmoulliard <cmoulliard@redhat.com>

* Moving the defintion of the fabric8 kubernetes client to be used to the parent pom

Signed-off-by: cmoulliard <cmoulliard@redhat.com>

* Commenting the line containing as managementPolicies value: \*\ to check if the error is gone. #476

Signed-off-by: cmoulliard <cmoulliard@redhat.com>

* Make the titles of the job defintion a bit shorter

Signed-off-by: cmoulliard <cmoulliard@redhat.com>

* Commenting the line containing as managementPolicies default value: \*\ too to check if the error is gone. #476

Signed-off-by: cmoulliard <cmoulliard@redhat.com>

* Commenting another lines containing as managementPolicies value: \*\ to check if the error is gone. #476

Signed-off-by: cmoulliard <cmoulliard@redhat.com>

* Find a temporary workaround concerning the CRD serialization issue. #476

Signed-off-by: cmoulliard <cmoulliard@redhat.com>

* Let's keep the value \'*' as enum. Remove the managementPolicies from the createCrossplaneHelmRelease. #476

Signed-off-by: cmoulliard <cmoulliard@redhat.com>

---------

Signed-off-by: cmoulliard <cmoulliard@redhat.com>
Co-authored-by: Auri Munoz <amunozhe@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants