Skip to content

om bosh-env should be able to independently set credhub and bosh vars #458

@kcboyle

Description

@kcboyle

See #385 for more context

A nice to have feature for bosh-env would be to allow bosh and credhub vars to be set separately. A use case for this would be if a user needed to interact with bosh using a credhub that was not deployed via bosh (or vice versa). Right now, this would require the user to manually unset the credhub vars and/or reset the existing credhub vars that they desired.

We shouldn't break the existing behavior of bosh-env, so when running om bosh-env, it should, by default, include credhub and bosh env vars.

The following is a first pass as to how this could look. It is open to discussion
To exclude credhub vars

om bosh-env --exclude-credhub

To exclude bosh vars

om bosh-env --exclude-bosh

I would expect that these could be used together, but nothing would be set if both flags were passed (perhaps with a message saying "nothing to do"), but it is also understandable that passing both flags would produce an error.

Thank you for the proposal @aegershman!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions