Skip to content

Commit 5f43eb2

Browse files
authored
doc: Edit Deployment Chart Schema (#5735)
* Edit Deployment Chart Schema * Fixes * PM + CO Feedback Incorporated
1 parent 827608f commit 5f43eb2

File tree

6 files changed

+81
-20
lines changed

6 files changed

+81
-20
lines changed

.gitbook.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ redirects:
1616
setup/upgrade/devtron-upgrade-0.2.x-0.3.x: getting-started/upgrade/devtron-upgrade-0.2.x-0.3.x
1717
setup/global-configurations: user-guide/global-configurations/README.md
1818
setup/global-configurations/gitops: user-guide/global-configurations/gitops.md
19-
setup/global-configurations/custom-charts: user-guide/global-configurations/custom-charts.md
19+
setup/global-configurations/custom-charts: user-guide/global-configurations/deployment-charts.md
2020
setup/global-configurations/user-access: user-guide/global-configurations/authorization/user-access.md
2121
setup/global-configurations/external-links: user-guide/global-configurations/external-links.md
2222
setup/global-configurations/projects: user-guide/global-configurations/projects.md
@@ -127,4 +127,5 @@ redirects:
127127
user-guide/clusters: user-guide/resource-browser.md
128128
usage/clusters: user-guide/resource-browser.md
129129
global-configurations/authorization/sso-login/okta: user-guide/global-configurations/authorization/sso/okta.md
130-
usage/applications/creating-application/ci-pipeline/ci-build-pre-post-plugins: user-guide/creating-application/workflow/ci-build-pre-post-plugins.md
130+
usage/applications/creating-application/ci-pipeline/ci-build-pre-post-plugins: user-guide/creating-application/workflow/ci-build-pre-post-plugins.md
131+
global-configurations/custom-charts: user-guide/global-configurations/deployment-charts.md

docs/SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* [Git Accounts](user-guide/global-configurations/git-accounts.md)
2525
* [Container/OCI Registry](user-guide/global-configurations/container-registries.md)
2626
* [Chart Repositories](user-guide/global-configurations/chart-repo.md)
27-
* [Custom Charts](user-guide/global-configurations/custom-charts.md)
27+
* [Deployment Charts](user-guide/global-configurations/deployment-charts.md)
2828
* [Authorization](user-guide/global-configurations/authorization/README.md)
2929
* [SSO Login Services](user-guide/global-configurations/sso-login.md)
3030
* [Google](user-guide/global-configurations/authorization/sso/google.md)

docs/reference/glossary.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ Temporarily marking a node as unschedulable, preventing new pods from being assi
6464

6565
CronJob is used to create Jobs on a repeating schedule. It is commonly used for running periodic tasks with no manual intervention. In Devtron, you can view a list of cronjobs by going to Resource Browser → (choose a cluster) → Workloads → CronJob. [Read More...](../user-guide/creating-application/deployment-template/job-and-cronjob.md#2.-cronjob)
6666

67-
### Custom Charts
67+
### Deployment Charts
6868

69-
Devtron offers a variety of ready-made Helm charts for common tasks and functions. If you have a specific need that isn't met by these preconfigured charts, super-admins have the permission to upload their own custom charts. Once uploaded, these custom charts become accessible for use by all users on the Devtron platform. [Read More...](../user-guide/global-configurations/custom-charts.md)
69+
Devtron offers a variety of ready-made Helm charts for common tasks and functions. If you have a specific need that isn't met by these preconfigured charts, super-admins have the permission to upload their own charts. Once uploaded, these charts become accessible for use by all users on the Devtron platform. [Read More...](../user-guide/global-configurations/deployment-charts.md)
7070

7171
### DaemonSet
7272

docs/user-guide/creating-application/deployment-template.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Users need to have [Admin role](../user-guide/global-configurations/authorizatio
2323

2424
{% hint style="warning" %}
2525
### Note
26-
After you select and save a chart type for a given application, you won't be able to change it later. Make sure to choose the correct chart type before saving. You can select a chart from [Devtron Charts](#from-devtron-charts) or [Custom Charts](#from-custom-charts).
26+
After you select and save a chart type for a given application, you won't be able to change it later. Make sure to choose the correct chart type before saving. You can select a chart from [Devtron Charts](#from-devtron-charts) or other [Deployment Charts](#from-deployment-charts).
2727
{% endhint %}
2828

2929
### From Devtron Charts
@@ -37,10 +37,10 @@ You can select a default deployment chart from the following options:
3737

3838
![](https://devtron-public-asset.s3.us-east-2.amazonaws.com/images/creating-application/deployment-template/select-devtron-chart.gif)
3939

40-
### From Custom Charts
40+
### From Deployment Charts
4141

4242
{% hint style="warning" %}
43-
This option will be available only if a custom chart exists. If it doesn't, a user with `super admin` permission may upload one in [Global Configurations → Custom Charts](../global-configurations/custom-charts.md).
43+
This option will be available only if a custom chart exists. If it doesn't, a user with `super admin` permission may upload one in [Global Configurations → Deployment Charts](../global-configurations/deployment-charts.md).
4444
{% endhint %}
4545

4646
You can select an available custom chart as shown below. You can also view the description of the custom charts in the list.
@@ -110,20 +110,26 @@ Click **Save Changes**. If you want to do additional configurations, then click
110110

111111
{% hint style="warning" %}
112112
### Who Can Perform This Action?
113-
Superadmin can define and apply custom deployment schema using API
113+
Superadmin can define and apply custom deployment schema.
114114
{% endhint %}
115115

116116
By default, the `Basic (GUI)` section comes with multiple predefined fields as seen earlier [in the table](#2-basic-configuration). However, if you wish to display a different set of fields to your team, you can modify the whole section as per your requirement.
117117

118-
{% embed url="https://www.youtube.com/watch?v=09VP1I-WvUs" caption="JSON-driven Deployment Schema" %}
119-
120118
This is useful in scenarios where:
121119
* Your team members find it difficult to understand and edit the [Advanced (YAML)](#3-advanced-yaml) section.
122120
* You frequently edit certain fields in Advanced (YAML), which you expect to remain easily accessible in Basic (GUI) section.
123121
* You don't require some fields in Basic (GUI) section.
124122
* You need the autonomy to keep the Basic (GUI) unique for applications/clusters/environments/charts, or display the same Basic (GUI) everywhere.
125123

126-
This is possible by passing a custom JSON (deployment schema) of your choice through the following API. You may need to run the API with the `POST` method if you are doing it for the first time.
124+
{% hint style="info" %}
125+
There are two ways you can customize the Basic GUI, use any one of the following:
126+
1. From [Deployment Charts](../global-configurations/deployment-charts.md#editing-gui-schema-of-deployment-charts) section
127+
2. Using APIs (explained below)
128+
{% endhint %}
129+
130+
{% embed url="https://www.youtube.com/watch?v=09VP1I-WvUs" caption="JSON-driven Deployment Schema" %}
131+
132+
You can pass a custom JSON (deployment schema) of your choice through the following API. You may need to run the API with the `POST` method if you are doing it for the first time.
127133

128134
```
129135
PUT {{DEVTRON_BASEURL}}/orchestrator/deployment/template/schema

docs/user-guide/global-configurations/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Before you start creating an application, we recommend to provide basic informat
1818

1919
[Chart Repositories](chart-repo.md)
2020

21-
[Custom Charts](custom-charts.md)
21+
[Deployment Charts](deployment-charts.md)
2222

2323
[Authorization](authorization/README.md)
2424

docs/user-guide/global-configurations/custom-charts.md renamed to docs/user-guide/global-configurations/deployment-charts.md

Lines changed: 61 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Custom Charts
1+
# Deployment Charts
22

33
Devtron includes predefined helm charts that cover the majority of use cases.
44
For any use case not addressed by the default helm charts, you can upload your own helm chart and use it as a custom chart in Devtron.
@@ -8,7 +8,7 @@ For any use case not addressed by the default helm charts, you can upload your o
88

99
> A super admin can upload multiple versions of a custom helm chart.
1010
11-
![Custom charts](https://devtron-public-asset.s3.us-east-2.amazonaws.com/custom-charts/custom-charts-lists.png)
11+
![Figure 1: Deployment Charts](https://devtron-public-asset.s3.us-east-2.amazonaws.com/images/global-configurations/deployment-charts/gc-deployment-charts.jpg)
1212

1313
## Prerequisites
1414

@@ -99,7 +99,9 @@ helm package my-custom-chart
9999
100100
The above command will create a `my-custom-chart-0.1.0.tgz` file.
101101
102-
## Uploading a custom chart
102+
---
103+
104+
## Uploading a Deployment Chart
103105
104106
> A custom chart can only be uploaded by a super admin.
105107
@@ -142,21 +144,73 @@ The following are the validation results:
142144
143145
![Already exists](https://devtron-public-asset.s3.us-east-2.amazonaws.com/custom-charts/List+-+Empty-1.png)
144146
145-
## View the custom charts
147+
---
148+
149+
## Viewing Deployment Charts
146150
147151
> All users can view the custom charts.
148152
149-
To view a list of available custom charts, go to **Global Configurations > Custom charts** page.
153+
To view the list of available custom charts, go to **Global Configurations → Deployment Charts** page.
150154
151155
* The charts can be searched with their name, version, or description.
152156
* New [custom charts can be uploaded](#uploading-a-custom-chart) by selecting **Upload chart**.
153157
154-
![Custom charts](https://devtron-public-asset.s3.us-east-2.amazonaws.com/custom-charts/custom-charts-lists.png)
158+
![Custom charts](https://devtron-public-asset.s3.us-east-2.amazonaws.com/images/global-configurations/deployment-charts/upload-custom-chart.jpg)
159+
160+
---
155161
156-
## Use the custom chart in an application
162+
## Using Deployment Chart in Application
157163
158164
The custom charts can be used from the [Deployment Template](../creating-application/deployment-template.md) section.
159165
160166
> **Info**:
161167
>
162168
> The deployment strategy for a custom chart is fetched from the custom chart template and cannot be configured in the [CD pipeline](../creating-application/workflow/cd-pipeline.md#deployment-strategies).
169+
170+
---
171+
172+
## Editing GUI Schema of Deployment Charts [![](https://devtron-public-asset.s3.us-east-2.amazonaws.com/images/elements/EnterpriseTag.svg)](https://devtron.ai/pricing)
173+
174+
{% hint style="warning" %}
175+
### Who Can Perform This Action?
176+
Only superadmins can edit the GUI schema of deployment charts.
177+
{% endhint %}
178+
179+
{% hint style="info" %}
180+
### Reference
181+
This section is an extension of [Customize Basic GUI](../creating-application/deployment-template.md#customize-basic-gui) feature within **App Configuration****Base Deployment Template**. Refer the document to know more about the significance of having a customizable GUI schema for your deployment templates.
182+
{% endhint %}
183+
184+
You can edit the GUI schema of both the deployment charts:
185+
1. Charts provided by Devtron (*Deployment*, *Job & CronJob*, *Rollout Deployment*, and *StatefulSet*)
186+
2. Custom charts uploaded by you
187+
188+
### Tutorial
189+
190+
{% embed url="https://www.youtube.com/watch?v=93tGIsM1qC8" caption="JSON-driven Deployment Schema" %}
191+
192+
### Steps
193+
194+
In this example, we will edit the Deployment chart type provided by Devtron.
195+
196+
1. Click the edit button next to the chart as shown below.
197+
198+
![Edit GUI Schema Button](https://devtron-public-asset.s3.us-east-2.amazonaws.com/images/global-configurations/deployment-charts/edit-chart-schema.jpg)
199+
200+
2. A GUI schema is available for you to edit in case of Devtron charts. In case of custom charts, you may have to define a GUI schema yourself. To know how to create such GUI schema, refer [RJSF JSON Schema Tool](https://rjsf-team.github.io/react-jsonschema-form/).
201+
202+
![Editable Schema](https://devtron-public-asset.s3.us-east-2.amazonaws.com/images/global-configurations/deployment-charts/gui-schema.jpg)
203+
204+
3. You may start editing the schema by excluding existing fields/objects or including more of them. Click the **Refer YAML** button to view all the supported fields.
205+
206+
![Refer YAML Button](https://devtron-public-asset.s3.us-east-2.amazonaws.com/images/global-configurations/deployment-charts/refer-yaml.gif)
207+
208+
4. While editing the schema, you may use the **Preview GUI** option for a real-time preview of your changes.
209+
210+
![Preview GUI Button](https://devtron-public-asset.s3.us-east-2.amazonaws.com/images/global-configurations/deployment-charts/preview-gui.gif)
211+
212+
5. Click **Save Changes**.
213+
214+
![Save Changes](https://devtron-public-asset.s3.us-east-2.amazonaws.com/images/global-configurations/deployment-charts/save-changes.jpg)
215+
216+
Next, if you go to **App Configuration****Base Deployment Template**, you will be able to see the deployment template fields (in Basic GUI) as per your customized schema.

0 commit comments

Comments
 (0)