openshift / openshift/origin

Enhancement Request - Pass separate template files to oc process

Open
#28,205 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

lifecycle/frozen
Dominant language
Go
Stars
8.7k
Forks
4.8k
Avg merge
4d 10h
Merged PRs (30d)
53

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The request concerns the oc process entry point and its handling of multiple -f inputs. First read the known enhancement issue #21190, then reproduce with oc process -f deploymentconfig.yaml -f service.yaml or oc process -f ./. Done would mean all supplied resources are output, but this issue is marked as a duplicate.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.