forked from metalstormbass/CloudGuard_WAAP_K8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelm.tf
25 lines (23 loc) · 950 Bytes
/
helm.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#Provider for Helm
provider "helm" {
kubernetes {
host = azurerm_kubernetes_cluster.vuln_k8_cluster.kube_config.0.host
client_certificate = base64decode(azurerm_kubernetes_cluster.vuln_k8_cluster.kube_config.0.client_certificate)
client_key = base64decode(azurerm_kubernetes_cluster.vuln_k8_cluster.kube_config.0.client_key)
cluster_ca_certificate = base64decode(azurerm_kubernetes_cluster.vuln_k8_cluster.kube_config.0.cluster_ca_certificate)
load_config_file = false
}
}
resource "helm_release" "cp_waap_helm" {
name = "cpwaap"
chart = "https://raw.githubusercontent.com/metalstormbass/cp_waap_helm/main/CP_WAAP_Helm/CP_WAAP_Helm-0.1.0.tgz"
namespace = kubernetes_namespace.vulnk8_namespace.metadata.0.name
set {
name = "token"
value = var.token
}
set {
name = "waapNamespace"
value = kubernetes_namespace.vulnk8_namespace.metadata.0.name
}
}