-
Notifications
You must be signed in to change notification settings - Fork 391
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
✨ Implement PV and PVC controllers #2338
Conversation
I still haven't had the chance to test this code but it's ready for initial reviews. Thanks! |
499a2dd
to
6ba175a
Compare
645ca2c
to
ed0f3be
Compare
6754443
to
f88563b
Compare
} | ||
|
||
// Update the PV with the Upsync requestState label for the current SyncTarget to trigger the Upsyncing of the PV to the upstream workspace | ||
downstreamPV.SetLabels(c.addResourceStateUpsyncLabel(downstreamPV.GetLabels())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We sill also need to add the internal downstream label here, in addition to the Upsync
RequestState
label.
I created PR leseb#2 against your branch (since it seems I cannot push directly to your PR forked branch). This fixes the pv e2e test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before merging this PR, we should add a feature flag to enable these actions: KCPStorageMove
.
-
See here for defining the new feature flag: /~https://github.com/leseb/kcp/blob/58ee6d48c9b5c3f4a69d076a954344785ac42505/pkg/features/kcp_features.go#L50
-
See here for testing that feature flag presence in the syncer: /~https://github.com/leseb/kcp/blob/58ee6d48c9b5c3f4a69d076a954344785ac42505/pkg/syncer/syncer.go#L424
-
see here for setting the feature flag before a specific e2e test (which you will need): /~https://github.com/leseb/kcp/blob/58ee6d48c9b5c3f4a69d076a954344785ac42505/test/e2e/syncer/tunnels_test.go#L56
Do you think you could rebase the PR on top of main (should not hurt I assume) ? |
b42abf8
to
e7d9655
Compare
c7b75a2
to
2421a6c
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
This implements two new syncers as laid out in /~https://github.com/kcp-dev/kcp/issues/1981. Fixes: /~https://github.com/kcp-dev/kcp/issues/1981 Co-authored-by: David Festal <dfestal@redhat.com> Signed-off-by: Sébastien Han <seb@redhat.com>
@leseb: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Summary
This implements two new syncers as laid out in
kcp-dev/contrib-tmc#98.
Related issue(s)
Fixes: kcp-dev/contrib-tmc#98
Signed-off-by: Sébastien Han seb@redhat.com