Skip to content
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

Add pks-login command to Hammer #6

Merged
merged 4 commits into from
Aug 29, 2019
Merged

Add pks-login command to Hammer #6

merged 4 commits into from
Aug 29, 2019

Conversation

gmrodgers
Copy link
Contributor

@gmrodgers gmrodgers commented Aug 12, 2019

A new command for logging into PKS environments. The only new required field in the environment file is the PKS API URL. I put in the URL as otherwise, I would need to differentiate between the staged URL and the templated one (the field is configurable in Opsman). Thoughts/Comments welcome. The structure is very similar to cf-login (some would say a copy-pasta)...

- Requires the API for PKS (configurable in OpsManager) to be in Env
file
Copy link
Contributor

@edwardecook edwardecook left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gmrodgers other than the comments I've added I'd say this looks pretty good.

I agree that this ends up looking very similar to hammer cf-login maybe a future optimisation would be to merge some of that code. Also as we have spoken about previously it might be nice to see if pulling the pks api url via om.

environment/config.go Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
@pivotal-issuemaster
Copy link

@gmrodgers Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-issuemaster
Copy link

@gmrodgers Thank you for signing the Contributor License Agreement!

@gmrodgers gmrodgers merged commit cd939cc into master Aug 29, 2019
@gmrodgers gmrodgers deleted the pks_login_command branch August 29, 2019 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants