Skip to content

Conversation

@subhamkrai
Copy link
Collaborator

namespace: namespace flags are not working

cluster namespace and operator namespace needs
better handling. It was throwing an error and was exited
when namespace args are passed.
Now, the default cluster ns is rook-ceph, and for
operator it is empty but we check later in the code
that if CephClusterNamespace != "" && OperatorNamespace == ""
then assign the cluster ns to operator ns.

ci: add CI to test the plugin in different namespace
Signed-off-by: subhamkrai srai@redhat.com

fixes: #129

Signed-off-by: subhamkrai <srai@redhat.com>
cluster namespace and operator namespace needs
better handling. It was throwing an error and was exited
when namespace args are passed.
Now, the default cluster ns is rook-ceph, and for
operator it is empty but we check later in the code
that if CephClusterNamespace != "" && OperatorNamespace == ""
then assign the cluster ns to operator ns.

Signed-off-by: subhamkrai <srai@redhat.com>
@subhamkrai subhamkrai requested a review from travisn June 22, 2023 17:43
Copy link
Member

@travisn travisn left a comment

Choose a reason for hiding this comment

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

Nice to see the tests in the non-default namespace, and the issues they found already!

@travisn
Copy link
Member

travisn commented Jun 22, 2023

Maybe early next week we can plan on releasing v0.5.1, in case any other fixes are needed as well

@subhamkrai
Copy link
Collaborator Author

Maybe early next week we can plan on releasing v0.5.1, in case any other fixes are needed as well

yes, since the issue with then namespace is really annoying.

@subhamkrai subhamkrai merged commit 519ca0b into rook:master Jun 23, 2023
@subhamkrai subhamkrai deleted the fix-ns-arg-issue branch June 23, 2023 03:34
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.

--namespace does not work

2 participants