Skip to content

Commit

Permalink
put chart details in var, tfvars, update cert-manager chart version (…
Browse files Browse the repository at this point in the history
…need to update cert-manager other versions)
  • Loading branch information
badra001 committed Jul 24, 2023
1 parent 5efd451 commit 0e0c449
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 22 deletions.
45 changes: 23 additions & 22 deletions examples/full-cluster-tf-upgrade/1.25/common-services/main.tf
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
locals {
charts = {
"cert-manager" = {
name = "cert-manager"
repository = "https://charts.jetstack.io"
version = "v1.4.3"
use_remote = true
}

"metrics-server" = {
name = "metrics-server"
repository = "https://charts.bitnami.com/bitnami"
version = "6.2.6"
use_remote = true
}

# a standard chart that is downloaded as part of the istio-bundle. It's not
# available standalone in a repository
# name = "istio-operator"
# these are all custom
# name = "certificate-issuer"
# name = "istio-profile"
}
charts = var.chart_details
## charts = {
## "cert-manager" = {
## name = "cert-manager"
## repository = "https://charts.jetstack.io"
## version = "v1.4.3"
## use_remote = true
## }
##
## "metrics-server" = {
## name = "metrics-server"
## repository = "https://charts.bitnami.com/bitnami"
## version = "6.2.6"
## use_remote = true
## }
##
## # a standard chart that is downloaded as part of the istio-bundle. It's not
## # available standalone in a repository
## # name = "istio-operator"
## # these are all custom
## # name = "certificate-issuer"
## # name = "istio-profile"
## }
}

resource "kubernetes_namespace" "cert-manager" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,19 @@ vault_serviceaccount_role = ""
vault_serviceaccount_sa = ""
vault_token = ""
vault_url = ""

chart_details = {
"cert-manager" = {
name = "cert-manager"
repository = "https://charts.jetstack.io"
version = "v1.12.2"
use_remote = true
}

"metrics-server" = {
name = "metrics-server"
repository = "https://charts.bitnami.com/bitnami"
version = "6.2.6"
use_remote = true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -207,3 +207,14 @@ variable "istio_tag" {
default = "1.10.1"
}

variable "chart_details" {
description = "Map of object with details about remote charts"
type = map(object(
{
name = string
repository = string
version = string
use_remote = bool
}))
default = {}
}

0 comments on commit 0e0c449

Please sign in to comment.