Skip to content

Commit ba095b3

Browse files
committed
deprecated image registry warning on app
1 parent 0fa764f commit ba095b3

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

src/routes/team/[team]/[env]/app/[app]/+page.gql

+9
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@ query App($app: String!, $team: Slug!, $env: String!) {
3333
}
3434
}
3535

36+
status {
37+
errors {
38+
__typename
39+
... on WorkloadStatusDeprecatedRegistry {
40+
registry
41+
}
42+
}
43+
}
44+
3645
...AppInstances
3746
...AppStatus
3847
...AppUtilization

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

+21-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import WorkloadDeploy from '$lib/components/WorkloadDeploy.svelte';
1212
import GraphErrors from '$lib/GraphErrors.svelte';
1313
import Time from '$lib/Time.svelte';
14-
import { Alert, BodyShort, Button, Heading } from '@nais/ds-svelte-community';
14+
import { Alert, BodyLong, BodyShort, Button, Heading } from '@nais/ds-svelte-community';
1515
import { ArrowCirclepathIcon, ExternalLinkIcon } from '@nais/ds-svelte-community/icons';
1616
import type { PageData } from './$houdini';
1717
import Ingresses from './Ingresses.svelte';
@@ -67,9 +67,29 @@
6767

6868
{#if $App.data}
6969
{@const app = $App.data.team.environment.application}
70+
7071
<div class="wrapper">
7172
<div class="app-content">
7273
<div class="main-section">
74+
{#if app.status.errors.some((error) => error.__typename === 'WorkloadStatusDeprecatedRegistry')}
75+
<Alert variant="error">
76+
<BodyShort spacing
77+
>This application is using a deprecated image registry ({app.status.errors.find(
78+
(error) => error.__typename === 'WorkloadStatusDeprecatedRegistry'
79+
)?.registry}).</BodyShort
80+
>
81+
82+
<BodyLong
83+
>Starting April 1st, applications and jobs on Nais must use images from Google
84+
Artifact Registry (GAR). The easiest way to ensure that images are stored in GAR is to
85+
use Nais' GitHub Actions in the workflow. <a
86+
href="https://nais.io/log/#2025-02-24-image-policy"
87+
target="_blank"
88+
rel="noopener noreferrer">Read more in Nais announcement</a
89+
>.
90+
</BodyLong>
91+
</Alert>
92+
{/if}
7393
{#if app.deletionStartedAt}
7494
<Alert variant="info" size="small" fullWidth={false}>
7595
This application is being deleted. Deletion started <Time

0 commit comments

Comments
 (0)