Skip to content

Commit 944a5e6

Browse files
authored
upgrade the argo-rollout dependencies (#86)
Signed-off-by: ashutosh16 <[email protected]>
1 parent ac667b6 commit 944a5e6

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

ui/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
"@fortawesome/fontawesome-svg-core": "^6.4.0",
77
"@fortawesome/free-solid-svg-icons": "^6.4.0",
88
"@fortawesome/react-fontawesome": "^0.2.0",
9-
"argo-rollouts": "git+https://github.com/argoproj/argo-rollouts.git#0eff316b85296ffcaae6306a91d4b7db78f63a86",
9+
"argo-rollouts": "git+https://github.com/argoproj/argo-rollouts.git#b0d74e5def390e8d7f33fb98c7450519037d30be",
1010
"argo-ui": "git+https://github.com/argoproj/argo-ui.git#5ff344ac9692c14dd108468bd3c020c3c75181cb",
1111
"classnames": "2.2.6",
1212
"json-loader": "^0.5.7",
1313
"axios": "^1.6.2",
1414
"recharts": "^2.9.0",
15-
1615
"null-loader": "^4.0.1",
1716
"react": "^16.9.3",
1817
"react-dom": "^16.9.3",
@@ -21,7 +20,8 @@
2120
"react-scripts": "4.0.3",
2221
"ts-loader": "^8.2.0",
2322
"typescript": "^4.9.5",
24-
"web-vitals": "^1.0.1"
23+
"web-vitals": "^1.0.1",
24+
"isomorphic-fetch": "^3.0.0"
2525
},
2626
"peerDeependencies": {
2727
"argo-ui": "git+https://github.com/argoproj/argo-ui.git#5ff344ac9692c14dd108468bd3c020c3c75181cb",
@@ -64,5 +64,6 @@
6464
},
6565
"resolutions": {
6666
"@types/react": "16.9.3"
67-
}
67+
},
68+
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
6869
}

ui/src/index.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,13 @@ const parsePodStatus = (pod: any) => {
111111
}
112112
};
113113

114+
const parsePodReady = (pod: any) => {
115+
for (const item of pod.info || []) {
116+
if (item.name === "Containers") {
117+
return item.value;
118+
}
119+
}
120+
}
114121
const parseAnalysisRuns = (app: any, tree: any, rollout: any): RolloutAnalysisRunInfo[] => {
115122
const [analysisRunResults, setAnalysisRunResults] = React.useState<RolloutAnalysisRunInfo[]>([]);
116123
const [analysisRunNodeIds, setAnalysisRunNodeIds] = React.useState<string[]>([]);
@@ -209,6 +216,7 @@ const parseReplicaSets = (tree: any, rollout: any): RolloutReplicaSetInfo[] => {
209216
images: pod.images,
210217
status: parsePodStatus(pod),
211218
revision: parseRevision(rs),
219+
ready: parsePodReady(pod),
212220
canary: true
213221
};
214222
pods.push(ownedPod);

0 commit comments

Comments
 (0)