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

images: Move hubble-proto into cilium-builder #16217

Merged
merged 2 commits into from May 20, 2021

Conversation

gandro
Copy link
Member

@gandro gandro commented May 19, 2021

This commit consolidates the hubble-proto image (used to build the
Hubble protobuf definitions) and the cilium-builder image. While this
increases the download size for developers just needing to regenerate
the Hubble API definitions, removing hubble-proto reduces the
maintenance overhead of our developer images (for example, it currently
lacks the required GitHub Action to build and push it to docker.io).

@gandro gandro added release-note/misc This PR makes changes that have no direct user impact. sig/contributing Impacts contribution workflow, guidelines, and tools. labels May 19, 2021
@gandro gandro temporarily deployed to release-base-images May 19, 2021 09:16 Inactive
@gandro gandro temporarily deployed to release-base-images May 19, 2021 09:16 Inactive
@gandro gandro force-pushed the pr/gandro/move-protoplugins-to-builder branch from 6743e5d to 924e7f0 Compare May 19, 2021 14:51
@gandro gandro temporarily deployed to release-base-images May 19, 2021 14:51 Inactive
@gandro gandro temporarily deployed to release-base-images May 19, 2021 14:51 Inactive
This commit consolidates the `hubble-proto` image (used to build the
Hubble protobuf definitions) and the `cilium-builder` image. While this
increases the download size for developers just needing to regenerate
the Hubble API definitions, removing `hubble-proto` reduces the
maintenance overhead of our developer images (for example,
`hubble-proto` currently lacks the required GitHub Action to build and
push it to docker.io).

The new api/v1/Makefile using this image will is added in a subsequent
commit.

Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
This replaces the current use of `hubble-proto` with `cilium-builder`.
The generated files remain functionaly the same as the used plugin
versions have not changed.

The only difference in the output comes from the fact that
`cilium-builder` installs the plugins via `go install` instead of `go
get`. Therefore, the dependency set of the three built protoc plugins
are not merged as they were in `hubble proto` due to it building them in
a ad-hoc go module. Therefore `protoc-gen-go-grpc` is using the
`protoc-gen-go` version specified in its go.mod file, which is slightly
older than what was used before, but this has no effect on the generated
Go lang source as the two versions are compatible.

Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
@gandro gandro force-pushed the pr/gandro/move-protoplugins-to-builder branch from 924e7f0 to f79c5f6 Compare May 19, 2021 15:23
@gandro gandro marked this pull request as ready for review May 19, 2021 15:23
@gandro gandro temporarily deployed to release-base-images May 19, 2021 15:23 Inactive
@gandro gandro temporarily deployed to release-base-images May 19, 2021 15:23 Inactive
@gandro gandro requested review from a team as code owners May 19, 2021 15:23
@gandro gandro requested review from a team, nathanjsweet, nebril and glibsm May 19, 2021 15:23
@gandro gandro requested review from rolinh and removed request for glibsm and nebril May 19, 2021 15:24
@gandro gandro requested review from nebril and removed request for nathanjsweet May 19, 2021 15:24
Copy link
Member

@rolinh rolinh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot, LGTM 👍

cilium/hubble-proto:${version}
$(QUIET)$(CONTAINER_ENGINE) container run --rm \
--volume $(CURDIR):/src \
--user "$(shell id -u):$(shell id -g)" \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this, running as a regular user is definitely something we want (it was also part of my old draft PR #13405).

gandro added a commit to cilium/packer-ci-build that referenced this pull request May 19, 2021
Based on cilium/cilium#16217

Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
Copy link
Member

@tklauser tklauser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 🎉

@gandro
Copy link
Member Author

gandro commented May 19, 2021

test-me-please

Copy link
Member

@glibsm glibsm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tried locally, worked for me.

@gandro
Copy link
Member Author

gandro commented May 19, 2021

@gandro gandro removed the request for review from nebril May 19, 2021 19:33
@gandro
Copy link
Member Author

gandro commented May 19, 2021

@gandro
Copy link
Member Author

gandro commented May 19, 2021

@gandro
Copy link
Member Author

gandro commented May 20, 2021

All required tests have passed. Marking as ready for merge. GH Actions seems stuck in the non-required ones, so the bot is unable to add the label itself.

The This branch is waiting to be deployed action can also be ignored, we already depoyed the image builder action here (#16217 (comment)) before I amended by commits according to https://docs.cilium.io/en/latest/contributing/development/images/#update-cilium-builder-and-cilium-runtime-images

@gandro gandro added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label May 20, 2021
@twpayne twpayne merged commit 2b2b0bf into cilium:master May 20, 2021
tklauser pushed a commit to cilium/packer-ci-build that referenced this pull request May 25, 2021
Based on cilium/cilium#16217

Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact. sig/contributing Impacts contribution workflow, guidelines, and tools.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants