Skip to content

Commit

Permalink
Merge pull request #562 from robinmordasiewicz/dev99
Browse files Browse the repository at this point in the history
adding ks8
  • Loading branch information
robinmordasiewicz authored Aug 7, 2024
2 parents 432187e + e406179 commit 1b950a9
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions terraform/spoke-k8s_cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,18 @@ resource "azurerm_kubernetes_flux_configuration" "flux_configuration" {
]
}

output "kube_config" {
description = "kube config"
value = azurerm_kubernetes_cluster.kubernetes_cluster.kube_config_raw
sensitive = true
}
resource "null_resource" "openapi_file" {
depends_on = [ azurerm_kubernetes_cluster.kubernetes_cluster ]
provisioner "local-exec" {
interpreter = ["bash", "-c"]
command = <<-EOF
curl -k -X POST -H "Content-Type: multipart/form-data" -H "Authorization:eyJ1c2VybmFtZSI6InJlbGV2YW50aG9yc2UiLCJwYXNzd29yZCI6ImZzTlJCQ1NTdjhUYUtzeW4iLCJ2ZG9tIjoicm9vdCJ9Cg==" -F '[email protected]' --insecure "https://relevanthorse-management.canadacentral.cloudapp.azure.com:8443/api/v2.0/waf/openapi.openapischemafile"
EOF
}
}

#output "kube_config" {
# description = "kube config"
# value = azurerm_kubernetes_cluster.kubernetes_cluster.kube_config_raw
# sensitive = true
#}

0 comments on commit 1b950a9

Please sign in to comment.