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

feature: clear object status when not synced anymore #27

Open
1 task
lionelvillard opened this issue Mar 29, 2023 · 3 comments
Open
1 task

feature: clear object status when not synced anymore #27

lionelvillard opened this issue Mar 29, 2023 · 3 comments
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature.

Comments

@lionelvillard
Copy link

lionelvillard commented Mar 29, 2023

Feature Description

I'm opening this issue to discuss whether the status of objects that have been previously synced but not synced anymore (ie. corresponding Placement object has been deleted) should be cleared or not.

In the case of Knative, the status includes an URL pointing to the service. This URL becomes invalid when the corresponding object is not synced anymore as objects on the physical cluster are deleted.

Proposed Solution

Patch the upstream objects to remove their status when those objects are not synced anymore.

Alternative Solutions

No response

Want to contribute?

  • I would like to work on this issue.

Additional Context

/cc @davidfestal

@lionelvillard lionelvillard added the kind/feature Categorizes issue or PR as related to a new feature. label Mar 29, 2023
@davidfestal
Copy link
Member

It seems that the fix would be in the Syncer virtual workspace transformations (that manage syncer views):

https://github.com/kcp-dev/kcp/blob/096dd14da2caa8f64e2b125bfdd6e75d5630ef52/tmc/pkg/virtual/syncer/transformations/transformer.go#L230

Instead of simply removing the syncer view diff annotation, it should check whether it contains fields which were promoted, and if it is the case it should clear them from the main object content.
Useful methods are getSyncerViewFields() and then, for each promoted field, field.Delete().

@davidfestal davidfestal added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Apr 4, 2023
@mjudeikis
Copy link
Contributor

/transfer-issue contrib-tmc

1 similar comment
@mjudeikis
Copy link
Contributor

/transfer-issue contrib-tmc

@kcp-ci-bot kcp-ci-bot transferred this issue from kcp-dev/kcp Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature.
Projects
Status: Backlog
Development

No branches or pull requests

3 participants