om icon indicating copy to clipboard operation
om copied to clipboard

Allow to specify separate UAA Host for local dev

Open nouseforaname opened this issue 2 years ago • 2 comments

Hey I'm from the BOSH/OpsMan Team

We'd like to allow to reset uaa host to a value from an env var.

In local dev envs we do not always have nginx or another lb to do path based routing and therefore possibly run UAA on a different port.

Currently this blocks os from using om to setup local OpsMan configs for testing (e.g. we add stuff)

I opted to not expose that as a flag to avoid customer iritation about the possibility of resetting the UAA Host since that should not really be necessary for other purposes than engineering.

If you need me to add tests for this let me know.

nouseforaname avatar Jan 14 '22 15:01 nouseforaname

We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.

The labels on this github issue will be updated when the story is started.

cf-gitbot avatar Jan 14 '22 15:01 cf-gitbot

I wouldn't hardcode an environment variable. You can use the structs for commands (and main) to add environment variable only values.

type SomeStruct struct {
UAAHost    string `env:"OM_UAA_HOST" hidden:"true"` 
}

This should be the amount of code you need to accomplish the same thing.

jtarchie avatar Feb 08 '22 16:02 jtarchie