Merge pull request #53308 from LiliC/remove-func
Automatic merge from submit-queue (batch tested with PRs 50447, 53308). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
apiextensions/examples: remove unnecessary function
**What this PR does / why we need it**:
The `BuildConfigFromFlags` function already calls the `InClusterConfig` function.
**Special notes for your reviewer**:
If this function was added to bypass [the warning](https://github.com/kubernetes/client-go/blob/master/tools/clientcmd/client_config.go#L529), then maybe we should instead add a comment.
/cc @sttts @nikhita
Showing
Please
register
or
sign in
to comment