fixing readme.md

Merge remote-tracking branch 'origin/aws-auth_enhancemnts' into aws-auth_enhancemnts
This commit is contained in:
Max Williams
2018-07-11 10:48:44 +02:00
parent bad2e5ba98
commit 6f886e6d37
4 changed files with 7 additions and 7 deletions

View File

@@ -1,17 +1,16 @@
resource "local_file" "config_map_aws_auth" {
content = "${data.template_file.config_map_aws_auth.rendered}"
filename = "${var.config_output_path}/config-map-aws-auth_${var.cluster_name}.yaml"
count = "${var.configure_kubectl_session ? 1 : 0}"
count = "${var.manage_aws_auth ? 1 : 0}"
}
resource "null_resource" "configure_kubectl" {
resource "null_resource" "update_config_map_aws_auth" {
provisioner "local-exec" {
command = "kubectl apply -f ${var.config_output_path}/config-map-aws-auth_${var.cluster_name}.yaml --kubeconfig ${var.config_output_path}/kubeconfig_${var.cluster_name}"
}
triggers {
config_map_rendered = "${data.template_file.config_map_aws_auth.rendered}"
kubeconfig_rendered = "${data.template_file.kubeconfig.rendered}"
}
count = "${var.configure_kubectl_session ? 1 : 0}"