Commit 7976b638
7976b6384f82Merged
Svyatoslav Dumchenko <[email protected]> ยท 4 years ago ยท 1 file ยท ~1 modified
Description
Ignore helm2 tests
Details
- Commit
- 7976b6384f82
- Parent
- 4b0e2b37619c
pkg/plan/diff.gomodifiedView file
@@ -7,6 +7,7 @@
77
88
"github.com/databus23/helm-diff/diff"99
"github.com/databus23/helm-diff/manifest"10+
"github.com/helmwave/helmwave/pkg/helper"1011
"github.com/helmwave/helmwave/pkg/parallel"1112
"github.com/helmwave/helmwave/pkg/release"1213
"github.com/helmwave/helmwave/pkg/release/uniqname"@@ -20,9 +21,9 @@
2021
ErrPlansAreTheSame = errors.New("plan1 and plan2 are the same")2122
2223
// SkippedAnnotations is a map with all annotations to be skipped by differ.23-
SkippedAnnotations = map[string]string{24-
live.HookAnnotation: string(live.HookTest),25-
"helmwave.dev/skip-diff": "true",24+
SkippedAnnotations = map[string][]string{25+
live.HookAnnotation: {string(live.HookTest), "test-success", "test-failure"},26+
"helmwave.dev/skip-diff": {"true"},2627
}2728
)2829
@@ -102,7 +103,7 @@
102103
}103104
104105
for anno := range parsed.Metadata.Annotations {105-
if SkippedAnnotations[anno] == parsed.Metadata.Annotations[anno] {106+
if helper.Contains(parsed.Metadata.Annotations[anno], SkippedAnnotations[anno]) {106107
log.WithFields(log.Fields{107108
"resource": manifests[k].Name,108109
"annotation": anno,