How to pass environment variables in the Openshift Enterprise 'Add Cartridge' REST API call

Solution Unverified - Updated -

Issue

I am trying to set a few environment variables while adding a custom cartridge via REST API call. I tried all combinations, but environment variables not reflecting. I didn't find any documentation including REST API guide to add environment variables via REST API call while adding cartridge.

When using the RHC command add-cartridge, it is working fine. I was able to see newly created environment variables.

rhc add-cartridge -a tomcat -n mynamespace -e BAR=abc -c mongodb-2.4

Environment

OpenShift Enterprise 2.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.