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:
parent
c79223393b
commit
810369d876
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue