Skip to content

Commit 0d9f1d2

Browse files
authored
Merge branch 'main' into image-promotion-policy
2 parents efd71d6 + c690247 commit 0d9f1d2

File tree

1,183 files changed

+79532
-29630
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,183 files changed

+79532
-29630
lines changed

.gitbook.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,5 @@ redirects:
7676
user-guide/use-cases/untitled-3: user-guide/use-cases/connect-django-with-mysql-database.md
7777
global-configurations/api-token: user-guide/global-configurations/authorization/api-tokens.md
7878
user-guide/creating-application/workflow/ci-pipeline2: user-guide/creating-application/workflow/ci-pipeline.md
79+
usage/clusters: usage/resource-browser
7980

.github/CODEOWNERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,9 @@ docs/ @ashokdevtron @uxarya-d @prakarsh-dt
99
charts/devtron/ @prakarsh-dt @pawan-mehta-dt @nishant-d
1010
scripts/devtron-reference-helm-charts @prakarsh-dt @pawan-mehta-dt @nishant-d
1111

12+
#Migration scripts
13+
scripts/sql @prakarsh-dt @vikramdevtron @kripanshdevtron @nishant-d
14+
scripts/utilities @prakarsh-dt @nishant-d @pawan-mehta-dt
15+
1216
#Github Specific
1317
.github/ @prakarsh-dt @nishant-d @pawan-mehta-dt

.github/ISSUE_TEMPLATE/pager-duty.yaml

Lines changed: 58 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,66 @@ body:
1818
description: "A clear and concise description of what the bug is."
1919
placeholder: "It bugs out when ..."
2020
- type: dropdown
21-
id: criticality
21+
id: affected-areas
2222
attributes:
23-
label: "Criticality"
24-
description: "How critical is the issue? Please include the impact in the "
23+
label: "Affected areas"
24+
description: "What areas of Devtron are impacted by the issue?"
2525
options:
26-
- P0 - Critical/Blocking
27-
- P1 - High
28-
- P2 - Medium
29-
- P3 - Low
26+
- Devtron dashboard completely down
27+
- Login issues
28+
- RBAC Issues
29+
- CI
30+
- CD
31+
- App creation
32+
- Deployment from Chart store
33+
- Security features
34+
- CI/CD Plugins
35+
- Other CRITICAL functionality
36+
- Other NON-CRITICAL functionality
37+
- type: dropdown
38+
id: additional-affected-areas
39+
attributes:
40+
label: "Additional affected areas"
41+
description: "Are there any additional affected areas?"
42+
options:
43+
- Devtron dashboard completely down
44+
- Login issues
45+
- RBAC Issues
46+
- CI
47+
- CD
48+
- App creation
49+
- Deployment from Chart store
50+
- Security features
51+
- CI/CD Plugins
52+
- Other CRITICAL functionality
53+
- Other NON-CRITICAL functionality
54+
- type: dropdown
55+
id: prod-environment
56+
attributes:
57+
label: "Prod/Non-prod environments?"
58+
description: "Is the issue affecting Prod environments?"
59+
options:
60+
- Prod
61+
- Non-prod
62+
- type: dropdown
63+
id: user-unblocked
64+
attributes:
65+
label: "Is User unblocked?"
66+
description: "Is the User unblocked?"
67+
options:
68+
- 'Yes'
69+
- 'No'
70+
- type: dropdown
71+
id: user-unblocked-reason
72+
attributes:
73+
label: "How was the user un-blocked?"
74+
description: "If the user was unblocked. How was the user un-blocked?"
75+
options:
76+
- TEMPORARILY - By disabling a CRITICAL functionality
77+
- TEMPORARILY - By disabling a NON-CRITICAL functionality
78+
- TEMPORARILY - By doing some changes from the backend/DB
79+
- PERMANENTLY - By giving a workaround (From outside Devtron)
80+
- PERMANENTLY - By giving a workaround (Within Devtron)
3081
- type: textarea
3182
id: impact
3283
validations:
@@ -91,14 +142,6 @@ body:
91142
- Something Else
92143
validations:
93144
required: true
94-
- type: textarea
95-
id: environment
96-
validations:
97-
required: false
98-
attributes:
99-
label: "🧱 Your Environment"
100-
description: "Is your environment customized in any way? Provide your Browser version as well."
101-
placeholder: "I use XYZ for ..."
102145
- type: textarea
103146
id: solution
104147
validations:

