Skip to content

Commit

Permalink
Remove cluster-addons
Browse files Browse the repository at this point in the history
  • Loading branch information
johncosta committed Dec 16, 2023
1 parent da8472e commit b7b3aa8
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 164 deletions.
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,5 @@ module "k8s" {
# writes the kubeconfig to the local filesystem
path_to_kubeconfig = "/full/path/to/.kube"
use_cluster_name_in_config = true
cluster_addons = {
argo = {
enabled = true
chart_version = "5.51.6"
}
}
}
```
18 changes: 0 additions & 18 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,3 @@ resource "local_sensitive_file" "kubeconfig" {
digitalocean_kubernetes_cluster.this
]
}

module "cluster_addons" {
source = "./modules/cluster-addons"

# The module must be dependant on the kubeconfig creation. We pass these values to the module
# so that it can use them to configure the cluster addons
full_path_to_kubeconfig = local_sensitive_file.kubeconfig[0].filename
cluster_id = digitalocean_kubernetes_cluster.this.id

# Cluster Addons Configuration
cluster_addons = var.cluster_addons

providers = {
kubernetes = kubernetes.default
helm = helm.default
null = null.default
}
}
60 changes: 0 additions & 60 deletions modules/cluster-addons/argo.tf

This file was deleted.

19 changes: 0 additions & 19 deletions modules/cluster-addons/main.tf

This file was deleted.

3 changes: 0 additions & 3 deletions modules/cluster-addons/outputs.tf

This file was deleted.

29 changes: 0 additions & 29 deletions modules/cluster-addons/variables.tf

This file was deleted.

28 changes: 0 additions & 28 deletions provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,5 @@ terraform {
source = "hashicorp/local"
version = "~> 2.4.0"
}
kubernetes = {
source = "hashicorp/kubernetes"
version = "~> 2.24.0"
}
helm = {
source = "hashicorp/helm"
version = "~> 2.12.1"
}
null = {
source = "hashicorp/null"
version = "~> 3.2.2"
}
}
}

provider "kubernetes" {
alias = "default"
config_path = local_sensitive_file.kubeconfig[0].filename
}

provider "helm" {
alias = "default"
kubernetes {
config_path = local_sensitive_file.kubeconfig[0].filename
}
}

provider "null" {
alias = "default"
}

0 comments on commit b7b3aa8

Please sign in to comment.