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

Bug Fix BZ 2242414 | Add Flag app-namespace To Command obc regenerate #1230

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

shirady
Copy link
Contributor

@shirady shirady commented Oct 18, 2023

Explain the changes

  1. Add flag app-namespace to command obc regenerate (it is used in the code, but not in the usage).
  2. Rename ob.Name to ob-%s-%s instead of obs-%s-%s.
  3. Fix a couple of typos.

Issues: Fixed BZ 2242414

  1. Without the flag it causes an error:

Error: unknown flag: --app-namespace, See 'noobaa obc regenerate --help' for usage.

Note: for the complete fix also needed PR #1231.

Testing Instructions:

After we have an image of noobaa-cli with those changes and we installed noobaa (tested on the cluster-bot):

  1. Create new namespace: oc new-project craig-ns1
  2. Create an OBC in the namespace "craig-ns1": noobaa obc create craig-test-obc2 --app-namespace craig-ns1.
  3. Regenerating an OBC in the namespace "craig-ns1": noobaa obc regenerate craig-test-obc2 --app-namespace craig-ns1.
  • Doc added/updated
  • Tests added

1. add flag app-namespace to command obc regenerate
2. rename ob name to ob-%s-%s instead of obs-%s-%s
3. fix a couple of typos

Signed-off-by: shirady <[email protected]>
Copy link
Contributor

@liranmauda liranmauda left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants