I have a problem with a deployment within ArgoCD that seems to be failing, and I cannot understand why. Here is the error:
Unsatisfied dependency expressed through constructor parameter 0: Failed to convert value of type 'java.lang.String' to required type 'boolean'; Invalid boolean value []
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:798)
Error clearly lays out that the app is not able to get the boolean passed in. Problem is I can’t find why this would be the case. Looking at the environment variable I can verify it is there, and should therefore be passed in.
The apps is Java 17, and Spring boot, and here are the argo specs:
{
"Version": "v2.11.2+25f7504",
"BuildDate": "2024-05-23T13:32:13Z",
"GitCommit": "25f7504ecc198e7d7fdc055fdb83ae50eee5edd0",
"GitTreeState": "clean",
"GoVersion": "go1.21.9",
"Compiler": "gc",
"Platform": "linux/amd64",
"KustomizeVersion": "v5.2.1 2023-10-19T20:13:51Z",
"HelmVersion": "v3.14.4+g81c902a",
"KubectlVersion": "v0.26.11",
"JsonnetVersion": "v0.20.0"
}
What I have tried:
I have played with passing in as a String, boolean, or even a number. Adding a default through spring and various little config adjustments.
What I expect:
The app to read in the passed in boolean
Jedidiah River is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.