Skip to content

Commit fed006a

Browse files
frodesundbythokra-navjhrv
committed
set status not nais when using deprecated registry
Co-authored-by: Thomas Krampl <[email protected]> Co-authored-by: Johnny Horvi <[email protected]>
1 parent bdcd969 commit fed006a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

integration_tests/status_for_applications.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Test.gql("app with deprecated registry", function(t)
9292
environment = {
9393
application = {
9494
status = {
95-
state = "NAIS",
95+
state = "NOT_NAIS",
9696
errors = {
9797
expectedMissingSBOM,
9898
{

integration_tests/status_for_jobs.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Test.gql("job with deprecated registry", function(t)
6060
environment = {
6161
job = {
6262
status = {
63-
state = "NAIS",
63+
state = "NOT_NAIS",
6464
errors = {
6565
expectedMissingSBOM,
6666
{

internal/status/check_deprecated_registry.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func (c checkDeprecatedRegsitry) Run(ctx context.Context, w workload.Workload) (
1414
if s == nil {
1515
return nil, WorkloadStateNais
1616
}
17-
return []WorkloadStatusError{s}, WorkloadStateNais
17+
return []WorkloadStatusError{s}, WorkloadStateNotNais
1818
}
1919

2020
func (checkDeprecatedRegsitry) run(_ context.Context, w workload.Workload) WorkloadStatusError {

0 commit comments

Comments
 (0)