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

Stop PackageRevision updates from changing creationTimestamp #180

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

JamesMcDermott
Copy link
Contributor

Fixes #630

  • wire CreationTimestamp in from underlying PackageRev CR when getting a PackageRevision together from Git
  • wire PackageRev details/ObjectMeta data into PackageRevision returned from update-package-resources flow
    • was previously just empty values with a zero timestamp
    • which broke a test once the creationTimestamp fix was applied

…tamp

- wired CreationTimestamp in from underlying PackageRev CR when getting
  a PackageRevision together from Git
  - as mentioned as an option in old comment
    kptdev/kpt#3992 (comment)
  - and same in OCI implementation for consistency's sake
  - previous implementation got CreationTimestamp from 'updated' attribute
    which is got from the creation timestamp of the latest commit to the
    branch in Git, and so kept changing
    - underlying PackageRev CR is a Kubernetes object and has a static
      creationTimestamp
- wired PackageRev details/ObjectMeta data into PackageRevision returned
  from update-package-resources flow
  - was previously just empty values with a zero timestamp
  - which broke a test once the creationTimestamp fix was applied

nephio-project/nephio#630
@nephio-prow nephio-prow bot requested review from liamfallon and tliron February 12, 2025 11:04
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

Copy link
Contributor

nephio-prow bot commented Feb 13, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Catalin-Stratulat-Ericsson, JamesMcDermott
Once this PR has been reviewed and has the lgtm label, please assign liamfallon for approval by writing /assign @liamfallon in a comment. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Porch: creation time for package revisions continuously updates
2 participants