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

fix: Codify Apigee proto manual fixes #3262

Conversation

jasonvigil
Copy link
Collaborator

Following up on suggested change in
#3183 (review)

Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from yuwenma. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jasonvigil jasonvigil force-pushed the make-apigee-proto-changes-permanent branch from 9df3525 to ceea3b0 Compare November 26, 2024 22:55

# Fix issue in generated apigee service proto
# Ref: https://github.com/GoogleCloudPlatform/k8s-config-connector/pull/3183
sed -i 's/^ post: "\/v1\/{project=projects\/\*}:provisionOrganization"$/ post: "\/v1\/{name=projects\/\*}:provisionOrganization"/g' ${REPO_ROOT}/mockgcp/apis/mockgcp/cloud/apigee/v1/service.proto
Copy link
Collaborator

Choose a reason for hiding this comment

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

This will break Mac users on adding MockGCP.

Can we use mockgcp/tools/patch-proto (like extending the tool to find-and-replace)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That's a fair point. Though, I thought we required linux anyway? At least, our environment setup scripts use apt. Though, agreed, it would be better to implement this in mockgcp/tools/patch-proto. I had opted for a quick fix for now, given it will take some more effort to add find-and-replace support to patch-proto

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ok, I implemented this change in #3351. Going to close this PR in favor of that one.

@jasonvigil
Copy link
Collaborator Author

/hold will try to implement this in patch-proto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants