Skip to content

Commit 4bd78ea

Browse files
authored
ignore notified.notifications.argoproj.io annotations (argoproj-labs#71)
Co-authored-by: Nicolas COLLET <[email protected]>
1 parent a027ae6 commit 4bd78ea

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

argocd/structure_metadata.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,8 @@ func metadataIsInternalKey(annotationKey string) bool {
5959
if err == nil && strings.HasSuffix(u.Hostname(), "kubernetes.io") {
6060
return true
6161
}
62+
if err == nil && annotationKey == "notified.notifications.argoproj.io" {
63+
return true
64+
}
6265
return false
6366
}

argocd/structure_metadata_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ func TestMetadataIsInternalKey(t *testing.T) {
1616
{"any.hostname.com/with/path", false},
1717
{"any.kubernetes.io", true},
1818
{"kubernetes.io", true},
19+
{"notified.notifications.argoproj.io", true},
1920
}
2021
for i, tc := range testCases {
2122
t.Run(fmt.Sprintf("%d", i), func(t *testing.T) {

0 commit comments

Comments
 (0)