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 trialing spaces in meshconfig to allow edits #16820

Merged

Conversation

howardjohn
Copy link
Member

Without this, if you do kubectl edit a meshconfig, then its all
mangled and escaped. This is because of a "feature" of kubectl to escape
anything with trailing spaces. With this change, the mesh config is
editable simply.

Please provide a description for what this PR is for.

And to help us figure out who should review this PR, please
put an X in all the areas that this PR affects.

[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure

Without this, if you do `kubectl edit` a meshconfig, then its all
mangled and escaped. This is because of a "feature" of kubectl to escape
anything with trailing spaces. With this change, the mesh config is
editable simply.
@howardjohn howardjohn requested a review from a team as a code owner September 4, 2019 17:54
@istio-testing istio-testing added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Sep 4, 2019
@googlebot googlebot added the cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. label Sep 4, 2019
@howardjohn
Copy link
Member Author

Fixes #16819

Copy link
Contributor

@costinm costinm left a comment

Choose a reason for hiding this comment

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

Where did you find this - I've been looking for the cause for a long, long time.

Thanks a lot !

@howardjohn
Copy link
Member Author

Where did you find this - I've been looking for the cause for a long, long time.

I copy pasted the mesh config to a file and applied and somehow it worked -- turned out my editor removed the spaces, so doing a diff showed this as the root cause

@istio-testing
Copy link
Collaborator

@howardjohn: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
integ-mixer-k8s-presubmit-tests-master 66ef0b7 link /test integ-mixer-k8s-presubmit-tests-master

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@istio-testing
Copy link
Collaborator

In response to a cherrypick label: new pull request created: #16822

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants