Skip to content

Commit 3af7803

Browse files
committed
Merge branch 'main' of github.com:devtron-labs/dashboard into feature/canary-visibility
2 parents 0646195 + 88ce0c3 commit 3af7803

File tree

187 files changed

+4761
-4086
lines changed

Some content is hidden

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

187 files changed

+4761
-4086
lines changed

.env

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ ENABLE_RESTART_WORKLOAD=false
3232
ENABLE_SCOPED_VARIABLES=true
3333
DEFAULT_CI_TRIGGER_TYPE_MANUAL=false
3434
ANNOUNCEMENT_BANNER_MSG=
35+
ANNOUNCEMENT_BANNER_TYPE=help
36+
ANNOUNCEMENT_BANNER_BUTTON_TEXT=
37+
ANNOUNCEMENT_BANNER_BUTTON_LINK=
3538
HIDE_DEFAULT_CLUSTER=false
3639
GLOBAL_API_TIMEOUT=60000
3740
TRIGGER_API_TIMEOUT=60000
@@ -67,3 +70,4 @@ GATEKEEPER_URL=https://license.devtron.ai/dashboard
6770
FEATURE_AI_INTEGRATION_ENABLE=false
6871
LOGIN_PAGE_IMAGE=
6972
FEATURE_MANAGE_TRAFFIC_ENABLE=false
73+
FEATURE_REDFISH_NODE_ENABLE=false

.eslintignore

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
vite.config.mts
77

88
# The following files have eslint errors/warnings
9-
src/App.tsx
109
src/Pages/GlobalConfigurations/Authorization/APITokens/__tests__/ApiTokens.test.tsx
1110
src/components/AppSelector/ChartSelector.tsx
1211
src/components/ApplicationGroup/AppGroup.service.ts
@@ -50,7 +49,6 @@ src/components/CIPipelineN/ciPipeline.utils.tsx
5049
src/components/ClusterNodes/ClusterEvents.tsx
5150
src/components/ClusterNodes/ClusterManifest.tsx
5251
src/components/ClusterNodes/ClusterNodeEmptyStates.tsx
53-
src/components/ClusterNodes/ClusterOverview.tsx
5452
src/components/ClusterNodes/NodeActions/EditTaintsModal.tsx
5553
src/components/ClusterNodes/NodeActions/NodeActionsMenu.tsx
5654
src/components/ClusterNodes/NodeActions/validationRules.ts
@@ -206,7 +204,6 @@ src/components/ciPipeline/ciPipeline.service.ts
206204
src/components/ciPipeline/validationRules.ts
207205
src/components/cluster/Cluster.tsx
208206
src/components/cluster/ClusterComponentModal.tsx
209-
src/components/cluster/ClusterForm.tsx
210207
src/components/cluster/ClusterInfoStepsModal.tsx
211208
src/components/cluster/ClusterInstallStatus.tsx
212209
src/components/cluster/UseNameListDropdown.tsx
@@ -327,7 +324,6 @@ src/components/v2/appDetails/ReleaseStatusEmptyState.tsx
327324
src/components/v2/appDetails/SyncError.component.tsx
328325
src/components/v2/appDetails/__tests__/index.store.test.ts
329326
src/components/v2/appDetails/appDetails.api.ts
330-
src/components/v2/appDetails/appDetails.type.ts
331327
src/components/v2/appDetails/ea/EAAppDetail.component.tsx
332328
src/components/v2/appDetails/k8Resource/FilterResource.tsx
333329
src/components/v2/appDetails/k8Resource/nodeDetail/EphemeralContainerDrawer.tsx
@@ -364,7 +360,6 @@ src/components/v2/devtronStackManager/DevtronStackManager.service.tsx
364360
src/components/v2/devtronStackManager/DevtronStackManager.tsx
365361
src/components/v2/devtronStackManager/DevtronStackManager.utils.ts
366362
src/components/v2/devtronStackManager/SuccessModalComponent.tsx
367-
src/components/v2/headers/AppHeader.component.tsx
368363
src/components/v2/headers/ChartHeader.component.tsx
369364
src/components/v2/headers/EAHeader.component.tsx
370365
src/components/v2/index.tsx

