mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-17 23:13:46 +01:00
* Remove template_file for generating kubeconfig Push logic from terraform down to the template. Makes the formatting slightly easier to follow * Remove template_file for generating userdata Updates to the eks_cluster now do not trigger recreation of launch configurations * Remove template_file for LT userdata * Remove template dependency
39 lines
825 B
Smarty
39 lines
825 B
Smarty
apiVersion: v1
|
|
preferences: {}
|
|
kind: Config
|
|
|
|
clusters:
|
|
- cluster:
|
|
server: ${endpoint}
|
|
certificate-authority-data: ${cluster_auth_base64}
|
|
name: ${kubeconfig_name}
|
|
|
|
contexts:
|
|
- context:
|
|
cluster: ${kubeconfig_name}
|
|
user: ${kubeconfig_name}
|
|
name: ${kubeconfig_name}
|
|
|
|
current-context: ${kubeconfig_name}
|
|
|
|
users:
|
|
- name: ${kubeconfig_name}
|
|
user:
|
|
exec:
|
|
apiVersion: client.authentication.k8s.io/v1alpha1
|
|
command: ${aws_authenticator_command}
|
|
args:
|
|
%{~ for i in aws_authenticator_command_args }
|
|
- "${i}"
|
|
%{~ endfor ~}
|
|
%{ for i in aws_authenticator_additional_args }
|
|
- ${i}
|
|
%{~ endfor ~}
|
|
%{ if length(aws_authenticator_env_variables) > 0 }
|
|
env:
|
|
%{~ for k, v in aws_authenticator_env_variables ~}
|
|
- name: ${k}
|
|
value: ${v}
|
|
%{~ endfor ~}
|
|
%{ endif ~}
|