Skip to content

Commit e13797a

Browse files
authored
Merge pull request #186 from projectsyn/fix/how-to/multi-team-component
Update component multi tenancy how-to for multi-instance aware components
2 parents 64d522f + ed86291 commit e13797a

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

docs/modules/ROOT/pages/how-tos/component-multi-tenancy.adoc

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,20 @@ local appPath =
3333
['%s/<component>' % appPath]: app, <1>
3434
}
3535
----
36-
<1> Replace `<component> with the component's name.
36+
<1> Replace `<component>` with the component's name.
3737
<2> We use `std.get()` here because `commodore component compile` generates an empty application manifest by default.
38+
+
39+
[NOTE]
40+
====
41+
If you're making a multi-instance aware component multi-tenant aware, you'll need to make sure that you create an ArgoCD app per instance.
42+
Additionally, you'll need to call `argocd.App()` with the optional parameter `base` set to the component name.
43+
44+
[source,jsonnet]
45+
----
46+
local instance = inv.parameters._instance;
47+
local app = argocd.App(instance, params.namespace, secrets=true, base=<component>);
48+
----
49+
====
3850
3951
. Adjust the component's Kapitan compile step for the application manifests (in `class/<component-name>.yml`)
4052
+

0 commit comments

Comments
 (0)