Skip to content

Commit

Permalink
Merge pull request nephio-project#167 from mansoor17syed/issue_736
Browse files Browse the repository at this point in the history
fix for #736 Implement missing Modify event on the porch Repo Custom Resource
  • Loading branch information
nephio-prow[bot] authored Jan 20, 2025
2 parents fa9f964 + 312a627 commit d783969
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/registry/porch/background.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,13 @@ func (b *background) updateCache(ctx context.Context, event watch.EventType, rep
return b.cacheRepository(ctx, repository)
case watch.Modified:
klog.Infof("Repository modified: %s:%s", repository.ObjectMeta.Namespace, repository.ObjectMeta.Name)
// TODO: implement
// First verify repositories can be listed (core client is alive)
var repoList configapi.RepositoryList
if err := b.coreClient.List(ctx, &repoList); err != nil {
return err
}
// Update the cache with modified repository
return b.cacheRepository(ctx, repository)
case watch.Deleted:
klog.Infof("Repository deleted: %s:%s", repository.ObjectMeta.Namespace, repository.ObjectMeta.Name)
var repoList configapi.RepositoryList
Expand Down

0 comments on commit d783969

Please sign in to comment.