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

add rsync client and another constructor for rsync server #14

Merged
merged 5 commits into from
Mar 1, 2022

Conversation

alaypatel07
Copy link
Contributor

Describe what this PR does
This PR adds Rsync client implementations

Is there anything that requires special attention?
This depends on changes in #13

Related issues:
the second half of #12

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 28, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alaypatel07

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

The pull request process is described 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

@openshift-ci openshift-ci bot added size/XL and removed size/XXL labels Feb 17, 2022
@openshift-ci openshift-ci bot added size/XXL and removed size/XL labels Feb 20, 2022
@alaypatel07 alaypatel07 changed the title WIP: add rsync client add rsync client and another constructor for rsync server Feb 20, 2022
@alaypatel07 alaypatel07 force-pushed the rsync-client branch 3 times, most recently from 0a9737b to dda64c6 Compare February 20, 2022 17:56
Signed-off-by: Alay Patel <alay1431@gmail.com>
Signed-off-by: Alay Patel <alay1431@gmail.com>
This avoid defaulting bools to a value if unused.

Signed-off-by: Alay Patel <alay1431@gmail.com>
transfer/transfer.go Outdated Show resolved Hide resolved
transfer/rsync/client.go Outdated Show resolved Hide resolved
transfer/rsync/client.go Outdated Show resolved Hide resolved
transfer/rsync/client.go Outdated Show resolved Hide resolved
transfer/rsync/client.go Outdated Show resolved Hide resolved
transfer/rsync/client.go Outdated Show resolved Hide resolved
transfer/rsync/client.go Outdated Show resolved Hide resolved
- refactor if condition for len of containerStatuses
- store rsync password in secret
- drop get from get* methods
- use more constants

Signed-off-by: Alay Patel <alay1431@gmail.com>
Signed-off-by: Alay Patel <alay1431@gmail.com>
Copy link
Member

@JohnStrunk JohnStrunk left a comment

Choose a reason for hiding this comment

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

/lgtm

@@ -254,6 +303,12 @@ func NewServer(ctx context.Context, c client.Client, logger logr.Logger,
namespace = pvcList.Namespaces()[0]
}

if podOptions.SCCName == nil || (podOptions.SCCName != nil && *podOptions.SCCName == "") {
//TODO: raise a warning event
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure whether this would be a warning or not... If you're not on OpenShift, lack of an SCC name doesn't matter.

@openshift-ci openshift-ci bot added the lgtm label Mar 1, 2022
@openshift-merge-robot openshift-merge-robot merged commit cdececc into backube:main Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants