kubernetes / kubernetes

Production-Grade Container Scheduling and Management
https://kubernetes.io
Apache License 2.0
111.08k stars 39.66k forks source link

add updateTimestamp in ConfigMap status #128794

Open j4ckstraw opened 11 hours ago

j4ckstraw commented 11 hours ago

What would you like to be added?

add a new field updateTimestamp in ConfigMap status

Why is this needed?

We can use this field to check whether the ConfigMap has been updated or not, and when it was updated.

k8s-ci-robot commented 11 hours ago

There are no sig labels on this issue. Please add an appropriate label by using one of the following commands:

Please see the group list for a listing of the SIGs, working groups, and committees available.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.
k8s-ci-robot commented 11 hours ago

This issue is currently awaiting triage.

If a SIG or subproject determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.
googs1025 commented 6 hours ago

IIUC, k8s was originally designed without the concept of updatedTime. The controller does not care about the number of updates, but only cares whether the actual state meets the expected state. 🤔 Maybe you can use last-applied-configuration or resourceVersion to solve this problem.