strip --context
to use current context:
kubectl config view --minify --flatten --context=kind-terraform-learn
host
== clusters.cluster.server
client_certificate
== users.user.client-certificate-data
client_key
== users.user.client-key-data
cluster_ca_certificate
== clusters.cluster.certificate-authority-data
Taken from https://developer.hashicorp.com/terraform/tutorials/kubernetes/kubernetes-provider