Skip to content

Commit 352947c

Browse files
authored
Merge branch 'develop' into fix/edit-taints-modal
2 parents 91f3b28 + fad5761 commit 352947c

File tree

14 files changed

+13678
-8610
lines changed

14 files changed

+13678
-8610
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
cache: 'yarn'
2626

2727
- name: Install dependencies
28-
run: yarn install --frozen-lockfile
28+
run: yarn install --immutable
2929

3030
- name: Check linting issues
3131
run: yarn lint

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20.11.0
1+
v22

.yarn/releases/yarn-4.9.2.cjs

Lines changed: 942 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
nodeLinker: node-modules
2+
3+
yarnPath: .yarn/releases/yarn-4.9.2.cjs

Dockerfile

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

33
WORKDIR /app
44

5-
COPY package.json yarn.lock .
5+
RUN corepack enable yarn && \
6+
yarn set version 4.9.2
7+
8+
COPY package.json .
9+
COPY yarn.lock .
10+
COPY .yarn/ .yarn/
11+
COPY .yarnrc.yml ./
612

713
RUN apk add --no-cache git
8-
RUN yarn install --frozen-lockfile --network-timeout 600000
14+
RUN yarn install --immutable --network-timeout 600000
915

1016
COPY . .
1117

package.json

Lines changed: 8 additions & 8 deletions
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.15.3",
7+
"@devtron-labs/devtron-fe-common-lib": "1.15.3-pre-4",
88
"@esbuild-plugins/node-globals-polyfill": "0.2.3",
99
"@rjsf/core": "^5.13.3",
1010
"@rjsf/utils": "^5.13.3",
@@ -14,7 +14,6 @@
1414
"@sentry/tracing": "7.50.0",
1515
"@tippyjs/react": "4.2.6",
1616
"@typeform/embed-react": "2.20.0",
17-
"@vitejs/plugin-react": "4.3.1",
1817
"command-line-parser": "^0.2.10",
1918
"compute-histogram": "^0.9.11",
2019
"dayjs": "^1.11.8",
@@ -39,9 +38,6 @@
3938
"rxjs": "^7.5.4",
4039
"sockjs-client": "1.6.1",
4140
"tippy.js": "^6.3.7",
42-
"vite": "5.4.19",
43-
"vite-plugin-require-transform": "1.0.21",
44-
"vite-plugin-svgr": "^2.4.0",
4541
"xterm": "^4.19.0",
4642
"xterm-addon-fit": "^0.5.0",
4743
"xterm-addon-search": "^0.9.0",
@@ -87,6 +83,7 @@
8783
"@types/recompose": "^0.30.10",
8884
"@typescript-eslint/eslint-plugin": "8.3.0",
8985
"@typescript-eslint/parser": "8.3.0",
86+
"@vitejs/plugin-react": "4.5.2",
9087
"env-cmd": "10.1.0",
9188
"eslint": "^8.57.1",
9289
"eslint-config-airbnb": "^19.0.4",
@@ -115,9 +112,11 @@
115112
"ts-jest": "29.2.5",
116113
"ts-node": "10.9.2",
117114
"typescript": "5.5.4",
118-
"vite-plugin-compression2": "^1.3.3",
119-
"vite-plugin-image-optimizer": "^1.1.8",
115+
"vite": "6.3.5",
116+
"vite-plugin-compression2": "2.0.1",
120117
"vite-plugin-pwa": "^0.21.1",
118+
"vite-plugin-require-transform": "1.0.21",
119+
"vite-plugin-svgr": "^2.4.0",
121120
"vite-tsconfig-paths": "5.0.1"
122121
},
123122
"jest": {
@@ -139,5 +138,6 @@
139138
"rollup": "^4.22.4",
140139
"path-to-regexp": "^1.9.0",
141140
"cross-spawn": "^7.0.5"
142-
}
141+
},
142+
"packageManager": "[email protected]"
143143
}

