-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fix redundant Jib image flags generated by init #3191
Conversation
pkg/skaffold/jib/jib_init_test.go
Outdated
}, | ||
ImageName: "different-image", | ||
Workspace: filepath.Join("path", "to"), | ||
ArtifactType: latest.ArtifactType{JibArtifact: &latest.JibArtifact{Type: string(JibGradle)}}, |
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.
About #3190 (comment), is it easy to get rid of type: gradle
or it is safe to put them?
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.
@briandealwis would know better than I. But I can try some stuff.
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.
It should be safe to remove.
Codecov Report
|
a.ArtifactType = latest.ArtifactType{JibArtifact: jibMaven} | ||
} else if j.BuilderName == PluginName(JibGradle) { | ||
jibGradle := &latest.JibArtifact{Type: string(JibGradle)} | ||
if j.Project != "" { | ||
jibGradle.Project = j.Project | ||
} | ||
jibGradle.Flags = []string{"-Dimage=" + manifestImage} |
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.
This should have been --image
too, I think?
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.
-Dimage=
will work as well, and I know --image
doesn't work when put before, say, jibDockerBuild
, so I prefer it to --image
. It's safer.
Fixes #3190.
Description
Since the correct
-Dimage
flag is automatically generated during Jib builds, it's unnecessary (or even error prone) to generate the flags duringskaffold init
.Release Notes
Fix unnecessary Jib image flags generated during
skaffold init
.