-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Capsule templates to deploy EDP with Capsule isolation (#31)
Change-Id: I59cbdbb8d9626cdc94f8f9a3f2b78295f3f6ed05
- Loading branch information
1 parent
e684a12
commit 9ed6750
Showing
11 changed files
with
102 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Enable EDP Capsule Tenant Provisioning | ||
|
||
To enable EDP deployment under Capsule tenant management, follow these steps: | ||
|
||
1. **Verify Capsule User Groups:** | ||
Ensure that the default [capsuleUserGroups](../capsule/values.yaml) in Capsule include the necessary users for provisioning the EDP namespace. | ||
2. **Deploy Capsule:** | ||
Deploy Capsule using the [values.yaml](../../chart/values.yaml) file under the `capsule` section. | ||
3. **Capsule Tenant Configuration:** | ||
When creating a namespace for EDP deployment under the Capsule tenant, make sure that the users responsible for provisioning the namespace - Tenant Owner is declared in [edp-tenant](edp-tenant.yaml). | ||
4. **Deploy Capsule Tenant:** | ||
Deploy `capsule-tenant` using the [values.yaml](../../chart/values.yaml) file under the `capsule-tenant` section. | ||
5. **Create EDP Namespace:** | ||
Create a namespace for EDP deployment under the Capsule [Tenant Owner](edp-tenant.yaml). | ||
6. **Deploy EDP:** | ||
Deploy EDP using [values.yaml](../../chart/values.yaml) file under the `edp` section. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: capsule.clastix.io/v1beta2 | ||
kind: Tenant | ||
metadata: | ||
name: edp | ||
spec: | ||
owners: | ||
# uncomment if Argo CD manage main EDP tenant | ||
# - clusterRoles: | ||
# - admin | ||
# - capsule-namespace-deleter | ||
# kind: ServiceAccount | ||
# name: system:serviceaccount:argocd:argocd-application-controller | ||
# | ||
# uncomment if edp-oidc-admins group manage main EDP tenant | ||
# - clusterRoles: | ||
# - admin | ||
# - capsule-namespace-deleter | ||
# kind: Group | ||
# name: edp-oidc-admins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{{- if and (index .Values "capsule-tenant") (index .Values "capsule-tenant" "enable") -}} | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: {{ .Values.destinationServer}}-capsule-tenant | ||
namespace: {{ .Values.argoNamespace | default "argocd" }} | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
spec: | ||
project: {{ .Values.argoProject | default "default" }} | ||
source: | ||
repoURL: {{ .Values.repoUrl }} | ||
path: add-ons/capsule-tenant | ||
targetRevision: {{ .Values.targetRevision }} | ||
destination: | ||
name: {{ .Values.destinationServer | default "in-cluster" }} | ||
namespace: capsule-system | ||
syncPolicy: | ||
automated: | ||
prune: true | ||
retry: | ||
limit: 1 | ||
backoff: | ||
duration: 5s | ||
factor: 2 | ||
maxDuration: 1m | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters