PWX-32573: Creating namespaces as part of clusterpair creation if the input namespace does not exist.#1467
Merged
diptiranjanpx merged 1 commit intomasterfrom Jul 28, 2023
Merged
Conversation
Collaborator
|
Can one of the admins verify this patch? |
adityadani
approved these changes
Jul 27, 2023
pkg/storkctl/clusterpair.go
Outdated
| func createNamespace(config string, namespace string) error { | ||
| conf, err := getConfig(config).ClientConfig() | ||
| if err != nil { | ||
| util.CheckErr(err) |
Contributor
There was a problem hiding this comment.
The caller is going to print this error, so we can skip it here?
Contributor
Author
There was a problem hiding this comment.
Correct, I removed from this function.
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #1467 +/- ##
==========================================
- Coverage 66.68% 66.21% -0.47%
==========================================
Files 43 43
Lines 4991 5026 +35
==========================================
Hits 3328 3328
- Misses 1339 1374 +35
Partials 324 324
☔ View full report in Codecov by Sentry. |
… input namespace does not exist .
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-Off-By: Diptiranjan
What type of PR is this?
improvement
What this PR does / why we need it:
Create namespaces in source and dest clusters if it does not exist as part of clusterpair creation.
Does this PR change a user-facing CRD or CLI?:
Is a release note needed?:
Does this change need to be cherry-picked to a release branch?:
Test
Other test results have been updated in PWX-32573.