Skip to content

Commit b633c87

Browse files
authored
Merge pull request #9 from gitops-bridge-dev/external-secrets-example-3
add base path for external-secret example
2 parents e036f84 + 8574f99 commit b633c87

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

argocd/iac/terraform/examples/eks/external-secrets/bootstrap/addons.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ spec:
2121
project: default
2222
source:
2323
repoURL: '{{metadata.annotations.gitops_bridge_repo_url}}'
24-
path: '{{metadata.annotations.gitops_bridge_repo_path}}'
24+
path: '{{metadata.annotations.gitops_bridge_repo_basepath}}{{metadata.annotations.gitops_bridge_repo_path}}'
2525
targetRevision: '{{metadata.annotations.gitops_bridge_repo_revision}}'
2626
directory:
2727
recurse: true

argocd/iac/terraform/examples/eks/external-secrets/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ locals {
4949
cluster_version = "1.27"
5050
gitops_addons_org = var.gitops_addons_org
5151
gitops_addons_repo = var.gitops_addons_repo
52+
gitops_addons_basepath = var.gitops_addons_basepath
5253
gitops_addons_path = var.gitops_addons_path
5354
gitops_addons_revision = var.gitops_addons_revision
5455
gitops_addons_url = "${local.gitops_addons_org}/${local.gitops_addons_repo}"
@@ -110,6 +111,7 @@ locals {
110111
},
111112
{
112113
gitops_bridge_repo_url = local.gitops_addons_url
114+
gitops_bridge_repo_basepath = local.gitops_addons_basepath
113115
gitops_bridge_repo_path = local.gitops_addons_path
114116
gitops_bridge_repo_revision = local.gitops_addons_revision
115117
},

argocd/iac/terraform/examples/eks/external-secrets/variables.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ variable "gitops_addons_repo" {
66
description = "Git repository contains for addons"
77
default = "gitops-bridge-argocd-control-plane-template"
88
}
9+
variable "gitops_addons_basepath" {
10+
description = "Git repository base path for addons"
11+
default = ""
12+
}
913
variable "gitops_addons_path" {
1014
description = "Git repository path for addons"
1115
default = "bootstrap/control-plane/addons"

0 commit comments

Comments
 (0)