src/components/ResourceBrowser/ResourceList/ClusterSelector.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ import ReactSelect, { Props as SelectProps, SelectInstance } from 'react-select'
2121
import {
2222
APP_SELECTOR_STYLES,
2323
AppSelectorDropdownIndicator,
24+
Badge,
25+
ComponentSizeType,
2426
DocLink,
2527
DocLinkProps,
2628
Icon,
@@ -114,7 +116,7 @@ const ClusterSelector: React.FC<ClusterSelectorType> = ({
114116
}}
115117
/>
116118

117-
{defaultOption?.isProd && <span className="px-6 py-2 br-4 bcb-1 cb-7 fs-12 lh-16 fw-5">Production</span>}
119+
{defaultOption?.isProd && <Badge label="Production" size={ComponentSizeType.xxs} />}
118120

119121
{defaultOption?.value !== String(DEFAULT_CLUSTER_ID) && (
120122
<PopupMenu autoClose>

src/components/cdPipeline/BuildCD.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export default function BuildCD({
8080
isGitOpsRepoNotConfigured,
8181
noGitOpsModuleInstalledAndConfigured,
8282
releaseMode,
83+
isCustomChart,
8384
getMandatoryPluginData,
8485
migrateToDevtronFormState,
8586
setMigrateToDevtronFormState,
@@ -671,7 +672,7 @@ export default function BuildCD({
671672
}
672673

673674
const renderAdvancedDeploymentStrategy = () => {
674-
if (noStrategyAvailable.current || releaseMode === ReleaseMode.MIGRATE_EXTERNAL_APPS) {
675+
if (noStrategyAvailable.current || (releaseMode === ReleaseMode.MIGRATE_EXTERNAL_APPS && isCustomChart)) {
675676
return null
676677
}
677678

src/components/cdPipeline/CDPipeline.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ export default function CDPipeline({
179179
deploymentAppType: window._env_.HIDE_GITOPS_OR_HELM_OPTION ? '' : DeploymentAppTypes.HELM,
180180
deploymentAppName: '',
181181
releaseMode: ReleaseMode.NEW_DEPLOYMENT,
182+
isCustomChart: false,
182183
triggerType: TriggerType.Auto,
183184
strategies: [],
184185
savedStrategies: [],
@@ -601,6 +602,7 @@ export default function CDPipeline({
601602
form.name = pipelineConfigFromRes.name
602603
form.deploymentAppName = pipelineConfigFromRes.deploymentAppName
603604
form.releaseMode = pipelineConfigFromRes.releaseMode
605+
form.isCustomChart = pipelineConfigFromRes.isCustomChart
604606
form.environmentName = pipelineConfigFromRes.environmentName || ''
605607
form.namespace = env.namespace
606608
form.repoName = pipelineConfigFromRes.repoName
@@ -731,7 +733,7 @@ export default function CDPipeline({
731733
environmentId: formData.environmentId,
732734
namespace: formData.namespace,
733735
id: +cdPipelineId,
734-
strategies: formData.releaseMode === ReleaseMode.MIGRATE_EXTERNAL_APPS ? [] : formData.savedStrategies,
736+
strategies: formData.releaseMode === ReleaseMode.MIGRATE_EXTERNAL_APPS && formData.isCustomChart ? [] : formData.savedStrategies,
735737
parentPipelineType,
736738
parentPipelineId: +parentPipelineId,
737739
isClusterCdActive: formData.isClusterCdActive,
@@ -1369,6 +1371,7 @@ export default function CDPipeline({
13691371
isGitOpsRepoNotConfigured={isGitOpsRepoNotConfigured}
13701372
noGitOpsModuleInstalledAndConfigured={noGitOpsModuleInstalledAndConfigured}
13711373
releaseMode={formData.releaseMode}
1374+
isCustomChart={formData.isCustomChart}
13721375
getMandatoryPluginData={getMandatoryPluginData}
13731376
migrateToDevtronFormState={migrateToDevtronFormState}
13741377
setMigrateToDevtronFormState={setMigrateToDevtronFormState}

src/components/cdPipeline/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ export interface BuildCDProps
9191
isWebhookCD: boolean
9292
dockerRegistries: any[]
9393
releaseMode: ReleaseMode
94+
isCustomChart: boolean
9495
getMandatoryPluginData: (
9596
form: PipelineFormType,
9697
requiredPluginIds?: PluginDetailPayloadType['pluginIds'],

0 commit comments

Comments
 (0)