Skip to content
Permalink
Browse files

feat: use new do k8s module for tf devnet

  • Loading branch information...
etienne-napoleone committed May 13, 2019
1 parent 3fe2d9d commit e7b850e59796b929575b61aa2f270d32a62cd954
Showing with 21 additions and 20 deletions.
  1. +0 −11 terraform/devnet/k8s.tf
  2. +20 −4 terraform/devnet/main.tf
  3. +1 −5 terraform/devnet/variables.tf

This file was deleted.

Oops, something went wrong.
@@ -3,11 +3,27 @@ provider "digitalocean" {
}

provider "kubernetes" {
host = "${digitalocean_kubernetes_cluster.devnet.endpoint}"
host = "${module.kubernetes.endpoint}"

client_certificate = "${base64decode(digitalocean_kubernetes_cluster.devnet.kube_config.0.client_certificate)}"
client_key = "${base64decode(digitalocean_kubernetes_cluster.devnet.kube_config.0.client_key)}"
cluster_ca_certificate = "${base64decode(digitalocean_kubernetes_cluster.devnet.kube_config.0.cluster_ca_certificate)}"
client_certificate = "${module.kubernetes.client_certificate}"
client_key = "${module.kubernetes.client_key}"
cluster_ca_certificate = "${module.kubernetes.cluster_ca_certificate}"
}

provider "helm" {
kubernetes {
host = "${module.kubernetes.endpoint}"

client_certificate = "${module.kubernetes.client_certificate}"
client_key = "${module.kubernetes.client_key}"
cluster_ca_certificate = "${module.kubernetes.cluster_ca_certificate}"
}
}

module "kubernetes" {
source = "../modules/providers/digitalocean/kubernetes"

name = "devnet"
}

# module "tomomaster" {
@@ -1,5 +1 @@
variable "do_token" {}

variable "region" {
default = "blr1"
}
variable "do_token" {}

0 comments on commit e7b850e

Please sign in to comment.
You can’t perform that action at this time.