You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using variable image.tag in our Dockerfile like ${image.tag}, kubernetes-maven-plugin gives the error "Expression cycle detected". There is no cycle though.
Eclipse JKube version
1.9.1
Component
Kubernetes Maven Plugin
Apache Maven version
3.8.1
Gradle version
None
Steps to reproduce
use 2 variables in your pom.xml like
git.build.version.tag (generated by git-commit-id-plugin with generateGitPropertiesFile and injectAllReactorProjects)
image.tag should be resolved to the value of git.build.version.tag
Runtime
Kubernetes (vanilla)
Kubernetes API Server version
1.25.3
Environment
macOS
Eclipse JKube Logs
Caused by: java.lang.IllegalArgumentException: Expression cycle detected, aborting.
at org.eclipse.jkube.kit.common.JKubeFileInterpolator.checkPropertyWithDelimiters (JKubeFileInterpolator.java:137)
at org.eclipse.jkube.kit.common.JKubeFileInterpolator.checkForPropertiesInLine (JKubeFileInterpolator.java:96)
at org.eclipse.jkube.kit.common.JKubeFileInterpolator.interpolate (JKubeFileInterpolator.java:72)
at org.eclipse.jkube.kit.common.JKubeFileInterpolator.interpolate (JKubeFileInterpolator.java:60)
at org.eclipse.jkube.kit.build.api.helper.DockerFileUtil.extractLines (DockerFileUtil.java:111)
at org.eclipse.jkube.kit.build.api.helper.DockerFileUtil.extractBaseImages (DockerFileUtil.java:67)
at org.eclipse.jkube.kit.build.service.docker.BuildService.extractBaseFromDockerfile (BuildService.java:278)
at org.eclipse.jkube.kit.build.service.docker.BuildService.autoPullBaseImage (BuildService.java:257)
at org.eclipse.jkube.kit.build.service.docker.BuildService.buildImage (BuildService.java:75)
Sample Reproducer Project
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
We have 2 variables in our pom.xml:
When using variable image.tag in our Dockerfile like ${image.tag}, kubernetes-maven-plugin gives the error "Expression cycle detected". There is no cycle though.
Eclipse JKube version
1.9.1
Component
Kubernetes Maven Plugin
Apache Maven version
3.8.1
Gradle version
None
Steps to reproduce
Expected behavior
image.tag should be resolved to the value of git.build.version.tag
Runtime
Kubernetes (vanilla)
Kubernetes API Server version
1.25.3
Environment
macOS
Eclipse JKube Logs
Sample Reproducer Project
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: