Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Add a command line parameter to communicate back the email that user used for logging in#35

Merged
dkerwin merged 5 commits intogini:masterfrom
andrewsav-bt:write-email
Feb 10, 2020
Merged

Add a command line parameter to communicate back the email that user used for logging in#35
dkerwin merged 5 commits intogini:masterfrom
andrewsav-bt:write-email

Conversation

@andrewsav-bt
Copy link
Contributor

@andrewsav-bt andrewsav-bt commented Dec 3, 2019

For integration of other internal tooling it is necessary to know which account was just added to kubeconfig by dexter. Then other tooling may use this information to create, for example, a new context with that user in kubeconfig. Without this it is not possible to guess which of the accounts in kubeconfig was just updated.

This PR adds a new command line parameter -f that allows specifying a file name where dexter would write the email/identity/user just authenticated.

@andrewsav-bt andrewsav-bt requested a review from dkerwin February 7, 2020 22:25
@dkerwin
Copy link
Contributor

dkerwin commented Feb 10, 2020

@andrewsav-datacom How can we get this fixed?

@AndrewSav
Copy link
Contributor

@dkerwin sorry, I do not understand the question. The obvious answer is "by merging this PR". What's missing?

@dkerwin
Copy link
Contributor

dkerwin commented Feb 10, 2020

I'd really love to see you integrate the suggestion I made (replacing log.info + sprintf with log.infof). Besides that the PR looks fine.

@AndrewSav
Copy link
Contributor

Where can I see the suggestion?

Copy link
Contributor

@dkerwin dkerwin left a comment

Choose a reason for hiding this comment

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

Please fix the log.Info line

Co-Authored-By: Daniel Kerwin <daniel@linuxaddicted.de>
@AndrewSav
Copy link
Contributor

@dkerwin I've made the change.

@dkerwin dkerwin merged commit 25d8cc1 into gini:master Feb 10, 2020
@andrewsav-bt andrewsav-bt deleted the write-email branch February 10, 2020 21:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants