-
Notifications
You must be signed in to change notification settings - Fork 4.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
Update commands with resource builders to use external versions #20400
Update commands with resource builders to use external versions #20400
Conversation
pkg/oc/cli/debug/debug.go
Outdated
@@ -256,6 +254,7 @@ func (o *DebugOptions) Complete(cmd *cobra.Command, f kcmdutil.Factory, args []s | |||
|
|||
o.Builder = f.NewBuilder | |||
|
|||
// TODO: not sure what to do with this helper - new duplicate for external versions? | |||
o.AddEnv, o.RemoveEnv, err = utilenv.ParseEnv(envArgs, nil) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pkg/oc/cli/debug/debug.go
Outdated
@@ -562,6 +554,7 @@ func (o *DebugOptions) getContainerImageCommand(pod *kapi.Pod, container *kapi.C | |||
image, _ = o.getContainerImageViaImageStreamImport(container) | |||
} | |||
|
|||
// TODO: DockerImageMetadata is a RawExtension in the external api - how to access config? | |||
if image == nil || image.DockerImageMetadata.Config == nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ceb15f9
to
3aabb30
Compare
3aabb30
to
a32fc18
Compare
9c2cad7
to
130c684
Compare
pkg/oc/cli/debug/debug.go
Outdated
// TODO: find a way to do this with the external api | ||
// convert image to internal in order to extract its imagemetadata config | ||
internalImage := &internalimage.Image{} | ||
if err := oapiv1.Convert_v1_Image_To_image_Image(image, internalImage, nil); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@deads2k Is there a more elegant way to access an image's DockerImageMetadata.Config field? The external api stores the DockerImageMetadata
field as a RawExtension
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll have to live with it for now.
130c684
to
3883384
Compare
117694b
to
b86760e
Compare
b86760e
to
e26a263
Compare
7a3455b
to
2cee3ef
Compare
9fe3318
to
c8372d2
Compare
/retest |
702c833
to
f9df752
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: juanvallejo If they are not already assigned, you can assign the PR to them by writing The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
52dcaba
to
0d9e138
Compare
0d9e138
to
e802648
Compare
0adbadb
to
8ca712f
Compare
8ca712f
to
9095e38
Compare
9095e38
to
8a8b443
Compare
@juanvallejo: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. |
if _, err := o.SecretsInterface.Create(secret); err != nil { | ||
return err | ||
} | ||
// TODO: sweep codebase removing implied --dry-run behavior when -o is specified |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@juanvallejo create an issue about it.
Closed in favor of #20514. |
Updates any remaining commands that use resource builders to deal with external versions