.github/workflows/pr-issue-validator.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
name: Validate Pull Request
32

43
on:
@@ -141,4 +140,4 @@ jobs:
141140
gh pr edit $PRNUM --add-label "PR:Issue-verification-failed"
142141
gh pr edit $PRNUM --remove-label "PR:Ready-to-Review"
143142
exit 1
144-
fi
143+
fi

Dockerfile

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,42 @@
11
FROM node:20-alpine AS builder
22

3-
RUN apk add --no-cache git
4-
53
WORKDIR /app
6-
COPY package.json .
7-
COPY yarn.lock .
84

5+
COPY package.json yarn.lock .
6+
7+
RUN apk add --no-cache git
98
RUN yarn install --frozen-lockfile --network-timeout 600000
109

11-
COPY src/ src
12-
COPY nginx.conf .
13-
COPY tsconfig.json .
14-
COPY vite.config.mts .
1510
COPY . .
1611

17-
RUN echo `git rev-parse --short=9 HEAD` > health.html
12+
RUN echo `git rev-parse --short HEAD` > health.html && \
13+
echo "SENTRY_RELEASE_VERSION=dashboard@$(git rev-parse --short HEAD)" >> .env && \
14+
yarn build
1815

19-
RUN echo "SENTRY_RELEASE_VERSION=dashboard@$(git rev-parse --short HEAD)\n" >> .env
16+
FROM fholzer/nginx-brotli:v1.26.2
2017

21-
RUN yarn build
18+
# Install bash
19+
RUN apk add --no-cache bash shadow
2220

23-
FROM nginx:stable
21+
RUN useradd -m -s /bin/bash devtron
2422

25-
RUN useradd -ms /bin/bash devtron
2623
COPY --from=builder /app/dist/ /usr/share/nginx/html
2724
COPY ./nginx.conf /etc/nginx/nginx.conf
2825
COPY ./nginx-default.conf /etc/nginx/conf.d/default.conf
26+
2927
WORKDIR /usr/share/nginx/html
30-
COPY --from=builder /app/./env.sh .
31-
COPY --from=builder /app/.env .
32-
COPY --from=builder /app/health.html .
3328

34-
RUN chown -R devtron:devtron /usr/share/nginx/html
35-
# Make our shell script executable
36-
RUN chmod +x env.sh
29+
30+
COPY --from=builder /app/env.sh .
31+
COPY --from=builder /app/.env .
32+
COPY --from=builder /app/health.html .
33+
34+
RUN chown -R devtron:devtron /usr/share/nginx/html && \
35+
chmod +x env.sh
36+
3737
USER devtron
38-
CMD ["/bin/bash", "-c", "/usr/share/nginx/html/env.sh && nginx -g \"daemon off;\""]
38+
39+
# Override the default ENTRYPOINT to allow shell scripting as fholzer/nginx-brotli has by-default entrypoint of nginx
40+
ENTRYPOINT ["/bin/bash", "-c"]
41+
42+
CMD ["./env.sh && nginx -g 'daemon off;'"]

nginx.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ http {
2020
#tcp_nopush on;
2121
keepalive_timeout 65;
2222

23+
# gzip compression
2324
gzip on;
2425
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml;
2526
gzip_vary on;
@@ -28,5 +29,11 @@ http {
2829
gzip_comp_level 6;
2930
gzip_static on;
3031

32+
# btrotli compression
33+
brotli on;
34+
brotli_comp_level 6;
35+
brotli_static on;
36+
brotli_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml;
37+
3138
include /etc/nginx/conf.d/*.conf;
3239
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"homepage": "/dashboard",
66
"dependencies": {
7-
"@devtron-labs/devtron-fe-common-lib": "1.13.0-beta-11",
7+
"@devtron-labs/devtron-fe-common-lib": "1.14.1",
88
"@esbuild-plugins/node-globals-polyfill": "0.2.3",
99
"@rjsf/core": "^5.13.3",
1010
"@rjsf/utils": "^5.13.3",

0 commit comments

Comments
 (0)