-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Make intermediate build config available #2115
Conversation
|
||
/** | ||
* A class containing the representation of the contents of a container. Currently only exposes | ||
* "layers", but can be extended to expose {@link ContainerConfiguration} or other informational |
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.
As this comment notes, ContainerConfiguration is left out... it's not in API, but maybe we can put it in API?
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.
Will take a look at this tomorrow.
jib-maven-plugin/src/test/java/com/google/cloud/tools/jib/maven/skaffold/SyncMapMojoTest.java
Outdated
Show resolved
Hide resolved
jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/skaffold/SyncMapMojo.java
Outdated
Show resolved
Hide resolved
jib-core/src/main/java/com/google/cloud/tools/jib/api/JibContainerDescription.java
Show resolved
Hide resolved
this.layers = ImmutableList.copyOf(layers); | ||
} | ||
|
||
/** Returns a list of "user configured" layers, does *not* include base layer information. */ |
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.
Ah, this is revealing. Maybe getAddedLayers()
is more aptly named?
de82080
to
59a0a97
Compare
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.
LGTM
|
||
/** | ||
* Returns a list of "user configured" layers, does *not* include base layer information. | ||
* @return An {@link ImmutableList} of {@link LayerConfiguration}s |
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.
Doesn't ./gradlew javadoc
complain how having a newline before @return
? And did you consider the name getAddedLayers()
? I think it's lower the chance to mistakenly assume they include base image layers.
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.
yeah, I guess I hadn't rebased by then.
dc169a8
to
efb4bff
Compare
The fewest changes to expose layers that I could think of.