getKubeconfig method

Generate a kubeconfig for cluster authentication.

The kubeconfig generated is automatically stringified for ease of use with the pulumi/kubernetes provider. The kubeconfig uses the new gke-gcloud-auth-plugin authentication plugin as recommended by Google.

See for more details:

Implementation

Future<ClusterGetKubeconfigResult> getKubeconfig() async {
  final deployment = pulumi.DeploymentImpl.instance as pulumi.DeploymentImpl;
  final result = await deployment.callWithResult<Map<String, dynamic>>(
    'google-native:container/v1:Cluster/getKubeconfig',
    const <String, dynamic>{},
    self: this,
  );
  return ClusterGetKubeconfigResult.fromMap(result);
}