mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 21:50:05 +00:00
Merge pull request #2343 from erictune/tokens_need_private_comms
Use https when Insecure is selected.
This commit is contained in:
@@ -170,7 +170,7 @@ func GetKubeConfig(cmd *cobra.Command) *client.Config {
|
||||
}
|
||||
config.Host = host
|
||||
|
||||
if client.IsConfigTransportSecure(config) {
|
||||
if client.IsConfigTransportTLS(config) {
|
||||
// Get the values from the file on disk (or from the user at the
|
||||
// command line). Override them with the command line parameters, if
|
||||
// provided.
|
||||
|
Reference in New Issue
Block a user