Skip to content

Commit 4ede888

Browse files
authored
Merge pull request #2798 from devtron-labs/feat/external-flux
feat: external flux
2 parents a1f53f7 + 7ecbec6 commit 4ede888

File tree

84 files changed

+16859
-10364
lines changed

Some content is hidden

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

84 files changed

+16859
-10364
lines changed

.eslintignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ src/components/ciPipeline/ConfigureWebhook.tsx
189189
src/components/ciPipeline/ExternalCIPipeline.tsx
190190
src/components/ciPipeline/LinkedCIPipelineEdit.tsx
191191
src/components/ciPipeline/LinkedCIPipelineView.tsx
192-
src/components/ciPipeline/SourceMaterials.tsx
193192
src/components/ciPipeline/Webhook/WebhookDetailsModal.tsx
194193
src/components/ciPipeline/Webhook/webhook.service.ts
195194
src/components/ciPipeline/Webhook/webhook.utils.ts
@@ -239,7 +238,6 @@ src/components/common/hooks/__tests__/FileReader.test.tsx
239238
src/components/common/icons/Icons.tsx
240239
src/components/common/lineChart/lineChart.tsx
241240
src/components/common/navigation/Navigation.tsx
242-
src/components/common/navigation/NavigationRoutes.tsx
243241
src/components/dockerRegistry/Docker.tsx
244242
src/components/dockerRegistry/ManageRegistry.tsx
245243
src/components/dockerRegistry/service.tsx

.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 & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
1-
FROM node:20-alpine AS builder
2-
3-
RUN apk add --no-cache git
1+
FROM node:22-alpine AS builder
42

53
WORKDIR /app
4+
5+
RUN corepack enable yarn && \
6+
yarn set version 4.9.2
7+
68
COPY package.json .
79
COPY yarn.lock .
10+
COPY .yarn/ .yarn/
11+
COPY .yarnrc.yml ./
812

9-
RUN yarn install --frozen-lockfile --network-timeout 600000
13+
RUN apk add --no-cache git
14+
RUN yarn install --immutable --network-timeout 600000
1015

1116
COPY src/ src
1217
COPY nginx.conf .

index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
display: flex;
3939
justify-content: center;
4040
align-items: center;
41+
/* cannot use --bg-primary here, so using rgb */
42+
background: rgb(30, 31, 40);
4143
"
4244
>
4345
<svg width="80" height="80" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">

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.16.0-beta-1",
7+
"@devtron-labs/devtron-fe-common-lib": "1.16.0-pre-3",
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/App.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ const App = () => {
170170
</Switch>
171171
<div id="visible-modal" />
172172
<div id="visible-modal-2" />
173-
<div id="animated-dialog-backdrop" />
174173
</BreadcrumbStore>
175174
</ErrorBoundary>
176175
)
@@ -179,9 +178,7 @@ const App = () => {
179178
<div className={customThemeClassName}>
180179
<Suspense fallback={null}>
181180
{validating ? (
182-
<div className="full-height-width">
183-
<DevtronProgressing parentClasses="h-100 flex bg__primary" classes="icon-dim-80" />
184-
</div>
181+
<DevtronProgressing parentClasses="full-height-width flex bg__primary" classes="icon-dim-80" />
185182
) : (
186183
renderRoutesWithErrorBoundary()
187184
)}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import { DeploymentAppTypes } from '@devtron-labs/devtron-fe-common-lib'
2+
3+
import { DeploymentAppRadioGroup } from '@Components/v2/values/chartValuesDiff/ChartValuesView.component'
4+
5+
import { CDPipelineDeploymentAppTypeProps } from './types'
6+
7+
export const CDPipelineDeploymentAppType = ({
8+
isVirtualEnvironment,
9+
allowedDeploymentTypes,
10+
noGitOpsModuleInstalledAndConfigured,
11+
isGitOpsInstalledButNotConfigured,
12+
deploymentAppType,
13+
rootClassName,
14+
isDisabled,
15+
handleChange,
16+
isGitOpsRepoNotConfigured,
17+
gitOpsRepoConfigInfoBar,
18+
}: CDPipelineDeploymentAppTypeProps) =>
19+
!window._env_.HIDE_GITOPS_OR_HELM_OPTION &&
20+
!isVirtualEnvironment &&
21+
allowedDeploymentTypes?.length > 0 &&
22+
// Want to show this when gitops module is installed, does not matter if it is configured or not
23+
(!noGitOpsModuleInstalledAndConfigured || isGitOpsInstalledButNotConfigured) && (
24+
<div className="mt-16">
25+
{/* eslint-disable-next-line jsx-a11y/label-has-associated-control */}
26+
<label className="form__label form__label--sentence">How do you want to deploy?</label>
27+
<DeploymentAppRadioGroup
28+
deploymentAppType={deploymentAppType ?? DeploymentAppTypes.HELM}
29+
handleOnChange={handleChange}
30+
allowedDeploymentTypes={allowedDeploymentTypes}
31+
rootClassName={rootClassName}
32+
isDisabled={isDisabled}
33+
isFromCDPipeline
34+
isGitOpsRepoNotConfigured={isGitOpsRepoNotConfigured}
35+
gitOpsRepoConfigInfoBar={gitOpsRepoConfigInfoBar}
36+
areGitopsCredentialsConfigured={!isGitOpsInstalledButNotConfigured}
37+
// Want to show this when gitops module is installed, does not matter if it is configured or not
38+
showGitOpsOption={!noGitOpsModuleInstalledAndConfigured || isGitOpsInstalledButNotConfigured}
39+
/>
40+
</div>
41+
)

0 commit comments

Comments
 (0)