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
Ignore Jib project name when skaffold init only finds one module #2850
Ignore Jib project name when skaffold init only finds one module #2850
Conversation
@@ -156,7 +156,11 @@ func ValidateJibConfig(path string) []Jib { | |||
return nil | |||
} | |||
|
|||
results[i] = Jib{BuilderName: builderType.Name(), Image: parsedJSON.Image, FilePath: path, Project: parsedJSON.Project} | |||
results[i] = Jib{BuilderName: builderType.Name(), Image: parsedJSON.Image, FilePath: path} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if a multi-module project has only one sub-module? That is, a root pom.xml
(<packaging>pom
) and a single sub-directory for one module. Does jib:skaffold-init
return one BEGIN JIB JSON
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can double check, but I think it returns one for the root project and one for the module.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can confirm it does this, but that also may not be a good thing in the first place to count the root project in a multi-module situation as a valid project to choose from in skaffold init
... hmm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm beginning to think this is best fixed Jib-side. I'm going to mess around with Jib and see if I can get somewhere close, and if so then I'll close this.
Codecov Report
|
1 similar comment
Codecov Report
|
Fixes #2844
@GoogleContainerTools/java-tools-build