Skip to content

Commit 8ef1e02

Browse files
committed
Refactor to enable shared resources to target other clusters
1 parent da4d505 commit 8ef1e02

32 files changed

+276
-29
lines changed

apps/argo/_tenant/.argocd.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.
File renamed without changes.

apps/argo/_tenant/kcl.mod renamed to apps/argo/_tenant/base/kcl.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "argo_tenant"
33
version = "0.1.0"
44

55
[dependencies]
6-
konfig = { path = "../../../konfig" }
6+
konfig = { path = "../../../../konfig" }
77

88
[profile]
99
entries = ["main.k", "${konfig:KCL_MOD}/models/render/render.k"]
File renamed without changes.

apps/argo/_tenant/base/main.k

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import konfig.models.frontend
2+
3+
tenantConfiguration: frontend.Tenant {
4+
name = "argo"
5+
}

apps/argo/_tenant/shared/kcl.mod

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[package]
2+
name = "argo"
3+
version = "0.1.0"
4+
5+
[dependencies]
6+
argo_tenant = { path = "../base" }
7+
8+
[profile]
9+
entries = ["main.k", "${konfig:KCL_MOD}/models/render/render.k"]

apps/cilium/_tenant/kcl.mod.lock renamed to apps/argo/_tenant/shared/kcl.mod.lock

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
[dependencies]
2+
[dependencies.argo_tenant]
3+
name = "argo_tenant"
4+
full_name = "argo_tenant_0.1.0"
5+
version = "0.1.0"
26
[dependencies.charts]
37
name = "charts"
48
full_name = "charts_0.1.0"

apps/argo/_tenant/main.k renamed to apps/argo/_tenant/shared/main.k

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
import argo_tenant
12
import konfig.models.frontend
23

3-
tenantConfiguration: frontend.Tenant {
4-
name = "argo"
4+
tenant = argo_tenant.tenantConfiguration
55

6+
shared: frontend.SharedApp {
67
secretStores.default = {
78
name = "argo"
89
provider.doppler.auth.secretRef.dopplerToken = {

apps/argo/cd/base/kcl.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ name = "argo_cd_base"
33
version = "0.1.0"
44

55
[dependencies]
6-
argo_tenant = { path = "../../_tenant" }
6+
argo = { path = "../../_tenant/shared" }

0 commit comments

Comments
 (0)