Provider proxy configuration

So I have a parent module with a provider "kubernetes" {} block configured. However when I run this locally for a plan it seems to completely ignore that provider block in the child module on the data "kubernetes_namespace" data source and I get an error about Get "https://localhost/api/v1/namespaces/NAMESPACE": tls: failed to verify certificate: x509: certificate signed by unknown authority which means it’s not using the provider block but defaulting to the local KUBECONFIG.