Add protocol buffer generation automation to maintain sync with upstream Kubernetes#4380
Merged
k8s-ci-robot merged 3 commits intomasterfrom Nov 12, 2025
Merged
Conversation
Co-authored-by: brendandburns <[email protected]>
Co-authored-by: brendandburns <[email protected]>
Copilot
AI
changed the title
[WIP] Fix Protocol Buffer support to sync resources field
Add protocol buffer generation automation to maintain sync with upstream Kubernetes
Nov 11, 2025
Contributor
|
/ok-to-test |
Contributor
|
/lgtm |
Contributor
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: brendandburns, Copilot The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Protocol buffer files were manually maintained and became outdated, missing fields like
resourcesinV1.PodSpecthat exist in both upstream Kubernetes proto definitions and OpenAPI-generated models.Changes
Automation Script
scripts/update-proto.sh: Generates proto files from kubernetes-client/gen, parameterized byKUBERNETES_BRANCHenvironment variableCI/CD Integration
.github/workflows/generate.yml: Added "Generate Proto" step between OpenAPI generation and patches, using same Kubernetes branch parameterDocumentation
proto/README.md: Documents automated workflow trigger and manual script usageGenerated Files
Result
Proto and OpenAPI models now maintain consistency automatically on each generation run.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
repository.sonatype.org/usr/lib/jvm/temurin-17-jdk-amd64/bin/java -classpath /home/REDACTED/work/java/java/.mvn/wrapper/maven-wrapper.jar -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/java/java org.apache.maven.wrapper.MavenWrapperMain clean compile -pl proto -am(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.