"oc set env" command does not work as expected in RHOCP4
Issue
-
The
oc set envcommand changes apiVersion forRouteandDeploymentConfig. -
The
OCclient version4.10returns the expected output:
$ oc set env -e FOO="BAR" -f process.json --local -o json
{
"kind": "Route",
"apiVersion": "route.openshift.io/v1",
"metadata": {
"name": "test"
.....
.....
"kind": "DeploymentConfig",
"apiVersion": "apps.openshift.io/v1",
- However, the
OCclient version for4.12,4.13and4.14changes the apiVersion forRouteandDeploymentConfig:
$ oc set env -e FOO="BAR" -f process.json --local -o json
{
"kind": "Route",
"apiVersion": "v1",
"metadata": {
"name": "test"
.....
.....
"kind": "DeploymentConfig",
"apiVersion": "v1",
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4.12+
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.