chore: Modify get_image_distribution job parameters
Signed-off-by: yingxuan <zhanglujia.zlj@digital-engine.com>
This commit is contained in:
parent
6371a70543
commit
ba6bc8a88e
|
@ -22,7 +22,7 @@
|
|||
{
|
||||
"ip": "172.18.0.4",
|
||||
"hostname": "kind-worker1",
|
||||
"layers": [
|
||||
"cached_layers": [
|
||||
{
|
||||
"url": "https://ghcr.io/v2/dragonflyoss/scheduler/blobs/sha256:f1ffc4b5459e82dc8e7ddd1d1a2ec469e85a1f076090c22851a1f2ce6f71e1a6?format=json"
|
||||
},
|
||||
|
@ -38,7 +38,7 @@
|
|||
{
|
||||
"ip": "172.18.0.4",
|
||||
"hostname": "kind-worker2",
|
||||
"layers": [
|
||||
"cached_layers": [
|
||||
{
|
||||
"url": "https://ghcr.io/v2/dragonflyoss/scheduler/blobs/sha256:f1f1039835051ecc04909f939530e86a20f02d2ce5ad7a81c0fa3616f7303944"
|
||||
},
|
||||
|
@ -51,7 +51,7 @@
|
|||
{
|
||||
"ip": "172.18.0.4",
|
||||
"hostname": "kind-worker3",
|
||||
"layers": [
|
||||
"cached_layers": [
|
||||
{
|
||||
"url": "https://ghcr.io/v2/dragonflyoss/scheduler/blobs/sha256:f1ffc4b5459e82dc8e7ddd1d1a2ec469e85a1f076090c22851a1f2ce6f71e1a6"
|
||||
},
|
||||
|
@ -64,7 +64,7 @@
|
|||
{
|
||||
"ip": "172.18.0.4",
|
||||
"hostname": "kind-worker4",
|
||||
"layers": [
|
||||
"cached_layers": [
|
||||
{
|
||||
"url": "https://ghcr.io/v2/dragonflyoss/scheduler/blobs/sha256:f1f1039835051ecc04909f939530e86a20f02d2ce5ad7a81c0fa3616f7303944"
|
||||
},
|
||||
|
@ -77,7 +77,7 @@
|
|||
{
|
||||
"ip": "172.18.0.4",
|
||||
"hostname": "kind-worker5",
|
||||
"layers": [
|
||||
"cached_layers": [
|
||||
{
|
||||
"url": "https://ghcr.io/v2/dragonflyoss/scheduler/blobs/sha256:f1ffc4b5459e82dc8e7ddd1d1a2ec469e85a1f076090c22851a1f2ce6f71e1a6"
|
||||
},
|
||||
|
@ -90,7 +90,7 @@
|
|||
{
|
||||
"ip": "172.18.0.4",
|
||||
"hostname": "kind-worker6",
|
||||
"layers": [
|
||||
"cached_layers": [
|
||||
{
|
||||
"url": "https://ghcr.io/v2/dragonflyoss/scheduler/blobs/sha256:f1f1039835051ecc04909f939530e86a20f02d2ce5ad7a81c0fa3616f7303944"
|
||||
},
|
||||
|
@ -103,7 +103,7 @@
|
|||
{
|
||||
"ip": "172.18.0.3",
|
||||
"hostname": "kind-worker7",
|
||||
"layers": [
|
||||
"cached_layers": [
|
||||
{
|
||||
"url": "https://ghcr.io/v2/dragonflyoss/scheduler/blobs/sha256:f1f1039835051ecc04909f939530e86a20f02d2ce5ad7a81c0fa3616f7303944"
|
||||
},
|
||||
|
@ -116,7 +116,7 @@
|
|||
{
|
||||
"ip": "172.18.0.3",
|
||||
"hostname": "kind-worker8",
|
||||
"layers": [
|
||||
"cached_layers": [
|
||||
{
|
||||
"url": "https://ghcr.io/v2/dragonflyoss/scheduler/blobs/sha256:f1f1039835051ecc04909f939530e86a20f02d2ce5ad7a81c0fa3616f7303944"
|
||||
},
|
||||
|
|
|
@ -90,7 +90,7 @@ type Image = {
|
|||
type OriginalPeer = {
|
||||
ip: string;
|
||||
hostname: string;
|
||||
layers: Layers[];
|
||||
cached_layers: Layers[];
|
||||
scheduler_cluster_id?: number;
|
||||
};
|
||||
|
||||
|
@ -117,7 +117,7 @@ const transformImages = (images: createGetImageDistributionJobResponse): Transfo
|
|||
const cleanedPeer = {
|
||||
ip: peer.ip,
|
||||
hostname: peer.hostname,
|
||||
layers: peer.layers,
|
||||
cached_layers: peer.cached_layers,
|
||||
};
|
||||
|
||||
clusters.get(clusterId)!.push(cleanedPeer);
|
||||
|
@ -1478,7 +1478,7 @@ export default function Clear() {
|
|||
fontFamily="mabry-bold"
|
||||
className={styles.bolbProportionText}
|
||||
>
|
||||
{`${((items?.layers?.length / layer) * 100).toFixed(2) || 0}%`}
|
||||
{`${((items?.cached_layers?.length / layer) * 100).toFixed(2) || 0}%`}
|
||||
</Typography>
|
||||
</Box>
|
||||
</Box>
|
||||
|
@ -1500,7 +1500,7 @@ export default function Clear() {
|
|||
</Typography>
|
||||
</Box>
|
||||
<Box className={styles.cardCantainer}>
|
||||
{items?.layers.map((item: any, bolbIndex: any) => (
|
||||
{items?.cached_layers.map((item: any, bolbIndex: any) => (
|
||||
<Box key={bolbIndex} className={styles.urlsWrapper}>
|
||||
<Tooltip title={extractSHA256Regex(item?.url || '-') || '-'} placement="top">
|
||||
<Typography
|
||||
|
|
|
@ -994,7 +994,7 @@ interface layers {
|
|||
interface ImageDistributionpeers {
|
||||
ip: string;
|
||||
hostname: string;
|
||||
layers: layers[];
|
||||
cached_layers: layers[];
|
||||
scheduler_cluster_id: number;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue