mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-15 12:17:56 +00:00
fix typo in comments (#2685)
Signed-off-by: CIPHERTron <pritish.samal918@gmail.com>
This commit is contained in:
parent
50cb1859c3
commit
4810dda3e9
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ func (c *Controller) processGR(gr *kyverno.GenerateRequest) error {
|
||||||
genResources, err = c.applyGenerate(*resource, *gr, namespaceLabels)
|
genResources, err = c.applyGenerate(*resource, *gr, namespaceLabels)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// Need not update the stauts when policy doesn't apply on resource, because all the generate requests are removed by the cleanup controller
|
// Need not update the status when policy doesn't apply on resource, because all the generate requests are removed by the cleanup controller
|
||||||
if strings.Contains(err.Error(), doesNotApply) {
|
if strings.Contains(err.Error(), doesNotApply) {
|
||||||
logger.V(4).Info("skipping updating status of generate request")
|
logger.V(4).Info("skipping updating status of generate request")
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Add table
Reference in a new issue