-
Notifications
You must be signed in to change notification settings - Fork 39.7k
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: kubectl secret creation from env file (solves #1610) #125430
fix: kubectl secret creation from env file (solves #1610) #125430
Conversation
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. 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-sigs/prow repository. |
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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-sigs/prow repository. |
Welcome @plusiv! |
Hi @plusiv. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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-sigs/prow repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: plusiv 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 |
Hi people @ardaguclu @brianpursley ! What do you think about this PR? |
I'd like to see this issue be triaged first, to agree on an implementation. Currently, people can use the But regarding this specific PR... I don't think it would always preserve the existing behavior. For example, these edge cases I think would be a problem:
or
If this issue does get triaged accepted, I think that something like this might be a more robust (and easier to implement) way of doing it:
That way, the only potential breaking change would be if someone really did have a secret that was exactly three double quotes Before doing any more work on it though, it is probably best to bring this issue up in the next monthly SIG-CLI "bug scrub" meeting where we usually discuss new, un-triaged issues, or as a topic at the next regular bi-weekly SIG-CLI meeting. |
Thanks for your feedback @brianpursley . Regarding to this:
I believe it's very common for developers to store all their secrets in a single file (usually a |
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closed this PR. In response to this:
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-sigs/prow repository. |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Currently Kubectl does not supports the creation of secrets with multiline values from an env file. That's because the code reads line by line the files.
This PR checks the quotes surrounding to detect the begin and the end of a value in the env file. This will allow the support for multiline values without neither breaking changes nor adding external dependencies.
Which issue(s) this PR fixes:
Fixes kubernetes/kubectl#1610
Special notes for your reviewer:
I added corresponding test cases.
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: