Re: [kubernetes/kubernetes] Some edits can drop users out of kubectl edit (#42217)

1 view
Skip to first unread message

Clayton Coleman

unread,
Feb 27, 2017, 10:12:51 PM2/27/17
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Unsure if this is a regression @kubernetes/sig-cli-bugs


You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Phillip Wittrock

unread,
Feb 28, 2017, 1:12:20 AM2/28/17
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@ymqytw Can you take a look at this?

Mengqi Yu

unread,
Feb 28, 2017, 12:51:39 PM2/28/17
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Should we quote the number?

env:
- name: A
  value: "1"
- name: B
  value: "2"

Phillip Wittrock

unread,
Feb 28, 2017, 1:23:36 PM2/28/17
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

I wonder if this is related to using UnstructuredObject in edit instead of round tripping through go structs. I am not sure how the yaml could be converted to json in an unambiguous way without the type schema.

Phillip Wittrock

unread,
Feb 28, 2017, 1:24:30 PM2/28/17
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@smarterclayton I think maybe it shouldn't give a validation error, and instead should just work.

Mengqi Yu

unread,
Feb 28, 2017, 4:39:29 PM2/28/17
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

This is not a regression. Same issue happens in 1.4.9 and 1.5.3.

Phillip Wittrock

unread,
Feb 28, 2017, 5:09:52 PM2/28/17
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@ymqytw Thanks for checking on that. Lets start thinking about a solution.

Clayton Coleman

unread,
Feb 28, 2017, 7:23:04 PM2/28/17
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention
So I want to move JSON validation to the server side, and we probably want
patch to respond with an an invalid structural error when the types don't
match (it should return 422 Invalid if the patch itself is structurally
unsound).

On Tue, Feb 28, 2017 at 5:09 PM, Phillip Wittrock <notifi...@github.com>
wrote:

> @ymqytw <https://github.com/ymqytw> Thanks for checking on that. Lets

> start thinking about a solution.
>
> —
> You are receiving this because you were mentioned.

> Reply to this email directly, view it on GitHub
> <https://github.com/kubernetes/kubernetes/issues/42217#issuecomment-283177116>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ABG_pyFM0g13F1DD75KieCcozjLDyw9pks5rhJsagaJpZM4MN6lN>

Phillip Wittrock

unread,
Feb 28, 2017, 7:28:34 PM2/28/17
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@smarterclayton Moving validation to server side sounds like a good general solution. Do you have preference for what we do (if anything) for 1.6?

Clayton Coleman

unread,
Mar 1, 2017, 6:11:34 PM3/1/17
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention
I don't know that this is is important enough to fix for 1.6 since it's
fairly complicated to get right. I don't think the incremental fix helps
enough people to justify the cost.

On Tue, Feb 28, 2017 at 7:28 PM, Phillip Wittrock <notifi...@github.com>
wrote:

> @smarterclayton <https://github.com/smarterclayton> Moving validation to

> server side sounds like a good general solution. Do you have preference for
> what we do (if anything) for 1.6?
>
> —
> You are receiving this because you were mentioned.

> Reply to this email directly, view it on GitHub
> <https://github.com/kubernetes/kubernetes/issues/42217#issuecomment-283205656>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ABG_pygY907nZvsKKRLQx6xOvnN9X40Dks5rhLucgaJpZM4MN6lN>
> .

Mengqi Yu

unread,
Mar 3, 2017, 5:52:27 PM3/3/17
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Should we remove the 1.6 milestone?

Clayton Coleman

unread,
Mar 4, 2017, 12:06:37 AM3/4/17
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

I'm fine with that

Beni Cherniavsky-Paskin

unread,
May 23, 2017, 3:57:56 AM5/23/17
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

see also related #26050

Aaron Crickenberger

unread,
Jun 19, 2017, 12:15:30 PM6/19/17
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

/remove-priority P1
removing old priority/PN labels, this already has priority/important-soon

fejta-bot

unread,
Dec 28, 2017, 2:08:44 PM12/28/17
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or @fejta.
/lifecycle stale

fejta-bot

unread,
Jan 27, 2018, 2:17:11 PM1/27/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten
/remove-lifecycle stale

k8s-ci-robot

unread,
Feb 26, 2018, 3:03:46 PM2/26/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Closed #42217.

fejta-bot

unread,
Feb 26, 2018, 3:04:39 PM2/26/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.


Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

Davanum Srinivas

unread,
Nov 20, 2018, 10:56:13 PM11/20/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Reopened #42217.

Davanum Srinivas

unread,
Nov 20, 2018, 10:56:15 PM11/20/18
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

/lifecycle frozen

Brian Pursley

unread,
Apr 29, 2020, 9:32:11 AM4/29/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

/kind bug


You are receiving this because you are on a team that was mentioned.

Reply to this email directly, view it on GitHub, or unsubscribe.

Brian Pursley

unread,
Aug 3, 2020, 7:58:28 PM8/3/20
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

I think this might be fixed now.

Using the steps in the issue description, when I save the changes, it immediately reloads vim with the following message at the top:

#
# pods "nginx" was not valid:
# * patch: Invalid value: "map[spec:map[]]": cannot convert int64 to string
#

I tried several versions of kubectl back to 1.15.11, so I'm not sure at what point this might have been fixed.

Maciej Szulik

unread,
Jul 8, 2021, 9:27:04 AM7/8/21
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

As Brian put it it's working as expected.
/close

Kubernetes Prow Robot

unread,
Jul 8, 2021, 9:27:09 AM7/8/21
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

Closed #42217.

Kubernetes Prow Robot

unread,
Jul 8, 2021, 9:27:10 AM7/8/21
to kubernetes/kubernetes, k8s-mirror-cli-bugs, Team mention

@soltysh: Closing this issue.

In response to this:

As Brian put it it's working as expected.
/close

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.

Reply all
Reply to author
Forward
0 new messages