Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store creation date of every entity #661

Closed
subnetmarco opened this issue Apr 4, 2020 · 3 comments · Fixed by #677
Closed

Store creation date of every entity #661

subnetmarco opened this issue Apr 4, 2020 · 3 comments · Fixed by #677

Comments

@subnetmarco
Copy link
Contributor

Store the UTC creation date timestamp for every entity that is being created.

@tharun208
Copy link
Contributor

Created a PR for this @subnetmarco 😀

@jakubdyszkiewicz
Copy link
Contributor

We store this already, but it isn't exposed in the API (we use it to sort conflicts on matching policies)
We store creation time and modification time, but keep in mind that creation time is equal to modification time on K8S.

Do you have any format in mind on how to expose it? @subnetmarco
One of the way could be this

type: Dataplane
mesh: default
name: redis-1
creationTime: 2020-04-05T21:18:35Z
modificationTime: 2020-04-05T21:18:35Z
networking:
  address: 192.168.0.1
  inbound:
  - port: 9000
    servicePort: 6379
    tags:
      service: redis

@subnetmarco
Copy link
Contributor Author

Yes, that would work @jakubdyszkiewicz

tharun208 added a commit to tharun208/kuma that referenced this issue Apr 14, 2020
* added creationTime and modificationTime in resource
Feature kumahq#661
tharun208 added a commit to tharun208/kuma that referenced this issue Apr 14, 2020
tharun208 added a commit to tharun208/kuma that referenced this issue Apr 14, 2020
tharun208 added a commit to tharun208/kuma that referenced this issue Apr 14, 2020
tharun208 added a commit to tharun208/kuma that referenced this issue Apr 14, 2020
tharun208 added a commit to tharun208/kuma that referenced this issue Apr 14, 2020
tharun208 added a commit to tharun208/kuma that referenced this issue Apr 14, 2020
tharun208 added a commit to tharun208/kuma that referenced this issue Apr 14, 2020
tharun208 added a commit to tharun208/kuma that referenced this issue Apr 14, 2020
tharun208 added a commit to tharun208/kuma that referenced this issue Apr 14, 2020
tharun208 added a commit to tharun208/kuma that referenced this issue Apr 14, 2020
tharun208 added a commit to tharun208/kuma that referenced this issue Apr 14, 2020
tharun208 added a commit to tharun208/kuma that referenced this issue Apr 14, 2020
tharun208 added a commit to tharun208/kuma that referenced this issue Apr 14, 2020
* fixed remote store create and update function and updated tests
Feature kumahq#661
tharun208 added a commit to tharun208/kuma that referenced this issue Apr 14, 2020
tharun208 added a commit to tharun208/kuma that referenced this issue Apr 14, 2020
tharun208 added a commit to tharun208/kuma that referenced this issue Apr 14, 2020
tharun208 added a commit to tharun208/kuma that referenced this issue Apr 14, 2020
tharun208 added a commit to tharun208/kuma that referenced this issue Apr 15, 2020
tharun208 added a commit to tharun208/kuma that referenced this issue Apr 15, 2020
tharun208 added a commit to tharun208/kuma that referenced this issue Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants