Skip to content
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

Merged
merged 6 commits into from
Nov 1, 2019

Conversation

loosebazooka
Copy link
Member

The fewest changes to expose layers that I could think of.


/**
* 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
Copy link
Member Author

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?

Copy link
Member

@chanseokoh chanseokoh left a 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.

this.layers = ImmutableList.copyOf(layers);
}

/** Returns a list of "user configured" layers, does *not* include base layer information. */
Copy link
Member

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?

@loosebazooka loosebazooka force-pushed the refactor-for-intermediate-config branch from de82080 to 59a0a97 Compare November 1, 2019 16:10
Copy link
Member

@chanseokoh chanseokoh left a 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
Copy link
Member

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.

Copy link
Member Author

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.

@loosebazooka loosebazooka force-pushed the refactor-for-intermediate-config branch from dc169a8 to efb4bff Compare November 1, 2019 18:01
@loosebazooka loosebazooka merged commit 5ee3281 into master Nov 1, 2019
@loosebazooka loosebazooka deleted the refactor-for-intermediate-config branch November 1, 2019 20:16
@loosebazooka loosebazooka mentioned this pull request Nov 4, 2019
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants