mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-15 12:17:56 +00:00
fix: use generate name for admission reports (#10491)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
parent
27a777db36
commit
d75d19ab3d
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ func NewAdmissionReport(namespace, name string, gvr schema.GroupVersionResource,
|
||||||
} else {
|
} else {
|
||||||
report = &reportsv1.EphemeralReport{Spec: reportsv1.EphemeralReportSpec{}}
|
report = &reportsv1.EphemeralReport{Spec: reportsv1.EphemeralReportSpec{}}
|
||||||
}
|
}
|
||||||
report.SetName(name)
|
report.SetGenerateName(name + "-")
|
||||||
report.SetNamespace(namespace)
|
report.SetNamespace(namespace)
|
||||||
SetResourceUid(report, resource.GetUID())
|
SetResourceUid(report, resource.GetUID())
|
||||||
SetResourceGVR(report, gvr)
|
SetResourceGVR(report, gvr)
|
||||||
|
|
Loading…
Add table
Reference in a new issue