Enhancement Request - Pass separate template files to oc process
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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