Skip to content

How to pass separate template files to oc process? #21190

@lomholdt

Description

@lomholdt

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 v3.6.173.0.83
kubernetes v1.6.1+5115d708d7
features: Basic-Auth

Server https://openshift
openshift v3.7.64
kubernetes v1.7.6+a08f5eeb62
Steps To Reproduce

oc process -f deploymentconfig.yaml -f service.yaml

Current Result

Only one of the resources is outputted

Expected Result

A complete list of the resources inputted

Additional Information

N/A

Metadata

Metadata

Assignees

Labels

component/clikind/featureCategorizes issue or PR as related to a new feature.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.priority/P3

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions