-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
remove duplicated kubeconfig loading methods #19333
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deads2k 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 |
// NewOpenShiftClientConfigLoadingRules returns file priority loading rules for OpenShift. | ||
// 1. --config value | ||
// 2. if KUBECONFIG env var has a value, use it. Otherwise, ~/.kube/config file | ||
func NewOpenShiftClientConfigLoadingRules() *clientcmd.ClientConfigLoadingRules { |
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.
} | ||
|
||
// NewConfig returns a new configuration | ||
func NewConfig() *Config { |
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.
This moved to the only point of use in the router commands.
@soltysh this lgtm |
The non-contentious part of changes for removing special clientconfig loading rules.
/assign @soltysh
/assign @juanvallejo