-
Notifications
You must be signed in to change notification settings - Fork 423
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
Adding configs to allow you to run from local #124
Adding configs to allow you to run from local #124
Conversation
4864a56
to
1a1bd5e
Compare
cmd/aws-iam-authenticator/root.go
Outdated
@@ -80,9 +80,11 @@ func getConfig() (config.Config, error) { | |||
ClusterID: viper.GetString("clusterID"), | |||
ServerEC2DescribeInstancesRoleARN: viper.GetString("server.ec2DescribeInstancesRoleARN"), | |||
LocalhostPort: viper.GetInt("server.port"), | |||
Localhostname: viper.GetString("server.hostname"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it have to be a localhost? Can I provide another hostname?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I was following the LocalhostPort
reference, I will change both of those
cmd/aws-iam-authenticator/init.go
Outdated
viper.BindPFlag("server.hostname", initCmd.Flags().Lookup("hostname")) | ||
|
||
initCmd.Flags().StringP( | ||
"bind", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: call the flag addr
or address
.
Can you update your commit message? |
7c4dcaa
to
46cc47d
Compare
@nckturner yeah, changed both the config and renamed all the components to not have a localhost specificity. |
**Why:** * Makes it possible to issue your certificate and key to a specific ipaddress, and hostname making local development easier. Signed-off-by: Christopher Hein <[email protected]>
46cc47d
to
6d35823
Compare
/lgtm |
Does |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: christopherhein, nckturner The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Why:
--kubeconfig
to a local directory and have it listen to the remote apiserver
development requires an addressable server
Issue: closes #123