.github/workflows/azure-devops-issue-sync.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
uses: danhellem/[email protected]
1414
env:
1515
ado_token: "${{ secrets.ADO_PERSONAL_ACCESS_TOKEN }}"
16-
github_token: "${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}"
16+
github_token: "${{ secrets.GH_SYSTEMSDT_TOKEN }}"
1717
ado_organization: "DevtronLabs"
1818
ado_project: "Devtron"
1919
ado_wit: "Bug"
@@ -26,7 +26,7 @@ jobs:
2626
uses: danhellem/[email protected]
2727
env:
2828
ado_token: "${{ secrets.ADO_PERSONAL_ACCESS_TOKEN }}"
29-
github_token: "${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}"
29+
github_token: "${{ secrets.GH_SYSTEMSDT_TOKEN }}"
3030
ado_organization: "DevtronLabs"
3131
ado_project: "Devtron"
3232
ado_wit: "User Story"
@@ -50,7 +50,7 @@ jobs:
5050
steps:
5151
- uses: wow-actions/potential-duplicates@v1
5252
with:
53-
GITHUB_TOKEN: "${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}"
53+
GITHUB_TOKEN: "${{ secrets.GH_SYSTEMSDT_TOKEN }}"
5454
# Issue title filter work with anymatch https://www.npmjs.com/package/anymatch.
5555
# Any matched issue will stop detection immediately.
5656
# You can specify multi filters in each line.

.github/workflows/chart-sync.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ jobs:
2727
script-file: ${{ secrets.CHART_SYNC_SCRIPT_FILE }}
2828
git-target-repo: ${{ secrets.GIT_TARGET_REPO }}
2929
git-source-repo: ${{ secrets.GIT_SOURCE_REPO }}
30-
git-target-useremail: ${{ secrets.GIT_TARGET_EMAIL }}
31-
git-target-username: ${{ secrets.GIT_TARGET_USERNAME }}
32-
git-target-token: ${{ secrets.GIT_TARGET_TOKEN }}
30+
git-target-useremail: ${{ secrets.GH_SYSTEMSDT_EMAIL }}
31+
git-target-username: ${{ vars.GH_SYSTEMSDT_USERNAME }}
32+
git-target-token: ${{ secrets.GH_SYSTEMSDT_TOKEN }}
3333
git-target-dir: ${{ secrets.GIT_TARGET_DIR }}
3434
git-source-dir: ${{ secrets.GIT_SOURCE_DIR }}
3535
working-dir: ${{ secrets.WORKING_DIR }}

.github/workflows/create-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ jobs:
6262
echo "Not creating release due to beta"
6363
fi
6464
env:
65-
GH_TOKEN: ${{ secrets.GIT_TOKEN }}
65+
GH_TOKEN: ${{ secrets.GH_SYSTEMSDT_TOKEN }}
6666
RELEASE_BRANCH: ${{ secrets.RELEASE_BRANCH }}
67-
GIT_CONFIG_NAME: ${{ secrets.GIT_TARGET_USERNAME }}
68-
GIT_CONFIG_EMAIL: ${{ secrets.GIT_TARGET_EMAIL }}
67+
GIT_CONFIG_NAME: ${{ vars.GH_SYSTEMSDT_USERNAME }}
68+
GIT_CONFIG_EMAIL: ${{ secrets.GH_SYSTEMSDT_EMAIL }}
6969
# Send notification on discord
7070
- name: discord-notify
7171
run: |

