origin icon indicating copy to clipboard operation
origin copied to clipboard

Enhancement Request - Pass separate template files to oc process

Open mhtgrwl5 opened this issue 2 years ago • 4 comments

DUPLICATE OF KNOWN ENHANCEMENT - #21190

When I oc process -f template.yaml I would like to split my different objects into several files such as service.yaml, route.yaml, deploymentconfig.yaml. Basically I should be able to do something like oc process -f service.yaml -f route.yaml This is how Kubernetes does it. But when I do it with oc process I get only one of the templates outputted. Is this not possible in oc?

Version

$ oc version Client Version: 4.11.6 Kustomize Version: v4.5.4 Server Version: 4.10.63 Kubernetes Version: v1.23.17+16bcd69

Steps To Reproduce

oc process -f deploymentconfig.yaml -f service.yaml OR oc process -f ./ whne we consider folder

Current Result

Only one of the resources is outputted

Expected Result

A complete list of the resources inputted

Additional Information

Not Required.

mhtgrwl5 avatar Aug 21 '23 08:08 mhtgrwl5

/lifecycle frozen

mhtgrwl5 avatar Aug 21 '23 08:08 mhtgrwl5

Hey @mhtgrwl5, can I work on this issue?

AryanSharma9917 avatar Sep 12 '23 13:09 AryanSharma9917

Hi @AryanSharma9917 , I am not working on adding enhancement yet! So, if you are looking forward to pick this up. Please go ahead.

EDIT- I am not a contributor on this project yet! So, if there are any other requirements to work on this. You may need to talk to one of the contributors.

mhtgrwl5 avatar Sep 12 '23 13:09 mhtgrwl5

/assign

AryanSharma9917 avatar Sep 22 '23 10:09 AryanSharma9917