Skip to content

The report policy event with empty status #106

@yanmxa

Description

@yanmxa

When I get the events of the replicated policy, the compliance status from the event message might be empty sometimes.

kubectl get events --field-selector involvedObject.name=$policyname -A
NAMESPACE               LAST SEEN   TYPE     REASON             OBJECT                                           MESSAGE
clc-iks-589-l4yym-iks   143m        Normal   PolicyStatusSync   policy/post-upgrade-policy.post-upgrade-policy   Policy post-upgrade-policy.post-upgrade-policy status was updated to  in cluster namespace clc-iks-589-l4yym-iks
clc-iks-589-l4yym-iks   143m        Normal   PolicyStatusSync   policy/post-upgrade-policy.post-upgrade-policy   Policy post-upgrade-policy.post-upgrade-policy status was updated to NonCompliant in cluster namespace clc-iks-589-l4yym-iks
clc-iks-589-l4yym-iks   142m        Normal   PolicyStatusSync   policy/post-upgrade-policy.post-upgrade-policy   Policy post-upgrade-policy.post-upgrade-policy status was updated to NonCompliant in cluster namespace clc-iks-589-l4yym-iks
clc-iks-589-l4yym-iks   142m        Normal   PolicyStatusSync   policy/post-upgrade-policy.post-upgrade-policy   Policy post-upgrade-policy.post-upgrade-policy status was updated to NonCompliant in cluster namespace clc-iks-589-l4yym-iks
clc-iks-589-l4yym-iks   142m        Normal   PolicyStatusSync   policy/post-upgrade-policy.post-upgrade-policy   Policy post-upgrade-policy.post-upgrade-policy status was updated to NonCompliant in cluster namespace clc-iks-589-l4yym-iks
clc-iks-589-l4yym-iks   28m         Normal   PolicyStatusSync   policy/post-upgrade-policy.post-upgrade-policy   Policy post-upgrade-policy.post-upgrade-policy status was updated to  in cluster namespace clc-iks-589-l4yym-iks
clc-iks-589-l4yym-iks   28m         Normal   PolicyStatusSync   policy/post-upgrade-policy.post-upgrade-policy   Policy post-upgrade-policy.post-upgrade-policy status was updated to NonCompliant in cluster namespace clc-iks-589-l4yym-iks
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions