Skip to content

Commit bdcd969

Browse files
frodesundbyjhrvthokra-nav
committed
deprecated registry is now a warning
Co-authored-by: Johnny Horvi <[email protected]> Co-authored-by: Thomas Krampl <[email protected]>
1 parent dc91eb8 commit bdcd969

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

integration_tests/status_for_applications.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,15 @@ Test.gql("app with deprecated registry", function(t)
9494
status = {
9595
state = "NAIS",
9696
errors = {
97+
expectedMissingSBOM,
9798
{
9899
__typename = "WorkloadStatusDeprecatedRegistry",
99-
level = "TODO",
100+
level = "WARNING",
100101
name = "app-name",
101102
registry = "navikt",
102103
repository = "",
103104
tag = "latest",
104105
},
105-
expectedMissingSBOM,
106106
},
107107
},
108108
},

integration_tests/status_for_jobs.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ Test.gql("job with deprecated registry", function(t)
6262
status = {
6363
state = "NAIS",
6464
errors = {
65+
expectedMissingSBOM,
6566
{
6667
__typename = "WorkloadStatusDeprecatedRegistry",
67-
level = "TODO",
68+
level = "WARNING",
6869
name = "app-name",
6970
registry = "ghcr.io",
7071
repository = "navikt",
7172
tag = "latest",
7273
},
73-
expectedMissingSBOM,
7474
},
7575
},
7676
},

internal/status/check_deprecated_registry.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func (checkDeprecatedRegsitry) run(_ context.Context, w workload.Workload) Workl
3737
repository = strings.Join(parts[1:len(parts)-1], "/")
3838
}
3939
return &WorkloadStatusDeprecatedRegistry{
40-
Level: WorkloadStatusErrorLevelTodo,
40+
Level: WorkloadStatusErrorLevelWarning,
4141
Registry: registry,
4242
Name: name,
4343
Tag: tag,

0 commit comments

Comments
 (0)