diff --git a/internal/common/common.go b/internal/common/common.go index b1336ff2e..2da45bc19 100644 --- a/internal/common/common.go +++ b/internal/common/common.go @@ -7,7 +7,6 @@ See the LICENSE file for more details. package common import ( - "crypto/tls" "fmt" "io" "net/http" @@ -120,9 +119,6 @@ func Destroy(cmd *cobra.Command, args []string) error { log.Info().Msg("destroying kubefirst platform") - customTransport := http.DefaultTransport.(*http.Transport).Clone() - customTransport.TLSClientConfig = &tls.Config{InsecureSkipVerify: true} - clusterName := viper.GetString("flags.cluster-name") domainName := viper.GetString("flags.domain-name") diff --git a/kubeconfig.yaml b/kubeconfig.yaml new file mode 100644 index 000000000..3e94434d8 --- /dev/null +++ b/kubeconfig.yaml @@ -0,0 +1,31 @@ +apiVersion: v1 +clusters: +- cluster: + certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUJkekNDQVIyZ0F3SUJBZ0lCQURBS0JnZ3Foa2pPUFFRREFqQWpNU0V3SHdZRFZRUUREQmhyTTNNdGMyVnkKZG1WeUxXTmhRREUyT1RVNE5EUXdOVE13SGhjTk1qTXdPVEkzTVRrME56TXpXaGNOTXpNd09USTBNVGswTnpNegpXakFqTVNFd0h3WURWUVFEREJock0zTXRjMlZ5ZG1WeUxXTmhRREUyT1RVNE5EUXdOVE13V1RBVEJnY3Foa2pPClBRSUJCZ2dxaGtqT1BRTUJCd05DQUFTSUVtdDFYRlZSNTBhNS9ybTA0UWUzWDdNNmcvV012bEZCbjdRb2h5a0wKdkNKazlxWU5JRmgvR0U3RWV6VGZGL1FrbVRDZjZWTWZxZXNTeGNUTGRZMzdvMEl3UURBT0JnTlZIUThCQWY4RQpCQU1DQXFRd0R3WURWUjBUQVFIL0JBVXdBd0VCL3pBZEJnTlZIUTRFRmdRVVN3MWwrNitoRzhOL0laUW1OQWxhCkZKMitmVWN3Q2dZSUtvWkl6ajBFQXdJRFNBQXdSUUlnQkNRRmFKY2doYVRVZUJZSEg2Z3lMTFcrUFVzVklxM3UKQ2tNVTZYYklXQWtDSVFDZXJCMTdydFI5VEpmYmQreHp2NE0xcisxS3FnWUJsTHFNaUdaNWF4bE1oUT09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K + server: https://0.0.0.0:51658 + name: k3d-kubefirst-console +- cluster: + certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUJkekNDQVIyZ0F3SUJBZ0lCQURBS0JnZ3Foa2pPUFFRREFqQWpNU0V3SHdZRFZRUUREQmhyTTNNdGMyVnkKZG1WeUxXTmhRREUyT1RVMk9UazFPREV3SGhjTk1qTXdPVEkyTURNek9UUXhXaGNOTXpNd09USXpNRE16T1RReApXakFqTVNFd0h3WURWUVFEREJock0zTXRjMlZ5ZG1WeUxXTmhRREUyT1RVMk9UazFPREV3V1RBVEJnY3Foa2pPClBRSUJCZ2dxaGtqT1BRTUJCd05DQUFRWmZ4V3FrL3lySDkyQTdYeFczRTJTZVM5T1hBSFk1ZUh4Uk1qVUdWL3EKL2xjWlh5T3VycEYzN3VMM00rbUJaZXRRdmxKd3MwNjNGZll2R1NncVdSVXFvMEl3UURBT0JnTlZIUThCQWY4RQpCQU1DQXFRd0R3WURWUjBUQVFIL0JBVXdBd0VCL3pBZEJnTlZIUTRFRmdRVTVRTEFsSERIOUxqMXJ2dStOUjF5CkZueW11d3d3Q2dZSUtvWkl6ajBFQXdJRFNBQXdSUUlnUGdLZklWMnhFNmoxck9KMGZvQU1WY29OTWNqUUVNTFcKR0tZRlFPQW9jTThDSVFEN0k2ZnM2bzJCTGRScTllTnFLZ1BkN0RsVzVJOU1ZNC9qVm1MY1FsT0pkQT09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K + server: https://74.220.26.115:6443 + name: management +contexts: +- context: + cluster: k3d-kubefirst-console + user: admin@k3d-kubefirst-console + name: k3d-kubefirst-console +- context: + cluster: management + user: management + name: management +current-context: k3d-kubefirst-console +kind: Config +preferences: {} +users: +- name: admin@k3d-k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