1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00

webhookconfig: if services resource, add services/status as well (#3740)

Signed-off-by: Danny Kulchinsky <dkulchinsky@fastly.com>

Co-authored-by: shuting <shuting@nirmata.com>
This commit is contained in:
Danny Kulchinsky 2022-05-03 01:54:08 -04:00 committed by GitHub
parent c79223393b
commit 810369d876
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -822,6 +822,10 @@ func (m *webhookConfigManager) mergeWebhook(dst *webhook, policy kyverno.PolicyI
rsrcs = append(rsrcs, "pods/ephemeralcontainers")
}
if utils.ContainsString(rsrcs, "services") {
rsrcs = append(rsrcs, "services/status")
}
if len(groups) > 0 {
dst.rule[apiGroups] = removeDuplicates(groups)
}