Oc env: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 12: Line 12:


  oc env dc/jenkins --list
  oc env dc/jenkins --list
=Set Environment Variable Values=
oc env <''target''> <''env_var_name''>=<''env_var_value''>
oc env dc/router ROUTER_USE_PROXY_PROTOCOL=false

Revision as of 00:05, 22 January 2018

Internal

Overview

List environment variables defined by the target object:

oc env <target> --list

Example:

oc env dc/jenkins --list

Set Environment Variable Values

oc env <target> <env_var_name>=<env_var_value>
oc env dc/router ROUTER_USE_PROXY_PROTOCOL=false