Skip to content

set env vars on oc new-app of template #3304

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

Merged
merged 1 commit into from
Dec 1, 2016
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
9 changes: 8 additions & 1 deletion dev_guide/new_app.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ xref:specifying-a-template[templates].

==== Specifying Environment Variables

When generating applications from a xref:specifying-source-code[source] or an
When generating applications from a xref:specifying-a-template[template], xref:specifying-source-code[source], or an
xref:specifying-an-image[image], you can use the `-e|--env` argument to pass
environment variables to the application container at run time:

Expand All @@ -329,6 +329,13 @@ $ oc new-app openshift/postgresql-92-centos7 \
----
====

[NOTE]
====
Any `*BuildConfig*` objects created as part of `new-app` processing will not be updated with
environment variables passed via the `-e|--env` argument.
====


[[specifying-labels]]

==== Specifying Labels
Expand Down