Skip to content

Commit aaef791

Browse files
committed
fix: exclude OLM index.json from JSON validation and update generated annotations
- Add test/extended/util/compat_otp/testdata/opm/render/validate/catalog-error/operator-2/index.json to excluded files list in verify-jsonformat.sh - Update generated annotations file with new test annotation for Image --dry-run should not update resources
1 parent a1c13ed commit aaef791

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

hack/verify-jsonformat.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ found=0
2020
excluded_files=(
2121
"test/extended/testdata/cmd/test/cmd/testdata/new-app/bc-from-imagestreamimage.json"
2222
"test/extended/testdata/cmd/test/cmd/testdata/new-app/invalid.json"
23+
"test/extended/util/compat_otp/testdata/opm/render/validate/catalog-error/operator-2/index.json"
2324
)
2425

2526
set +e

test/extended/images/dryrun.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
g "github.com/onsi/ginkgo/v2"
88
o "github.com/onsi/gomega"
99

10-
admissionapi "k8s.io/pod-security-admission/api"
1110
"k8s.io/apimachinery/pkg/util/wait"
11+
admissionapi "k8s.io/pod-security-admission/api"
1212

1313
exutil "github.com/openshift/origin/test/extended/util"
1414
)

test/extended/util/annotate/generated/zz_generated.annotations.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)