Update commands with resource builders to use external versions#20400
Update commands with resource builders to use external versions#20400juanvallejo wants to merge 8 commits intoopenshift:masterfrom
Conversation
pkg/oc/cli/debug/debug.go
Outdated
| 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.
pkg/oc/cli/debug/debug.go
Outdated
| } | ||
|
|
||
| // TODO: DockerImageMetadata is a RawExtension in the external api - how to access config? | ||
| if image == nil || image.DockerImageMetadata.Config == nil { |
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.
@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.
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 DetailsNeeds 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. DetailsInstructions 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 |
|
Closed in favor of #20514. |
Updates any remaining commands that use resource builders to deal with external versions