Skip to content

Conversation

savitharaghunathan
Copy link
Member

No description provided.

@savitharaghunathan savitharaghunathan marked this pull request as draft June 29, 2022 19:40
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 29, 2022
@openshift-ci openshift-ci bot requested a review from sseago June 29, 2022 19:44
@savitharaghunathan savitharaghunathan removed the request for review from sseago June 29, 2022 20:09
@savitharaghunathan savitharaghunathan marked this pull request as ready for review June 30, 2022 19:49
@savitharaghunathan
Copy link
Member Author

/hold
todo: Add plugin support for passing restic secret name in VSB & VSR CR
Add support for restic secret names in snap mover

@savitharaghunathan savitharaghunathan changed the title WIP Resticsecret update Resticsecret update Jun 30, 2022
@openshift-ci openshift-ci bot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. and removed do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Jun 30, 2022
@openshift-ci openshift-ci bot requested review from sseago and removed request for eemcmullan June 30, 2022 19:54
@savitharaghunathan
Copy link
Member Author

/retest

@savitharaghunathan
Copy link
Member Author

/test 4.9-operator-e2e-azure

@kaovilai

This comment was marked as off-topic.

@savitharaghunathan
Copy link
Member Author

/retest-required

Copy link
Member

@shubham-pampattiwar shubham-pampattiwar left a comment

Choose a reason for hiding this comment

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

Changes look sane to me, Added some suggestions though. Thank you @savitharaghunathan

@savitharaghunathan
Copy link
Member Author

@shubham-pampattiwar Thanks for the elaborate review. I updated the func according to the last feedback. When you get a moment can you take a look at it please?

@savitharaghunathan
Copy link
Member Author

/retest


for _, bsl := range backupStorageLocationList.Items {
if strings.Contains(bsl.Name, dpa.Name) {
_, err := r.createResticSecretsPerBSL(&dpa, bsl, dmresticsecretname, res_pass)

Choose a reason for hiding this comment

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

@savitharaghunathan Are we assuming that the given datamover secret will work for the BSL configured ? According to this current code, if I am not wrong, we are creating a dm secret per BSL and password provided in this secret will work for all the BSLs configured ?
For e.g:

  1. OADP has 2 BSLs - AWS and GCP. User supplied one dm secret,this PR will be creating restic secret using the dm secret for both the BSLs, right ? I think we should only create the restic secret for the dm one.
  2. OADP has 2 BSLs - Both AWS. Same issue.

Suggested Solution:
We add a BSLName and Provider field to Deature -> DataMover/ And we create the restic secret only for the BSL specified here. WDYT ?

Choose a reason for hiding this comment

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

Please correct me if I am wrong here.

@savitharaghunathan
Copy link
Member Author

/test 4.8-ci-index

@kaovilai
Copy link
Member

/retest

Copy link
Member

@shubham-pampattiwar shubham-pampattiwar left a comment

Choose a reason for hiding this comment

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

LGTM ! Thank you so much @savitharaghunathan !

if resticsecret == nil {
return false
}
for key, val := range resticsecret.Data {
Copy link
Member

Choose a reason for hiding this comment

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

We want to update this to check if the key exists at all, right now I get no error if the key isn't set

@openshift-ci
Copy link

openshift-ci bot commented Jul 27, 2022

@savitharaghunathan: all tests passed!

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.

@shubham-pampattiwar shubham-pampattiwar removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 27, 2022
@savitharaghunathan
Copy link
Member Author

/hold cancel

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.

5 participants