Skip to content

Unable to save changes with oc edit #7085

Closed

Description

@mfojtik

On latest master I run this:

[root@localhost rails-ex]# oc edit bc/rails-postgresql-example -o json

After I add incremental: true to strategy, I get this error:

A copy of your changes has been stored to "/tmp/kubectl-edit-7nm06.json"
error: no kind "BuildConfig" is registered for version "pre012"

@Kargakis (rebase issue?)

Activity

  1. added
    kind/bug
    on Feb 6, 2016
  2. mfojtik commented on Feb 6, 2016

    @mfojtik
    ContributorAuthor

    Also if I omit the -o json option and get yaml in VIM, after saving I get:

    A copy of your changes has been stored to "/tmp/kubectl-edit-65hc1.yaml"
    error: no kind "BuildConfig" is registered for version "1.0"
  3. mfojtik commented on Feb 6, 2016

    @mfojtik
    ContributorAuthor

    And another one ;-)

    error: apiVersion should not be changed
    A copy of your changes has been stored to "/tmp/kubectl-edit-7fkwb.yaml"
    

    (note that I do not update the apiVersion, just add incremental to strategy).

  4. mfojtik commented on Feb 6, 2016

    @mfojtik
    ContributorAuthor

    cc @deads2k @smarterclayton seems like something that broken after rebase.

  5. deads2k commented on Feb 8, 2016

    @deads2k
    Contributor

    cc @deads2k @smarterclayton seems like something that broken after rebase.

    I'll take a look. Can you include the output of what you have in edit and also note whether you can do an oc update with it?

  6. self-assigned this
    on Feb 8, 2016
  7. dgoodwin commented on Feb 8, 2016

    @dgoodwin
    Contributor

    Hitting this one too with oc edit scc/restricted, change a field (not apiVersion), and the result is: "error: apiVersion should not be changed"

  8. 0xmichalis commented on Feb 8, 2016

    @0xmichalis
    Contributor

    @dgoodwin @mfojtik syntax/validation errors are not retried by kubectl. This is fixed in #6959

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

Metadata

Metadata

Assignees

Labels

area/usabilitycomponent/clikind/bugpriority/P1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions