refactor: move all external charts back to system

This commit is contained in:
Khue Doan 2021-12-21 01:14:24 +07:00
parent 4e2a173858
commit d515e1946a
13 changed files with 15 additions and 62 deletions

View File

@ -1,51 +0,0 @@
provider "kubernetes" {
config_path = "${path.root}/../metal/kubeconfig.yaml"
}
resource "kubernetes_manifest" "external_applicationset" {
manifest = {
apiVersion = "argoproj.io/v1alpha1"
kind = "ApplicationSet"
metadata = {
name = "external"
namespace = "argocd"
}
spec = {
generators = [
{
git = {
directories = [
{
path = "external/*"
}
]
repoURL = "https://github.com/khuedoan/homelab.git"
revision = "master"
}
},
]
template = {
metadata = {
name = "{{path.basename}}"
}
spec = {
destination = {
name = "in-cluster"
namespace = "{{path.basename}}"
}
project = "default"
source = {
path = "{{path}}"
repoURL = "https://github.com/khuedoan/homelab.git"
}
syncPolicy = {
automated = {
prune = true
selfHeal = true
}
}
}
}
}
}
}

View File

@ -1,9 +1,3 @@
provider "b2" {
# Environment variables
# B2_APPLICATION_KEY
# B2_APPLICATION_KEY_ID
}
resource "b2_bucket" "backup" {
bucket_name = "khuedoan-homelab-backup"
bucket_type = "allPrivate"

View File

@ -2,11 +2,6 @@ variable "cloudflare_account_id" {
type = string
}
provider "cloudflare" {
# Environment variables
# CLOUDFLARE_API_TOKEN
}
data "cloudflare_zone" "khuedoan_com" {
name = "khuedoan.com"
}

15
external/versions.tf vendored
View File

@ -32,3 +32,18 @@ terraform {
}
}
}
provider "cloudflare" {
# Environment variables
# CLOUDFLARE_API_TOKEN
}
provider "b2" {
# Environment variables
# B2_APPLICATION_KEY
# B2_APPLICATION_KEY_ID
}
provider "kubernetes" {
config_path = "${path.root}/../metal/kubeconfig.yaml"
}