Skip to content

Commit

Permalink
install argocd
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitrii.Mashkov committed Jun 17, 2024
1 parent 107a187 commit b3aa9a4
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
46 changes: 23 additions & 23 deletions cluster-bootstrap/argocd.tf
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
# resource "helm_release" "argocd" {
# name = "argocd"
# repository = "https://argoproj.github.io/argo-helm"
# chart = "argo-cd"
# version = "5.49.0"
# namespace = "argocd"
# create_namespace = true
# wait = true
# wait_for_jobs = true
# values = [
# file("${path.module}/helm-values/argocd.yaml"),
# ]
# set {
# name = "configs.credentialTemplates.https-creds.password"
# value = var.argo_cd_private_key
# }
# }
#
# variable "argo_cd_private_key" {
# description = "Private key for Argo CD"
# sensitive = true
# type = string
# }
resource "helm_release" "argocd" {
name = "argocd"
repository = "https://argoproj.github.io/argo-helm"
chart = "argo-cd"
version = "5.49.0"
namespace = "argocd"
create_namespace = true
wait = true
wait_for_jobs = true
values = [
file("${path.module}/helm-values/argocd.yaml"),
]
set {
name = "configs.credentialTemplates.https-creds.password"
value = var.argo_cd_private_key
}
}

variable "argo_cd_private_key" {
description = "Private key for Argo CD"
sensitive = true
type = string
}
12 changes: 6 additions & 6 deletions kube.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,7 @@ module "cluster-bootstrap" {
]

# <variables here>
# argo_cd_private_key = var.argo_cd_private_key
argo_cd_private_key = var.argo_cd_private_key

}

Expand Down Expand Up @@ -1104,8 +1104,8 @@ variable "argo_cd_password" {
sensitive = true
}

# variable "argo_cd_private_key" {
# description = "The private key for the GitHub App used by Argo CD"
# sensitive = true
# type = string
# }
variable "argo_cd_private_key" {
description = "The private key for the GitHub App used by Argo CD"
sensitive = true
type = string
}

0 comments on commit b3aa9a4

Please sign in to comment.