Skip to content

Commit 9f1c7ac

Browse files
committed
warning not error
1 parent db9a3d3 commit 9f1c7ac

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/routes/dataproduct/errors/+page.gql

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ query AllIngresses {
3232
... on WorkloadStatusInvalidNaisYaml {
3333
detail
3434
}
35+
... on WorkloadStatusFailedRun {
36+
detail
37+
name
38+
}
3539
}
3640
}
3741
}

src/routes/team/[team]/[env]/job/[job]/+page.svelte

+7-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,13 @@
135135
</Alert>
136136
{/if}
137137
{#if job.status.errors.some((error) => error.__typename === 'WorkloadStatusDeprecatedRegistry')}
138-
<Alert variant="error">
138+
<Alert
139+
variant={levelVariant(
140+
job.status.errors.find(
141+
(error) => error.__typename === 'WorkloadStatusDeprecatedRegistry'
142+
)?.level
143+
)}
144+
>
139145
<BodyShort spacing
140146
>This job is using a deprecated image registry ({job.status.errors.find(
141147
(error) => error.__typename === 'WorkloadStatusDeprecatedRegistry'

0 commit comments

Comments
 (0)