Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation on how to manage environment variables #2026

Merged
merged 1 commit into from
Aug 21, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions docs/getting-started.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -200,3 +200,22 @@ $ oc annotate istag/openjdk18:latest tags=builder
----
$ odo create openjdk18 --git https://github.com/openshift-evangelists/Wild-West-Backend
----

=== Managing enviroment variables in odo
==== Setting and unsetting enviroment variables
odo provides the `odo config` command to set or unset enviromental variables in local configurations.

To set variables:
----
odo config set --env VARIABLE=value
----

To unset variables:
----
odo config unset --env VARIABLE
----

To list all enviroment variables in the current local configuration:
----
odo config view
----