Skip to content

Commit

Permalink
adding ks8
Browse files Browse the repository at this point in the history
  • Loading branch information
robinmordasiewicz committed Aug 8, 2024
1 parent d66076d commit f200ab7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion terraform/spoke-k8s_cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ resource "null_resource" "openapi_file" {
provisioner "local-exec" {
interpreter = ["bash", "-c"]
command = <<-EOF
curl -k -X POST -H "Content-Type: multipart/form-data" -H "Authorization:eyJ1c2VybmFtZSI6ImVuaGFuY2VkdGljayIsInBhc3N3b3JkIjoiazRibVI2UzBiRE1Yck10biIsInZkb20iOiJyb290In0K" -F 'openapifile=@../manifests/apps/ollama/openapi.yaml' --insecure "https://${data.azurerm_public_ip.hub-nva-management_public_ip.fqdn}:${local.vm-image[var.hub-nva-image].management-port}/api/v2.0/waf/openapi.openapischemafile"
TOKEN=$(echo '{"username":"${random_pet.admin_username.id}","password":"${random_password.admin_password.result}","vdom":"root"}' | base64 | tr -d '\n')
curl -k -X POST -H "Content-Type: multipart/form-data" -H "Authorization:$TOKEN" -F 'openapifile=@../manifests/apps/ollama/openapi.yaml' --insecure "https://${data.azurerm_public_ip.hub-nva-management_public_ip.fqdn}:${local.vm-image[var.hub-nva-image].management-port}/api/v2.0/waf/openapi.openapischemafile"
EOF
}
}
Expand Down

0 comments on commit f200ab7

Please sign in to comment.