Skip to content

Instantly share code, notes, and snippets.

@dudash
Last active December 22, 2015 19:11
Show Gist options
  • Save dudash/aaf7e4fdfee09447579c to your computer and use it in GitHub Desktop.
Save dudash/aaf7e4fdfee09447579c to your computer and use it in GitHub Desktop.
OpenShift CLI command to copy environment vars from one deployment config to another
# TODO turn this into a shell script
# oc env dc [source dc] --list | grep [filter] | oc env dc [dest dc] -e -
# if you want to stomp (--overwrite specified)
# oc env dc [source dc] --list | grep [filter] | oc env dc [dest dc] --overwrite -e -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment