Skip to content

Enhancement Request - Pass separate template files to oc process #28205

@mhtgrwl5

Description

@mhtgrwl5

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions