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

Unable to edit image #9232

Closed
smarterclayton opened this issue Jun 8, 2016 · 12 comments
Closed

Unable to edit image #9232

smarterclayton opened this issue Jun 8, 2016 · 12 comments
Assignees
Labels
component/cli priority/P1 vendor-update Touching vendor dir or related files

Comments

@smarterclayton
Copy link
Contributor

Try editing an image

$ oc edit image <SHA>

When you change something, you get

A copy of your changes has been stored to "/var/folders/zw/j6656mbn1rv4fnqqdggss8h80000gn/T/oc-edit-aeu4l.yaml"
error: unable to find api field in struct RawExtension for the json field "ContainerConfig"

which comes from LookupPatchMeta trying to traverse down into the Image field (which is an opaque blob).

We should fix this, because it could also apply to other types in the future.

@smarterclayton smarterclayton added the vendor-update Touching vendor dir or related files label Jun 8, 2016
@smarterclayton
Copy link
Contributor Author

@Kargakis @fabianofranz this is an example of where strategic merge patch can't work in some of our objects.

@0xmichalis
Copy link
Contributor

Not a P1 though

@smarterclayton
Copy link
Contributor Author

Depends - can I edit templates? Or are those broken as wel.

@smarterclayton
Copy link
Contributor Author

Also policy rules (not sure which other ones are involved).

@0xmichalis
Copy link
Contributor

Depends - can I edit templates? Or are those broken as wel.

Just tested and editing a template works fine.

@smarterclayton
Copy link
Contributor Author

It's really disturbing that this fails then. Agree its not p1

On Thu, Jun 9, 2016 at 10:36 AM, Michail Kargakis [email protected]
wrote:

Depends - can I edit templates? Or are those broken as wel.

Just tested and editing a template works fine.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#9232 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABG_p1OYX2jYPM2AHZ-xuEwY4ruEsmxXks5qKCT5gaJpZM4IxWXk
.

@0xmichalis
Copy link
Contributor

Moving to @fabianofranz since I won't get to it any time soon

@jkaurredhat
Copy link

This also fails for annotate :

while editing image,
oc annotate --overwrite image sha256:c48070e4d8ec99d81170664aa8938dc2152e3c2fe4297bc511131e24f3ad6489 images.openshift.io/deny-execution=false

i get error:
Error from server: unable to find api field in struct RawExtension for the json field "Parent" or
Error from server: unable to find api field in struct RawExtension for the json field "Id" or
Error from server: unable to find api field in struct RawExtension for the json field "config"

OCP 3.4

@smarterclayton
Copy link
Contributor Author

Annotate failing is a pretty high priority.

@mfojtik
Copy link
Contributor

mfojtik commented Aug 21, 2017

@smarterclayton i cannot reproduce this on the latest master (guess it was fixed?). Is this 3.4 only?

@mfojtik
Copy link
Contributor

mfojtik commented Aug 21, 2017

@smarterclayton @Kargakis @soltysh seems like we need to backport #12731 to 3.4?

@soltysh
Copy link
Contributor

soltysh commented Aug 25, 2017

I'm closing this, since master has the fix in #12731 and 3.4 as well.

@soltysh soltysh closed this as completed Aug 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/cli priority/P1 vendor-update Touching vendor dir or related files
Projects
None yet
Development

No branches or pull requests

7 participants