.github/workflows/enterprise-repo-sync.yaml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,26 @@ jobs:
1414
sync:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- run: |
17+
- env:
18+
GH_TOKEN: ${{ secrets.GH_SYSTEMSDT_TOKEN }}
19+
GIT_CONFIG_NAME: ${{ vars.GH_SYSTEMSDT_USERNAME }}
20+
GIT_CONFIG_EMAIL: ${{ secrets.GH_SYSTEMSDT_EMAIL }}
21+
run: |
1822
export GIT_USERNAME="${GIT_CONFIG_NAME}"
1923
export GIT_PASSWORD="${GH_TOKEN}"
2024
export ENTERPRISE_REPO="https://${GIT_USERNAME}:${GIT_PASSWORD}@github.com/devtron-labs/devtron-enterprise.git"
2125
git clone https://github.com/devtron-labs/devtron
2226
git clone $ENTERPRISE_REPO
23-
2427
cd devtron && export GIT_COMMIT_ID=`git log --format="%H" -n 1`
25-
2628
export GIT_COMMIT=${GIT_COMMIT_ID:0:8}
2729
echo $GIT_COMMIT
2830
git config --global user.email $GIT_CONFIG_EMAIL
2931
git config --global user.name $GIT_USERNAME
30-
3132
git status && git checkout main && git pull
32-
3333
cd ../devtron-enterprise && git status && git checkout main && git pull
3434
git remote add oss-devtron ../devtron && git remote -v && git remote update && git merge oss-devtron/main
3535
export WIRE_GEN_FILE_NAME="wire_gen.go"
3636
export CONFLICT_FILES=`git diff --name-only --diff-filter=U --relative`
37-
3837
if [[ $WIRE_GEN_FILE_NAME = $CONFLICT_FILES ]]
3938
then
4039
rm $WIRE_GEN_FILE_NAME
@@ -49,7 +48,3 @@ jobs:
4948
git checkout -b oss-enterprise-sync-$GIT_COMMIT && git push -u origin oss-enterprise-sync-$GIT_COMMIT
5049
PR_RESPONSE=$(gh pr create --title "SYNC: OSS sync for $GIT_COMMIT" --fill --base main --head oss-enterprise-sync-$GIT_COMMIT --repo $ENTERPRISE_REPO)
5150
echo "FINAL PR RESPONSE: $PR_RESPONSE"
52-
env:
53-
GH_TOKEN: ${{ secrets.GIT_TARGET_TOKEN }}
54-
GIT_CONFIG_NAME: ${{ secrets.GIT_TARGET_USERNAME }}
55-
GIT_CONFIG_EMAIL: ${{ secrets.GIT_TARGET_EMAIL }}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Issue Created
2+
on:
3+
issues:
4+
types: [opened]
5+
6+
jobs:
7+
extract-issue-body:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout repository
11+
uses: actions/checkout@v2
12+
13+
- name: Set up Python
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: '3.x'
17+
18+
- name: Check if pager-duty template is used
19+
if: ${{ contains(github.event.issue.labels.*.name, 'pager-duty') && contains(github.event.issue.labels.*.name, 'bug') }}
20+
run: |
21+
echo "Issue was created using pager-duty template"
22+
python3 scripts/utilities/github_pagerduty_issue_score_calculation.py
23+
env:
24+
ISSUE_NUMBER: ${{ github.event.issue.number }}
25+
ISSUE_BODY: ${{ github.event.issue.body }}
26+
GITHUB_TOKEN: ${{ github.token }}
27+
PAGERDUTY_SCORE_THRESHOLD: ${{ vars.PAGERDUTY_SCORE_THRESHOLD }}

.github/workflows/pager-duty-issue-escalate.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
- name: List issues with 'pager-duty' label
1717
env:
18-
GITHUB_TOKEN: ${{ secrets.GIT_TARGET_TOKEN }}
18+
GITHUB_TOKEN: ${{ secrets.GH_SYSTEMSDT_TOKEN }}
1919
run: |
2020
issues=$(curl -s -H "Authorization: Bearer $GITHUB_TOKEN" \
2121
-H "Accept: application/vnd.github.v3+json" \
@@ -39,7 +39,7 @@ jobs:
3939
assignee3="vivek-devtron"
4040
4141
curl -X POST \
42-
-H "Authorization: token ${{ secrets.GIT_TARGET_TOKEN }}" \
42+
-H "Authorization: token ${{ secrets.GH_SYSTEMSDT_TOKEN }}" \
4343
-H "Accept: application/vnd.github.v3+json" \
4444
-d "{\"assignees\": [\"$assignee1\", \"$assignee2\", \"$assignee3\"]}" \
4545
"https://api.github.com/repos/${{ github.repository }}/issues/$issue_number/assignees"

.github/workflows/update-release-notes.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ jobs:
5757
git commit -am "Updated release notes"
5858
git push https://${GIT_CONFIG_NAME}:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY} $RELEASE_NOTES_BRANCH
5959
env:
60-
GH_TOKEN: ${{ secrets.GIT_TOKEN }}
61-
GIT_CONFIG_NAME: ${{ secrets.GIT_TARGET_USERNAME }}
62-
GIT_CONFIG_EMAIL: ${{ secrets.GIT_TARGET_EMAIL }}
60+
GH_TOKEN: ${{ secrets.GH_SYSTEMSDT_TOKEN }}
61+
GIT_CONFIG_NAME: ${{ vars.GH_SYSTEMSDT_USERNAME }}
62+
GIT_CONFIG_EMAIL: ${{ secrets.GH_SYSTEMSDT_EMAIL }}

0 commit comments

Comments
 (0)